Skip to content

Commit

Permalink
Merge pull request #518 from rtfd/grunt-tasks
Browse files Browse the repository at this point in the history
Make Gruntfile more foolproof
  • Loading branch information
ericholscher committed Dec 22, 2017
2 parents 38ba3fc + fce6005 commit b2c8c0c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ module.exports = function(grunt) {
},
clean: {
build: ["demo_docs/build"],
fonts: ["sphinx_rtd_theme/static/fonts"]
fonts: ["sphinx_rtd_theme/static/fonts"],
css: ["sphinx_rtd_theme/static/css"],
js: ["sphinx_rtd_theme/static/js/*", "!sphinx_rtd_theme/static/js/modernizr.min.js"]
},

watch: {
Expand Down Expand Up @@ -160,6 +162,6 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-browserify');

grunt.registerTask('fonts', ['clean:fonts','copy:fonts']);
grunt.registerTask('default', ['exec:bower_update','clean:build','sass:dev','browserify:dev','exec:build_sphinx','connect','open','watch']);
grunt.registerTask('build', ['exec:bower_update','clean:build','sass:build','browserify:build','exec:build_sphinx']);
grunt.registerTask('default', ['exec:bower_update','clean','copy:fonts','sass:dev','browserify:dev','exec:build_sphinx','connect','open','watch']);
grunt.registerTask('build', ['exec:bower_update','clean','copy:fonts','sass:build','browserify:build','exec:build_sphinx']);
}

0 comments on commit b2c8c0c

Please sign in to comment.