grunt.js 540 B

123456789101112131415161718192021222324252627282930
  1. module.exports = function(grunt) {
  2. // Project configuration.
  3. grunt.initConfig({
  4. lint: {
  5. all: ['src/**/*.js', 'test/**/*.js']
  6. },
  7. jshint: {
  8. options: {
  9. browser: true
  10. }
  11. },
  12. simplemocha: {
  13. all: {
  14. src: 'test/run.js',
  15. options: {
  16. globals: ['should'],
  17. timeout: 3000,
  18. ignoreLeaks: false,
  19. ui: 'bdd'
  20. }
  21. }
  22. }
  23. });
  24. grunt.loadNpmTasks('grunt-simple-mocha');
  25. grunt.registerTask('default', ['simplemocha', 'lint']);
  26. };