Concat tests together for inbrowser exec

This commit is contained in:
kpdecker
2013-12-23 01:32:01 -06:00
parent 96b42dedea
commit 9ad8b86ece
3 changed files with 12 additions and 1 deletions
+1
View File
@@ -18,5 +18,6 @@ dist/components/*
spec/*
src/*
tasks/*
tmp/*
publish/*
vendor/*
+10 -1
View File
@@ -14,7 +14,7 @@ module.exports = function(grunt) {
]
},
clean: ["dist", "lib/handlebars/compiler/parser.js"],
clean: ['tmp', 'dist', 'lib/handlebars/compiler/parser.js'],
copy: {
dist: {
@@ -110,6 +110,13 @@ module.exports = function(grunt) {
}
}]
}
},
concat: {
tests: {
src: ['spec/!(require).js'],
dest: 'tmp/tests.js'
}
}
});
@@ -124,11 +131,13 @@ module.exports = function(grunt) {
this.registerTask('amd', ['packager:amd', 'requirejs']);
this.registerTask('node', ['packager:cjs']);
this.registerTask('globals', ['packager:global']);
this.registerTask('tests', ['concat:tests']);
this.registerTask('release', 'Build final packages', ['amd', 'jshint', 'uglify', 'copy:dist', 'copy:components', 'copy:cdnjs']);
// Load tasks from npm
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-requirejs');
grunt.loadNpmTasks('grunt-contrib-jshint');
+1
View File
@@ -35,6 +35,7 @@
"grunt": "~0.4.1",
"grunt-cli": "~0.1.10",
"grunt-contrib-clean": "~0.4.1",
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-copy": "~0.4.1",
"grunt-contrib-jshint": "~0.7.2",
"grunt-contrib-requirejs": "~0.4.1",