-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.gulpconfig.js
95 lines (95 loc) · 2.1 KB
/
default.gulpconfig.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
module.exports = {
browserSync: {
enabled: true,
port: 3030,
watchFiles: [],
baseDir: 'build/',
startPath: '/',
openBrowserAtStart: true,
// requires above to be true; allows non-default browser to open
browser: [
'Google Chrome',
],
reloadDelay: 50,
reloadDebounce: 750,
},
css: {
enabled: true,
source: [
'src/scss/styles.scss',
],
includePaths: [],
dest: 'build/css/',
watchPaths: [
'src/scss/**/*.scss'
],
// Lint css using .stylelintrc.js settings
lint: true,
// outputStyles maybe 'expanded', 'compressed', 'nested'
outputStyle: 'expanded',
sourceMapEmbed: true,
sourceComments: false,
autoPrefixerBrowsers: [
'last 2 versions',
'IE >= 10',
],
flattenOutput: false,
sassdoc: {
enabled: true,
dest: 'sassdoc',
verbose: false,
exclude: [],
},
},
js: {
enabled: true,
source: 'src/js/*.js',
dest: 'build/js/',
destFileName: 'scripts.js',
babel: false,
uglify: false,
sourceMapEmbed: true,
includePaths: [],
// Lint javascript using .eslintrc.js settings
eslint: {
enabled: true,
sources: [
'src/js/**/*.js',
],
},
// Generate documentation from inline js comments using /** ... */ Note: This package can take a long time to compile
documentationJs: {
enabled: false,
sources: [
'src/js/**/*.js',
],
dest: 'jsdoc',
// Either 'html', 'md', or 'json'
format: 'html',
},
},
html: {
enabled: true,
// Source html files. If using Twig.js, these will be .twig files
sources: [
'src/index.html',
],
dest: 'build/',
// Html Validator
lint: true,
// Twig.js, Javascript implementation of Twig
twig: {
enabled: false,
// Directory of pratials
baseDir: 'src/templates/',
},
},
assets: {
//clean pipe, no compiling, use this move images and other static content from src to build
enabled: true,
sources: [
'src/assets/**/*.*',
],
dest: 'build/assets/',
}
};