-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.config.js
More file actions
56 lines (53 loc) · 1.34 KB
/
gulpfile.config.js
File metadata and controls
56 lines (53 loc) · 1.34 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
import path from 'path';
module.exports = () => {
let root = 'src';
let paths = {
dist: 'dist',
scripts: [`${root}/app/**/*.js`],
templates: [`${root}/app/**/*.html`],
styles: [
`${root}/app/**/*.scss`,
`${root}/app/**/*.sass`,
`${root}/lib/**/*.css`,
'node_modules/adm-dtp/dist/ADM-dateTimePicker.min.css'
],
libs: [
'src/lib/loading-spinner.min.js'
],
vendors: [
`angular/angular.js`,
`angular-animate/angular-animate.js`,
`angular-ui-router/release/angular-ui-router.js`,
'firebase/firebase.js',
'angularfire/dist/angularfire.min.js',
'moment/moment.js',
'adm-dtp/dist/ADM-dateTimePicker.js'
],
vendorsProd: [
`angular/angular.min.js`,
`angular-animate/angular-animate.min.js`,
`angular-ui-router/release/angular-ui-router.min.js`,
'firebase/firebase.js',
'angularfire/dist/angularfire.min.js',
'moment/min/moment.min.js',
'adm-dtp/dist/ADM-dateTimePicker.min.js'
],
static: [
`${root}/index.html`
]
};
let templateCache = {
root: 'app', // setting root path to avoid a template url with no directory
standalone: true,
transformUrl: (url) => {
// replacing directory path with ./
// this is done to match the templateUrl value with the one on the template cache
return url.replace(path.dirname(url), '.');
}
}
return {
root,
paths,
templateCache
};
};