You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
823 B

4 years ago
  1. module.exports = function (grunt) {
  2. grunt.initConfig({
  3. jshint: {
  4. options: {},
  5. default: {
  6. files: {
  7. src: ['gruntfile.js', 'src/**/*.js', '!src/libs/jsbn.js']
  8. }
  9. },
  10. libs: {
  11. files: {
  12. src: ['src/libs/**/*']
  13. }
  14. }
  15. },
  16. simplemocha: {
  17. options: {
  18. reporter: 'list'
  19. },
  20. all: {src: ['test/**/*.js']}
  21. }
  22. });
  23. require('jit-grunt')(grunt, {
  24. 'simplemocha': 'grunt-simple-mocha'
  25. });
  26. grunt.registerTask('lint', ['jshint:default']);
  27. grunt.registerTask('test', ['simplemocha']);
  28. grunt.registerTask('default', ['lint', 'test']);
  29. };