forked from phase2/p2-theme-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.default.js
140 lines (140 loc) · 3.01 KB
/
config.default.js
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
module.exports = {
css: {
enabled: true,
src: [
'scss/**/*.scss',
],
dest: 'dest/',
extraWatches: [],
flattenDestOutput: true,
lint: {
enabled: true,
failOnError: true,
// in addition to linting `css.src`, this is added.
extraSrc: [],
},
// enables additional debugging information in the output file as CSS comments - only use when necessary
sourceComments: false,
sourceMapEmbed: false,
// tell the compiler whether you want 'expanded' or 'compressed' output code
outputStyle: 'expanded',
// https://github.com/ai/browserslist#queries
autoPrefixerBrowsers: [
'last 2 versions',
'IE >= 10',
],
includePaths: [
'./node_modules',
],
// http://sassdoc.com
sassdoc: {
enabled: false,
dest: 'dest/sassdoc',
verbose: false,
basePath: '',
exclude: [],
theme: 'default',
// http://sassdoc.com/customising-the-view/#sort
sort: [
'file',
'group',
'line>',
],
},
},
js: {
enabled: true,
src: [
// 'js/**/*.js',
],
dest: 'dest/',
destName: 'all.min.js',
sourceMapEmbed: false,
uglify: false,
babel: false,
eslint: {
enabled: true,
src: [
'js/**/*.js',
'gulpfile.js',
],
},
},
patternLab: {
enabled: false,
configFile: 'pattern-lab/config/config.yml',
watchedExtensions: [
'twig',
'json',
'yaml',
'yml',
'md',
'jpg',
'jpeg',
'png',
],
extraWatches: [],
},
// https://github.com/nfroidure/gulp-iconfont
icons: {
enabled: false,
src: 'images/icons/src/*.svg',
dest: 'dest/',
fontPathPrefix: '',
classNamePrefix: 'icon',
autohint: false,
normalize: true,
fontHeight: 1001,
useTimestamp: false,
templates: {
enabled: true,
css: {
src: 'images/icons/templates/_icons.scss',
dest: 'scss/00-config/',
},
demo: {
src: 'images/icons/templates/icons.twig',
dest: 'pattern-lab/source/_patterns/00-atoms/images/',
},
},
formats: [
'ttf',
'eot',
'woff',
'svg',
],
},
browserSync: {
enabled: false,
port: 3050,
watchFiles: [],
// enable when full CMS is set up
// domain: 'mysite.dev',
baseDir: './',
startPath: 'pattern-lab/public/',
openBrowserAtStart: false,
// requires above to be true; allows non-default browser to open
browser: [
'Google Chrome',
],
// Tunnel the Browsersync server through a random Public URL
// -> http://randomstring23232.localtunnel.me
tunnel: false,
reloadDelay: 50,
reloadDebounce: 750,
},
drupal: {
enabled: false,
// when these files change
watch: [
'template.php',
'templates/**',
],
// max-width for lines in the theme info.yml
lineWidth: 80,
// run this command
command: 'drush cc all',
// in this directory
dir: './',
},
};