Skip to content

Commit

Permalink
Re-structure grunt tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
spAnser authored Apr 12, 2017
1 parent 539f131 commit 22f7232
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions root/Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ module.exports = (grunt) ->
grunt.task.run ['craft_install']

grunt.registerTask 'install', ['bower_install', 'update_craft']
grunt.registerTask 'build', ['build-dev', 'babel:dist', 'uglify', 'cssmin', 'assets_hash']
grunt.registerTask 'build-dev', ['install', 'clean:main', 'mkdir', 'fontello:dist', 'regex-replace:fontello', 'copy:main', 'babel:dev', 'copy:loadjs', 'copy:vendor', 'copy:craft_plugins', 'copy:craft', 'csscomb', 'sass', 'csscount', 'copy:css']
grunt.registerTask 'default', ['build-dev', 'assets_hash', 'watch']
grunt.registerTask 'build-base', ['install', 'clean:main', 'mkdir', 'fontello:dist', 'regex-replace:fontello', 'copy:main', 'copy:loadjs', 'copy:vendor', 'copy:craft_plugins', 'copy:craft', 'csscomb', 'sass', 'csscount', 'copy:css']
grunt.registerTask 'build', ['build-base', 'babel:dist', 'uglify', 'cssmin', 'assets_hash']
grunt.registerTask 'build-dev', ['build-base', 'babel:dev', 'assets_hash']
grunt.registerTask 'default', ['build-dev', 'watch']

0 comments on commit 22f7232

Please sign in to comment.