Remove JST processing.
This commit is contained in:
Родитель
33bc7eb7b7
Коммит
039dfb5761
26
Gruntfile.js
26
Gruntfile.js
|
@ -23,12 +23,6 @@ module.exports = function (grunt) {
|
|||
styles: {
|
||||
files: ['<%= yeoman.app %>/styles/{,*/}*.css'],
|
||||
tasks: ['copy:styles', 'autoprefixer']
|
||||
},
|
||||
jst: {
|
||||
files: [
|
||||
'<%= yeoman.app %>/scripts/templates/*.ejs'
|
||||
],
|
||||
tasks: ['jst']
|
||||
}
|
||||
},
|
||||
connect: {
|
||||
|
@ -244,16 +238,6 @@ module.exports = function (grunt) {
|
|||
rjsConfig: '<%= yeoman.app %>/scripts/main.js'
|
||||
}
|
||||
},
|
||||
jst: {
|
||||
options: {
|
||||
amd: true
|
||||
},
|
||||
compile: {
|
||||
files: {
|
||||
'.tmp/scripts/templates.js': ['<%= yeoman.app %>/scripts/templates/*.ejs']
|
||||
}
|
||||
}
|
||||
},
|
||||
modernizr: {
|
||||
devFile: '<%= yeoman.app %>/bower_components/modernizr/modernizr.js',
|
||||
outputFile: '<%= yeoman.dist %>/bower_components/modernizr/modernizr.js',
|
||||
|
@ -266,18 +250,12 @@ module.exports = function (grunt) {
|
|||
},
|
||||
concurrent: {
|
||||
server: [
|
||||
'createDefaultTemplate',
|
||||
'jst',
|
||||
'copy:styles'
|
||||
],
|
||||
test: [
|
||||
'createDefaultTemplate',
|
||||
'jst',
|
||||
'copy:styles'
|
||||
],
|
||||
dist: [
|
||||
'createDefaultTemplate',
|
||||
'jst',
|
||||
'copy:styles',
|
||||
'imagemin',
|
||||
'svgmin',
|
||||
|
@ -286,10 +264,6 @@ module.exports = function (grunt) {
|
|||
}
|
||||
});
|
||||
|
||||
grunt.registerTask('createDefaultTemplate', function () {
|
||||
grunt.file.write('.tmp/scripts/templates.js', 'this.JST = this.JST || {};');
|
||||
});
|
||||
|
||||
grunt.registerTask('server', function (target) {
|
||||
if (target === 'dist') {
|
||||
return grunt.task.run(['build', 'connect:dist:keepalive']);
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
"grunt": "~0.4.1",
|
||||
"grunt-contrib-copy": "~0.4.1",
|
||||
"grunt-contrib-concat": "~0.3.0",
|
||||
"grunt-contrib-jst": "~0.5.0",
|
||||
"grunt-contrib-uglify": "~0.2.0",
|
||||
"grunt-contrib-jshint": "~0.6.3",
|
||||
"grunt-contrib-cssmin": "~0.6.0",
|
||||
|
|
Загрузка…
Ссылка в новой задаче