development.js 681 B

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