Skip to content

Instantly share code, notes, and snippets.

@mikechau
Last active December 20, 2015 17:28
Show Gist options
  • Save mikechau/6168475 to your computer and use it in GitHub Desktop.
Save mikechau/6168475 to your computer and use it in GitHub Desktop.
grunt tasks
// Default task.
grunt.registerTask('default', 'lint');
grunt.registerTask('lint', ['jshint', 'csscss']);
// jenkins should run this
grunt.registerTask('build', 'jshint clean copy requirejs cssmin');
grunt.loadNpmTasks('grunt-contrib');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-csscss');

If grunt-csscss complains:

Warning: Ruby and csscss have to be installed and in your PATH for this task to run. Use --force to continue.

run gem install csscss and it should go away.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment