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.

29 lines
558 B

  1. module.exports = function(grunt) {
  2. 'use strict';
  3. grunt.initConfig({
  4. watch: {
  5. options: {
  6. nospawn: true,
  7. },
  8. warn: {
  9. files: ['lib/*.js'],
  10. tasks: ['warn'],
  11. },
  12. fatal: {
  13. files: ['lib/*.js'],
  14. tasks: ['fatal'],
  15. },
  16. },
  17. });
  18. // Load this watch task
  19. grunt.loadTasks('../../../tasks');
  20. grunt.registerTask('warn', function() {
  21. grunt.warn('This task should warn!');
  22. });
  23. grunt.registerTask('fatal', function() {
  24. grunt.fatal('This task should be fatal!');
  25. });
  26. };