Skip to content

Commit 56df9f2

Browse files
committed
chore(build): added cached templates filename to config
1 parent da0959a commit 56df9f2

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

config.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
"tests" : "src/+(app|common)/**/*.spec.js"
2020
},
2121

22+
"templateFile": "app.templates.js",
23+
2224
"bower": {
2325
"json": "./bower.json",
2426
"directory": "./vendor/",

gulpfile.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,11 @@ var fnCacheTpls = function (path) {
118118
quotes: true
119119
}))
120120
.pipe(plugins.angularTemplatecache({
121-
module: 'templates.app',
121+
module: 'app.templates',
122122
standalone: true
123123
}))
124-
.pipe(plugins.concat('templates.js'))
125-
.pipe(gulp.dest(config.build + '/app'))
124+
.pipe(plugins.concat(config.templateFile))
125+
.pipe(gulp.dest(config.build + '/assets'))
126126
.pipe(bs.stream());
127127
};
128128
gulp.task('scripts:cacheTpls', function () {

src/app/app.module.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

33
angular.module('ngDevstack', [
4-
'templates.app',
4+
'app.templates',
55
'ngDevstack.conf',
66
'ngDevstack.home',
77
'ngDevstack.about',

0 commit comments

Comments
 (0)