-
Notifications
You must be signed in to change notification settings - Fork 11
/
gulp.config.js
46 lines (39 loc) · 1.07 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
/* jshint node: true, -W024, -W040, -W098, -W126 */
'use strict';
var $ = require('gulp-load-plugins')({lazy: true}),
src = './src/';
module.exports = {
// --- Configurables ---
sourceDir: src,
testDir: './test/',
buildDir: './build/',
tempDir: './.tmp/',
js: [
// module files in desired order
src + '**/*.module.js',
// remaining files in desired order
src + 'core/**/*.js',
src + 'framework/**/*.js',
src + '**/*.js'
],
html: src + '**/*.html',
sass: src + '**/*.scss',
$: $,
args: require('yargs').argv,
// --- Utilities ---
log: function log(msg) {
if (typeof(msg) === 'object') {
for (var item in msg) {
if (msg.hasOwnProperty(item)) {
$.util.log($.util.colors.blue(msg[item]));
}
}
} else {
$.util.log($.util.colors.blue(msg));
}
},
notify: function notify(options) {
var notifier = require('node-notifier');
notifier.notify(options);
}
};