forked from kalamuna/drupal-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kalastatic.yaml
113 lines (104 loc) · 4.32 KB
/
kalastatic.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# KalaStatic
#
# This file configures how KalaStatic operates. For information on the
# configuration options, visit:
#
# https://github.com/kalamuna/kalastatic
# Define some variables for use in the rest of the configuration.
_variables:
- &source web/themes/contrib/kalabase/kalastarter/kalastatic
- &styles web/themes/contrib/kalabase/kalastarter/kalastatic/styles
- &components web/themes/contrib/kalabase/kalastarter/kalastatic/components
- &atoms web/themes/contrib/kalabase/kalastarter/kalastatic/components/atoms
- &molecules web/themes/contrib/kalabase/kalastarter/kalastatic/components/molecules
- &organisms web/themes/contrib/kalabase/kalastarter/kalastatic/components/organisms
- &layouts web/themes/contrib/kalabase/kalastarter/kalastatic/components/layouts
# The source directory.
source: *source
# Where to build kalastatic out to, relative to base.
destination: web/kalastatic
# What BrowserSync will consider the start page.
bsIndex: index.html
bsBrowser: false
# What BrowserSync will consider the web root.
bsWebroot: web/kalastatic
bsStartPath: /
# Allows changing some of the plugin options.
pluginOpts:
# The layouts will live in the templates directory.
metalsmith-jstransformer:
# Do not process components as content pages.
pattern: "!components/**"
layoutPattern: layouts/**
# Options that are applied to just specific engines.
engineOptions:
# SASS settings.
scss:
outputStyle: nested
sourceMap: true
outFile: 'main.css'
sourceComments: false
includePaths:
- node_modules/bootstrap/scss
- node_modules/font-awesome/scss
- *styles
- *components
# Twig settings.
twig:
# Introduce the "kstat" Twig namespace.
namespaces:
kstat: *source
kalastatic: *source
atoms: *atoms
molecules: *molecules
organisms: *organisms
layouts: *layouts
icons: node_modules/fontawesome-svg-twig
# Mimic some of the Drupal 8 Twig filters.
filters:
clean_class: twig-drupal-filters/filters/clean_class
clean_id: twig-drupal-filters/filters/clean_id
safe_join: twig-drupal-filters/filters/safe_join
t: twig-drupal-filters/filters/trans
kss:
builder: "node_modules/kstat-kss-builder"
css:
- ../styles/styleguide.css
js:
# - ../vendors/bootstrap/dropdown.js
# - ../vendors/bootstrap/collapse.js
- ../vendors/jquery-once/jquery.once.min.js
- ../js/drupal_pre.js
- ../js/main.js
- ../js/drupal_post.js
source:
- node_modules/kss-bootstrap/styleguide/css/table
- node_modules/kss-bootstrap/styleguide/css/button
- node_modules/kss-bootstrap/styleguide/css/code
- node_modules/kss-bootstrap/styleguide/css/grid
- node_modules/kss-bootstrap/styleguide/css/helper
- node_modules/kss-bootstrap/styleguide/css/form
- node_modules/kss-bootstrap/styleguide/css/typography
- node_modules/kss-bootstrap/styleguide/components/nav
- node_modules/kss-bootstrap/styleguide/components/btn-group
- node_modules/kss-bootstrap/styleguide/components/pagination
- node_modules/kss-bootstrap/styleguide/components/media
- node_modules/kss-bootstrap/styleguide/components/alert
- node_modules/kss-bootstrap/styleguide/components/badge
- node_modules/kss-bootstrap/styleguide/components/breadcrumb
# - node_modules/kss-bootstrap/styleguide/components/dropdown
# - node_modules/kss-bootstrap/styleguide/components/jumbotron
- node_modules/kss-bootstrap/styleguide/components/label
- node_modules/kss-bootstrap/styleguide/components/list-group
- node_modules/kss-bootstrap/styleguide/components/panel
# - node_modules/kss-bootstrap/styleguide/components/progress
- node_modules/kss-bootstrap/styleguide/css/image
# - node_modules/kss-bootstrap/styleguide/javascript/carousel
# - node_modules/kss-bootstrap/styleguide/javascript/collapse
# - node_modules/kss-bootstrap/styleguide/javascript/dropdown
# - node_modules/kss-bootstrap/styleguide/javascript/modal
# - node_modules/kss-bootstrap/styleguide/javascript/popover
# - node_modules/kss-bootstrap/styleguide/javascript/scrollspy
# - node_modules/kss-bootstrap/styleguide/javascript/tooltip
- node_modules/kss-bootstrap/styleguide/sections
- *source