Skip to content

Commit cac6c64

Browse files
author
OpenShift Bot
committed
Merge pull request #3856 from spadgett/precompile-templates
Merged by openshift-bot
2 parents f9ad398 + 2641510 commit cac6c64

File tree

3 files changed

+2473
-2
lines changed

3 files changed

+2473
-2
lines changed

Diff for: assets/Gruntfile.js

+16
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,19 @@ module.exports = function (grunt) {
375375
}
376376
},
377377

378+
ngtemplates: {
379+
dist: {
380+
cwd: '<%= yeoman.app %>',
381+
src: 'views/**/*.html',
382+
dest: '<%= yeoman.dist %>/scripts/templates.js',
383+
options: {
384+
module: 'openshiftConsole',
385+
htmlmin: '<%= htmlmin.dist %>',
386+
usemin: 'scripts/scripts.js'
387+
}
388+
}
389+
},
390+
378391
// Copies remaining files to places other tasks can use
379392
copy: {
380393
dist: {
@@ -530,6 +543,8 @@ module.exports = function (grunt) {
530543

531544
grunt.loadNpmTasks('grunt-htmlhint');
532545

546+
grunt.loadNpmTasks('grunt-angular-templates');
547+
533548
// karma must run prior to coverage since karma will generate the coverage results
534549
grunt.registerTask('test', [
535550
'clean:server',
@@ -555,6 +570,7 @@ module.exports = function (grunt) {
555570
'htmlhint',
556571
'wiredep',
557572
'useminPrepare',
573+
'ngtemplates',
558574
'concurrent:dist',
559575
'autoprefixer',
560576
'concat',

Diff for: assets/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"clean-css": "2.1.8",
1111
"connect-modrewrite": "0.7.9",
1212
"grunt": "0.4.5",
13+
"grunt-angular-templates": "0.5.7",
1314
"grunt-autoprefixer": "0.7.6",
1415
"grunt-concurrent": "0.5.0",
1516
"grunt-contrib-clean": "0.5.0",
@@ -34,7 +35,7 @@
3435
"grunt-svgmin": "0.4.0",
3536
"grunt-usemin": "2.4.0",
3637
"grunt-wiredep": "1.9.0",
37-
"html-minifier": "0.7.0",
38+
"html-minifier": "0.7.2",
3839
"imagemin": "1.0.5",
3940
"jasmine-beforeall": "0.1.1",
4041
"jasmine-spec-reporter": "1.1.2",

0 commit comments

Comments
 (0)