This repository has been archived by the owner on Jan 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulp-config.js
108 lines (105 loc) · 2.63 KB
/
gulp-config.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
/* globals module */
(function () {
'use strict';
var themeDir = './';
var paths = {
js: themeDir + '/components/_patterns/00-base/global/*.js',
styleguide_js: [
themeDir + '/js/**/*.js',
themeDir + '/components/_patterns/**/*.js'
],
dist_js: themeDir + '/dist',
sass: themeDir,
img: themeDir + '/images',
dist_css: themeDir + '/dist/css',
dist_img: themeDir + '/dist/img'
};
module.exports = {
host: 'http://127.0.0.1:8888/',
themeDir: themeDir,
paths: paths,
sassOptions: {
outputStyle: 'expanded',
eyeglass: {
enableImportOnce: false
}
},
cssConfig: {
enabled: true,
src: themeDir + '/components/_patterns/**/*.scss',
dest: themeDir + '/dist/',
flattenDestOutput: true,
lint: {
enabled: false,
failOnError: true
},
sourceComments: false,
sourceMapEmbed: false,
outputStyle: 'expanded',
autoPrefixerBrowsers: [
'last 2 versions',
'- IE >= 9'
],
includePaths: (['./node_modules']),
sassdoc: {
enabled: true,
dest: themeDir + '/dist/sassdoc',
verbose: false,
sort: [
'file',
'group',
'line'
]
}
},
iconConfig: {
shape: {
dimension: {
maxWidth: 15,
maxHeight: 15
},
spacing: { // Add padding
padding: 10
}
},
mode: {
css: {
bust: false,
dest: '../../dist',
prefix: '@mixin sprite-%s',
render: {
scss: {
dest: '../components/_patterns/01-atoms/04-images/icons/_icon_sprite.scss',
template: 'node_modules/fourk-gulp/gulp-tasks/svg-icons/sprite.scss.handlebars'
}
}
}
}
},
patternLab: {
enabled: true,
configFile: 'pattern-lab/config/config.yml',
watchedExtensions: (['twig', 'json', 'yaml', 'yml', 'md', 'jpg', 'jpeg', 'png']),
scssToJson: [
{
src: themeDir + '/components/_patterns/00-base/global/01-colors/_color-vars.scss',
dest: themeDir + '/components/_patterns/00-base/global/01-colors/colors.json',
lineStartsWith: '$',
allowVarValues: false
}
]
},
browserSync: {
ui: false,
enabled: true,
baseDir: './',
startPath: 'pattern-lab/public/',
// Uncomment below if using a specific local url
// domain: 'fourk.dev',
openBrowserAtStart: true,
browser: "google chrome",
reloadDelay: 50,
reloadDebounce: 750
}
};
})();