-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulp.config.js
More file actions
54 lines (53 loc) · 1.38 KB
/
Copy pathgulp.config.js
File metadata and controls
54 lines (53 loc) · 1.38 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
module.exports = function () {
var client = './src/app/';
var config = {
lintJs: [
'src/app/**/*.js',
'!src/app/bower_components/**/*.js'
],
less: 'src/app/styles/less/main.less',
temp: './.tmp/',
css: client + 'styles/',
index: client + 'index.html',
js: [
client + '**/*.module.js',
client + '**/*.*.js',
'!' + client + '**/*.spec.js',
'!' + client + 'bower_components/**/*.js'
],
html: client + '**/*.html',
client: client,
bower: {
json: require('./bower.json'),
directory: client + 'bower_components/',
ignorePath: '../..'
},
mainCss: client + 'styles/main.css',
nodeServer: './app.js',
//@todo: include app.js
serverWatch: './MockServer/',
defaultPort: 7203,
browserReloadDelay: 1000,
build: './dist/',
fonts: client + 'styles/fonts/**/*.*',
images: client + 'styles/img/**/*.{png,jpg,jpeg,gif}',
svg: client + 'styles/img/**/*.svg',
htmltemplates: client + '**/*.tpl.html',
templateCache: {
file: 'template.js',
options: {
module: 'app.core',
standAlone: false
}
}
};
config.getWiredepDefaultOptions = function () {
var options = {
bowerJson: config.bower.js,
directory: config.bower.directory,
ignorePath: config.bower.ignorePath
};
return options;
};
return config;
};