-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulp.config.js
90 lines (87 loc) · 2.33 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
module.exports = function() {
var client = './client/';
var server = './src/server/';
var clientApp = client + 'app/';
var wiredep = require('wiredep');
var root = './';
var report = root + 'report/';
var temp = './.tmp/';
var bower = {
json: require('./bower.json'),
directory: root + 'libs',
ignorePath: '../..'
};
var bowerFiles = wiredep({
devDependencies: true
})['js'];
var config = {
alljs: [
'./**/*.js',
// './*.js',
'!./node_modules/**/*.js',
'!./libs/**/*.js',
'!./public/js/lib/*.js',
'!./report/**/*.js',
'!./test/**/*.js'
],
bower: bower,
build: './build/',
browserReloadDelay:1000,
css: temp + 'site.css',
client: client,
defaultPort: '8080',
fonts: bower.directory + 'font-awesome/fonts/**/*.*',
htmltemplates: clientApp + '**/*.html',
index: client + 'index.html',
images: client + 'images/**/*.*',
js: [
clientApp + '**/*.module.js',
clientApp + '**/*.js',
'!' + clientApp + '**/*.spec.js'
],
jsOrder: [
'**/app.module.js',
'**/*.module.js',
'**/*.js'
],
nodeServer:'./server/app.js',
optimized: {
app: 'app.js',
lib: 'lib.js'
},
packages: [
'./packages.json',
'./bower.json'
],
plato: {
js: clientApp + '**/*.js'
},
root: root,
report: report,
server:server,
source:'./',
scss: client + 'styles/site.scss',
stubsjs: [
bower.directory + 'angular-mocks/angular-mocks.js',
client + 'stubs/**/*.js'
],
temp: temp,
templateCache: {
file: 'templates.js',
options: {
module: 'app.core',
root: 'app/',
standAlone: false
}
}
};
config.getWiredepDefaultOptions = function() {
var options = {
bowerJson: config.bower.json,
directory: config.bower.directory,
ignorePath: config.bower.ignorePath
};
return options;
};
return config;
};