Skip to content

Commit 3c6f177

Browse files
author
rstaib
committed
Add clean task for build process
1 parent 8a644a2 commit 3c6f177

File tree

7 files changed

+7
-4
lines changed

7 files changed

+7
-4
lines changed

Gruntfile.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ module.exports = function (grunt)
117117
outdir: 'docs/'
118118
}
119119
}
120-
}
120+
},
121+
clean: ["dist", "docs"]
121122
});
122123

123124
grunt.loadNpmTasks('grunt-contrib-jshint');
@@ -126,7 +127,8 @@ module.exports = function (grunt)
126127
grunt.loadNpmTasks('grunt-contrib-concat');
127128
grunt.loadNpmTasks('grunt-contrib-yuidoc');
128129
grunt.loadNpmTasks('grunt-contrib-compress');
130+
grunt.loadNpmTasks('grunt-contrib-clean');
129131

130-
grunt.registerTask('default', ['jshint'/*, 'qunit'*/, 'yuidoc']);
132+
grunt.registerTask('default', ['clean', 'jshint'/*, 'qunit'*/, 'yuidoc']);
131133
grunt.registerTask('release', ['default', 'concat', 'uglify', 'compress']);
132134
};
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

jquery.steps.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151

152152
/**
153153
* An object that represents the default settings.
154-
* There are two possibiities to override the sub-properties.
154+
* There are two possibities to override the sub-properties.
155155
* Either by doing it generally (global) or on initialization.
156156
*
157157
* @static

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
"grunt-contrib-uglify": "~0.2.0",
3535
"grunt-contrib-concat": "~0.3.0",
3636
"grunt-contrib-yuidoc": "~0.4.0",
37-
"grunt-contrib-compress": "~0.5.0"
37+
"grunt-contrib-compress": "~0.5.0",
38+
"grunt-contrib-clean": "~0.4.1"
3839
},
3940
"readmeFilename": "README.md",
4041
"gitHead": "0d9f4f8b6a0c3d3b8a73eabf6a4b8cececd52f7a"

0 commit comments

Comments
 (0)