暂无描述

12345678910111213141516171819202122232425
  1. 'use strict';
  2. module.exports = function(grunt) {
  3. // Project configuration.
  4. grunt.initConfig({
  5. nodeunit: {
  6. files: ['test/**/*_test.js'],
  7. },
  8. jshint: {
  9. options: {
  10. jshintrc: '.jshintrc'
  11. },
  12. all: ['Gruntfile.js', 'lib/**/*.js', 'test/**/*.js']
  13. }
  14. });
  15. // Load plugins.
  16. grunt.loadNpmTasks('grunt-contrib-jshint');
  17. grunt.loadNpmTasks('grunt-contrib-nodeunit');
  18. // Default task.
  19. grunt.registerTask('default', ['jshint', 'nodeunit']);
  20. };