This repository has been archived by the owner on Aug 8, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
gulp.config.js
58 lines (56 loc) · 1.72 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
module.exports = function() {
var config = {
build: {
dest: './dist'
},
lint: {
src: ['./app/**/*.js', '!./app/vendor/noNpm/**/*']
},
browserify: {
src: './app/app.js', // Entry point
outputDir: './dist/', // Directory to save bundle to
mapDir: '.', // Subdirectory to save maps to
outputFile: 'bundle.js', // Name to use for bundle
watch: [
'./app/**/*.js',
'!./app/**/*.spec.js',
'./app/**/*.html',
'./app/**/*.md'
]
},
styles: {
src: './app/app.less',
watch: ['./app/**/*.less'],
dest: './dist/css/'
},
assets: {
images: {
src: './app/assets/images/**/*',
watch: ['./app/assets/images', './app/assets/images/**/*'],
dest: './dist/images/'
},
fonts: {
src: ['./node_modules/font-awesome/fonts/*', './app/fonts/**/*'],
dest: './dist/fonts/'
}
},
vendorJS: {
// These files will be bundled into a single vendor.js file that's called at the bottom of index.html
src: ['./app/vendor/vendor.js']
},
//vendorCSS: {
// src: [
// './libs/bootstrap/dist/css/bootstrap.css', // v3.1.1
// './libs/font-awesome/css/font-awesome.css' // v4.1.0
// ]
//},
copyIndex: {
src: './app/index.html',
watch: './app/index.html'
},
copyFavicon: {
src: './app/favicon.png'
}
};
return config;
}