Skip to content

Commit f0dc7e5

Browse files
committed
add new "build" grunt task. Add copy-docs to dist task
1 parent f3ef86d commit f0dc7e5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Gruntfile.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -278,11 +278,14 @@ module.exports = function (grunt) {
278278
// Copy dist to docs
279279
grunt.registerTask('copy-docs', ['clean:docs', 'copy:docs']);
280280

281+
// Build CSS & JS
282+
grunt.registerTask('build', ['build-css', 'build-js']);
283+
281284
// Development watch
282-
grunt.registerTask('dev-watch', ['build-css', 'build-js', 'watch']);
285+
grunt.registerTask('dev-watch', ['build', 'watch']);
283286

284287
// Full distribution
285-
grunt.registerTask('dist', ['build-css', 'build-js', 'compress']);
288+
grunt.registerTask('dist', ['build', 'compress', 'copy-docs']);
286289

287290
// Default task.
288291
grunt.registerTask('default', ['build-css', 'build-js']);

0 commit comments

Comments
 (0)