-
Notifications
You must be signed in to change notification settings - Fork 5
/
gulpfile-config.js
58 lines (49 loc) · 1.52 KB
/
gulpfile-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
'use strict';
///////////////////////////
// variables and settings
///////////////////////////
// dir is for simple directory paths
let dir = {};
module.exports.dir = dir;
dir.build = './build';
dir.dist = './dist';
dir.src = './src';
dir.client = dir.src + '/client';
dir.server = dir.src + '/server';
dir.jspm = './jspm_packages';
dir.npm = './node_modules';
dir.bower = './bower_components';
// src is for logical groups of source files
// for example: 'src.img' includes *.png, *.jpg, etc.
// also, src logical groups include nested directories
let src = {};
module.exports.src = src;
src.html = [dir.client + '/**/*.html'];
src.css = [dir.client + '/**/*.css'];
src.img = [
dir.client + '/**/*.png',
dir.client + '/**/*.jpg',
dir.client + '/**/*.gif'
];
src.favicon = [dir.client + '/favicon.ico'];
src.js = [dir.client + '/**/*.js'];
src.bower = [dir.bower + '/**/*.*'];
// build is for logical groups of built files
// for example: ES6 JavaScript files that have been
// transpiled into ES5 files
let build = {};
module.exports.build = build;
build.html = dir.build;
build.css = dir.build + '/css';
build.img = dir.build + '/img';
build.js = dir.build + '/js';
// dist is for logical groups of files ready for distribution
// for example: JavaScript files that have been
// concatenated and minified
// dist files are ready to be pushed into production
let dist = {};
module.exports.dist = dist;
dist.html = dir.dist;
dist.css = dir.dist + '/css';
dist.img = dir.dist + '/img';
dist.js = dir.dist + '/js';