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.

33 lines
761 B

  1. module.exports = function(grunt) {
  2. // Project configuration.
  3. grunt.initConfig({
  4. clean: { tests: ["docs"] },
  5. docco: {
  6. tests: {
  7. src: ['test/**/*.js', 'test/**/*.coffee'],
  8. dest: "docs/"
  9. },
  10. 'custom-css-test': {
  11. src: ['test/**/*.js'],
  12. dest: 'docs/',
  13. options: {
  14. css: 'test/fixtures/custom.css'
  15. }
  16. }
  17. },
  18. nodeunit: {
  19. tests: ['test/*_test.js']
  20. }
  21. });
  22. // Load local tasks.
  23. grunt.loadTasks('tasks');
  24. grunt.loadNpmTasks('grunt-contrib-nodeunit');
  25. grunt.loadNpmTasks('grunt-contrib-clean');
  26. grunt.registerTask('test', ['clean:tests', 'docco', 'nodeunit:tests']);
  27. // Default task.
  28. grunt.registerTask('default', ['lint', 'docco']);
  29. };