This commit is contained in:
Shane Tomlinson 2013-12-10 13:55:23 +00:00
Родитель 33bc7eb7b7
Коммит 039dfb5761
2 изменённых файлов: 0 добавлений и 27 удалений

Просмотреть файл

@ -23,12 +23,6 @@ module.exports = function (grunt) {
styles: { styles: {
files: ['<%= yeoman.app %>/styles/{,*/}*.css'], files: ['<%= yeoman.app %>/styles/{,*/}*.css'],
tasks: ['copy:styles', 'autoprefixer'] tasks: ['copy:styles', 'autoprefixer']
},
jst: {
files: [
'<%= yeoman.app %>/scripts/templates/*.ejs'
],
tasks: ['jst']
} }
}, },
connect: { connect: {
@ -244,16 +238,6 @@ module.exports = function (grunt) {
rjsConfig: '<%= yeoman.app %>/scripts/main.js' rjsConfig: '<%= yeoman.app %>/scripts/main.js'
} }
}, },
jst: {
options: {
amd: true
},
compile: {
files: {
'.tmp/scripts/templates.js': ['<%= yeoman.app %>/scripts/templates/*.ejs']
}
}
},
modernizr: { modernizr: {
devFile: '<%= yeoman.app %>/bower_components/modernizr/modernizr.js', devFile: '<%= yeoman.app %>/bower_components/modernizr/modernizr.js',
outputFile: '<%= yeoman.dist %>/bower_components/modernizr/modernizr.js', outputFile: '<%= yeoman.dist %>/bower_components/modernizr/modernizr.js',
@ -266,18 +250,12 @@ module.exports = function (grunt) {
}, },
concurrent: { concurrent: {
server: [ server: [
'createDefaultTemplate',
'jst',
'copy:styles' 'copy:styles'
], ],
test: [ test: [
'createDefaultTemplate',
'jst',
'copy:styles' 'copy:styles'
], ],
dist: [ dist: [
'createDefaultTemplate',
'jst',
'copy:styles', 'copy:styles',
'imagemin', 'imagemin',
'svgmin', '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) { grunt.registerTask('server', function (target) {
if (target === 'dist') { if (target === 'dist') {
return grunt.task.run(['build', 'connect:dist:keepalive']); return grunt.task.run(['build', 'connect:dist:keepalive']);

Просмотреть файл

@ -34,7 +34,6 @@
"grunt": "~0.4.1", "grunt": "~0.4.1",
"grunt-contrib-copy": "~0.4.1", "grunt-contrib-copy": "~0.4.1",
"grunt-contrib-concat": "~0.3.0", "grunt-contrib-concat": "~0.3.0",
"grunt-contrib-jst": "~0.5.0",
"grunt-contrib-uglify": "~0.2.0", "grunt-contrib-uglify": "~0.2.0",
"grunt-contrib-jshint": "~0.6.3", "grunt-contrib-jshint": "~0.6.3",
"grunt-contrib-cssmin": "~0.6.0", "grunt-contrib-cssmin": "~0.6.0",