-
Notifications
You must be signed in to change notification settings - Fork 3
/
gulp.config.js
122 lines (109 loc) · 2.92 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
module.exports = function() {
var build = './build/';
var client = './src/client/';
var temp = './.tmp/';
var bower = {
json: require('./bower.json'),
directory: './bower_components/',
ignorePath: '../..'
};
var config = {
/**
* File paths
*/
build: build,
client: client,
css: [
client + 'css/vendor/taggd/taggd.css',
client + 'css/vendor/twemoji-awesome/twemoji-awesome.css',
client + 'css/textarea.css',
client + 'css/style.css',
client + 'css/mystyle.css'
],
fonts: [
bower.directory + 'fontawesome/fonts/**/*.*'
//client + 'fonts/*.*'
],
html: client + '**/*.html',
htmltemplates: client + 'views/**/*.html',
imagesFromPlugins: [
// bower.directory + 'iCheck/skins/square/green.png',
// bower.directory + 'iCheck/skins/square/green@2x.png'
bower.directory + 'jquery-ui/themes/base/images/*.png'
],
images: client + 'images/**/*.*',
index: client + 'index.html',
js: [
client + 'js/**/*.module.js',
client + 'js/**/*.js'
],
jsOrder: [
'helper-functions.js',
'**/app.module.js',
'**/*.module.js',
'**/*.js'
],
jsVendor: client + 'js/vendor/**/*.js',
temp: temp,
tempCss: [
temp + 'css/taggd.css',
temp + 'css/twemoji-awesome.css',
temp + 'css/textarea.css',
temp + 'css/style.css',
temp + 'css/mystyle.css'
],
/**
* optimized files
*/
optimized: {
app: 'app.js',
lib: 'lib.js'
},
/**
* Node settings
*/
nodeServer: './src/server/app.js',
defaultPort: 7203,
getWiredepOptions: getWiredepOptions,
/**
* Browser sync
*/
browserReloadDelay: 1000,
/**
* template cache
*/
templateCache: {
file: 'templates.js',
options: {
module: 'postaddict',
root: 'views/',
standAlone: false
}
},
/**
* Bower and NPM files
*/
bower: bower,
packages: [
'./package.json',
'./bower.json'
]
};
return config;
//////////////
function getWiredepOptions() {
return {
directory: bower.directory,
bowerJson: bower.json,
/* In case of CDN */
// exclude: [
// '/jquery/',
// '/jquery-ui/',
// '/bootstrap/',
// '/twemoji/',
// '/fontawesome/'
// ],
ignorePath: bower.ignorePath
}
}
};