-
Notifications
You must be signed in to change notification settings - Fork 3
/
gulpfile.js
62 lines (56 loc) · 1.46 KB
/
gulpfile.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
/// <binding ProjectOpened='watch' />
/// <vs SolutionOpened='default' />
/*
gulpfile.js
===========
Rather than manage one giant configuration file responsible
for creating multiple tasks, each task has been broken out into
its own file in gulp/tasks. Any files in that directory get
automatically required below.
To add a new task, simply add a new task file that directory.
gulp/tasks/default.js specifies the default set of tasks to run
when you run `gulp`.
*/
const gulp = require('gulp');
const { build } = require('@justeat/gulp-build-fozzie');
build(gulp, {
assetSrcDir: 'assets/src',
assetDistDir: 'assets/dist',
js: {
files: {
docs: {
srcPath: 'docs/index.js',
distFile: 'docs.js',
applyRevision: true
}
},
lintPaths: [
'!**/shims/**/*.*',
'!**/libs/**/*.*'
]
},
copy: {
js: {
prism: {
path: '/libs/prism.min.js',
dest: '/libs',
revision: false
},
modernizr: {
path: '/libs/modernizr.min.js',
dest: '/libs',
revision: false
}
},
docs: {
CNAME: {
path: '/templates/pages/CNAME'
}
}
},
docs: {
helpers: {
concat: (...args) => args.slice(0, -1).join('')
}
}
});