Commit 47214108 authored by JC Brand's avatar JC Brand

No need to build `dist/templates.js` anymore.

parent 1e07767a
module.exports = function(grunt) { module.exports = function(grunt) {
grunt.initConfig({ grunt.initConfig({
jst: {
compile: {
options: {
namespace: 'templates',
templateSettings: {
evaluate : /\{\[([\s\S]+?)\]\}/g,
interpolate : /\{\{([\s\S]+?)\}\}/g
},
processName: function (filepath) {
// E.g. src/templates/trimmed_chat.html
return filepath.match(/src\/templates\/([a-z_]+)\.html/)[1];
}
},
files: {
"dist/templates.js": ["src/templates/*.html"]
},
}
},
cssmin: { cssmin: {
options: { options: {
banner: "/*"+ banner: "/*"+
...@@ -48,6 +29,5 @@ module.exports = function(grunt) { ...@@ -48,6 +29,5 @@ module.exports = function(grunt) {
} }
}); });
grunt.loadNpmTasks('grunt-contrib-cssmin'); grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-jst');
grunt.loadNpmTasks('grunt-json'); grunt.loadNpmTasks('grunt-json');
}; };
...@@ -174,7 +174,6 @@ dist:: build ...@@ -174,7 +174,6 @@ dist:: build
.PHONY: build .PHONY: build
build:: stamp-npm build:: stamp-npm
$(GRUNT) jst
$(GRUNT) cssmin $(GRUNT) cssmin
$(GRUNT) json $(GRUNT) json
make jsmin make jsmin
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment