-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgulp.config.js
More file actions
59 lines (50 loc) · 1.4 KB
/
gulp.config.js
File metadata and controls
59 lines (50 loc) · 1.4 KB
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
/* jshint node: true, -W024, -W040, -W098, -W126 */
'use strict';
var $ = require('gulp-load-plugins')({lazy: true}),
src = './src/';
module.exports = {
// --- Configurables ---
name: 'Angular Kic-start',
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,
languages: ['en', 'pt'],
i18nFolder:'i18n',
// --- 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(msg) {
var notifier = require('node-notifier');
var options = {};
if (typeof msg === 'string') {
options = {
message: msg,
title: this.name,
sound: true,// Only Notification Center or Windows Toasters
};
}
notifier.notify(options);
}
};