development.js 695 B

123456789101112131415161718192021222324252627282930313233
  1. "use strict"
  2. module.exports = function (grunt) {
  3. grunt.config.merge({
  4. connect: {
  5. server: {
  6. options: {
  7. base: "build/", //TODO: once grunt-contrib-connect 0.9 is released, set index file
  8. livereload: true
  9. }
  10. }
  11. },
  12. watch: {
  13. sources: {
  14. options: {
  15. livereload: true
  16. },
  17. files: ["*.css", "app.js", "lib/*.js", "*.html"],
  18. tasks: ["default"]
  19. },
  20. config: {
  21. options: {
  22. reload: true
  23. },
  24. files: ["Gruntfile.js", "tasks/*.js"],
  25. tasks: []
  26. }
  27. }
  28. })
  29. grunt.loadNpmTasks("grunt-contrib-connect")
  30. grunt.loadNpmTasks("grunt-contrib-watch")
  31. }