diff --git a/Gruntfile.js b/Gruntfile.js index 92c3559..30c20dd 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -42,4 +42,4 @@ module.exports = function(grunt) { grunt.registerTask('default', ['express', 'open', 'watch']); -}; \ No newline at end of file +}; diff --git a/Gruntfile.js~ b/Gruntfile.js~ new file mode 100644 index 0000000..26dad9a --- /dev/null +++ b/Gruntfile.js~ @@ -0,0 +1,42 @@ +module.exports = function(grunt) { + + grunt.initConfig({ + pkg: grunt.file.readJSON('package.json'), + express: { + server: { + livereload : true + } + }, + open: { + all: { + path: 'http://localhost:3000' + } + }, + watch: { + html: { + files: ['app/index.html'], + options: { + livereload: true + } + }, + js: { + files: ['app/**/*.js'], + options: { + livereload: true + } + }, + css: { + files: 'app/css/*.css', + options: { + livereload: true + } + } + } + }); + + grunt.loadNpmTasks('grunt-express'); + grunt.loadNpmTasks('grunt-open'); + + grunt.registerTask('default', ['express', 'open', 'watch']); + +}; diff --git a/app/index.html b/app/index.html index 5eff9ff..5595474 100644 --- a/app/index.html +++ b/app/index.html @@ -128,11 +128,11 @@