gruntfile.js 517 B

12345678910111213141516171819202122232425262728293031
  1. module.exports = function( grunt ) {
  2. grunt.initConfig( {
  3. pkg: grunt.file.readJSON( 'package.json' ),
  4. jshint: {
  5. files: [ '*.js' ],
  6. options: {
  7. jshintrc: 'dev/tasks/jshint-config.json'
  8. }
  9. },
  10. jscs: {
  11. src: '*.js',
  12. options: {
  13. config: 'dev/tasks/jscs-config.json'
  14. }
  15. },
  16. githooks: {
  17. all: {
  18. 'pre-commit': 'default'
  19. }
  20. }
  21. } );
  22. // Load all grunt plugins.
  23. require( 'load-grunt-tasks' )( grunt );
  24. // Default tasks.
  25. grunt.registerTask( 'default', [ 'jshint', 'jscs' ] );
  26. };