forked from PedroGutierrezStratio/Project-scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulp.config.js
98 lines (94 loc) · 2.32 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
var assets = {
js: [
//'./node_modules/jquery/dist/jquery.js',
'./node_modules/babel-polyfill/dist/polyfill.js',
'./node_modules/angular/angular.js',
'./node_modules/angular-sanitize/angular-sanitize.js',
'./node_modules/angular-animate/angular-animate.js',
'./node_modules/angular-resource/angular-resource.js',
'./node_modules/angular-ui-router/release/angular-ui-router.js',
'./node_modules/angular-translate/dist/angular-translate.js'
],
jsTest: [
'./node_modules/babel-polyfill/dist/polyfill.js',
'./node_modules/angular-mocks/angular-mocks.js',
'./src/core/core.*.spec.js'
],
css: [
'./node_modules/egeo.ui.base/src/index.scss'
],
fonts: [
'./node_modules/egeo.ui.base/dist/egeo/vendors/fonts/**/*.*',
]
};
var path = {
moduleName: 'app',
moduleCoreName: 'app.core',
// origin files and folder
origin: {
index: 'src/index.html',
folder: 'src/',
images: 'src/resources/images/',
resources: 'src/resources/',
baseSass: 'src/styles/',
modulesSass: 'src/!(styles)/',
translationFolder: 'src/resources/langs/',
favicon: 'src/favicon.ico'
},
// destination files and folder
dist: {
index: 'dist/index.html',
folder: 'dist/',
buildFolder: 'dist/',
js: 'dist/js/',
css: 'dist/css/',
resultJS: 'scripts.js',
resultJSVendors: 'vendors.js',
exclusions: {
js: [
'mocks/**/!(*.module).js',
'**/*.mock.js'
]
}
},
// development files and folder
temporary: {
index: '.tmp/index.html',
translationFile: 'app.translation.js',
folder: '.tmp/',
js: '.tmp/js/',
jsVendor: '.tmp/js/vendors/',
css: '.tmp/css/',
resources: '.tmp/resources/',
fonts: '.tmp/fonts/'
},
coverage: {
folder: 'target/coverage'
},
//config files
config: {
karma: '/karma.conf.js'
}
};
var patterns = {
all: '**/*.*',
allJS: '**/*.js',
allModuleJS: '**/*.module.js',
allTestJS: '**/*.spec.js',
allMockJS: '**/*.mock.js',
allVendorJS: 'vendors/*.js',
allJSExcludeTest: '**/!(*.spec).js',
allJSMap: '**/*.js.map',
allJSON: '**/*.json',
allSCSS: '**/*.scss',
allCSS: '**/*.css',
allCSSMap: '**/*.css.map',
allHTML: '**/*.html',
mainSass: 'main.scss',
angular: '**/angular.js'
};
module.exports = {
path: path,
patterns: patterns,
assets: assets
};