Skip to content

Commit 9355816

Browse files
author
Christoph Burgmer
committedMar 6, 2014
Add clean build step
1 parent ff83637 commit 9355816

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed
 

‎Gruntfile.js

+10-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
module.exports = function (grunt) {
33
grunt.initConfig({
44
pkg: grunt.file.readJSON('package.json'),
5+
clean: {
6+
all: ['build', 'test/ui/*.html.json']
7+
},
58
jasmine: {
69
src: [
710
'node_modules/rasterizehtml/dist/rasterizeHTML.allinone.js',
@@ -243,6 +246,7 @@ module.exports = function (grunt) {
243246
grunt.loadNpmTasks('grunt-contrib-watch');
244247
grunt.loadNpmTasks('grunt-contrib-cssmin');
245248
grunt.loadNpmTasks('grunt-contrib-csslint');
249+
grunt.loadNpmTasks('grunt-contrib-clean');
246250
grunt.loadNpmTasks('grunt-shell');
247251

248252
grunt.registerTask('test', [
@@ -252,11 +256,15 @@ module.exports = function (grunt) {
252256
'shell:runPhantomTests'
253257
]);
254258

255-
grunt.registerTask('default', [
256-
'test',
259+
grunt.registerTask('build', [
257260
'concat',
258261
'uglify',
259262
'cssmin'
260263
]);
261264

265+
grunt.registerTask('default', [
266+
'test',
267+
'build'
268+
]);
269+
262270
};

‎package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
"grunt-shell": "~0.6.1",
3838
"jasmine-core": "~2.0.0",
3939
"jasmine-jquery": "git://github.com/velesin/jasmine-jquery",
40-
"jquery": "~2.1.0"
40+
"jquery": "~2.1.0",
41+
"grunt-contrib-clean": "~0.5.0"
4142
},
4243
"scripts": {
4344
"test": "bash go --verbose"

0 commit comments

Comments
 (0)
Please sign in to comment.