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.

39 lines
741 B

  1. module.exports = function(grunt) {
  2. 'use strict';
  3. grunt.initConfig({
  4. watch: {
  5. options: {
  6. livereload: true,
  7. },
  8. basic: {
  9. files: ['lib/*.js'],
  10. tasks: ['before'],
  11. },
  12. customport: {
  13. files: ['lib/*.js'],
  14. tasks: ['before'],
  15. options: {
  16. livereload: {
  17. port: 8675,
  18. },
  19. },
  20. },
  21. nospawn: {
  22. files: ['lib/*.js'],
  23. tasks: ['before'],
  24. options: {
  25. nospawn: true,
  26. livereload: 1337,
  27. },
  28. },
  29. },
  30. });
  31. // Load this watch task
  32. grunt.loadTasks('../../../tasks');
  33. grunt.registerTask('before', function() {
  34. grunt.log.writeln('I ran before livereload.');
  35. });
  36. };