Skip to content
Browse files

Add livereload

  • Loading branch information...
1 parent 9e29420 commit 057f739280adb34df19ceacd5b1ccb9ab117c804 @davidkaneda davidkaneda committed Feb 16, 2013
Showing with 13 additions and 2 deletions.
  1. +11 −1 Gruntfile.coffee
  2. +2 −1 package.json
View
12 Gruntfile.coffee
@@ -10,6 +10,7 @@ module.exports = (grunt) ->
grunt.loadNpmTasks "grunt-contrib-jshint"
grunt.loadNpmTasks "grunt-contrib-uglify"
grunt.loadNpmTasks "grunt-contrib-watch"
+ grunt.loadNpmTasks "grunt-livereload"
grunt.loadNpmTasks "grunt-update-submodules"
grunt.registerMultiTask "rake", "Compile a Ruby Package with Rake", ->
@@ -185,6 +186,11 @@ module.exports = (grunt) ->
files: "themes/scss/**/*.scss"
tasks: ["compass"]
+ livereload:
+ options:
+ base: 'build'
+ files: ['build/**/*.{js,css,html}']
+
jshint:
src: "<%= dirs.src %>/**/*.js"
options:
@@ -204,7 +210,11 @@ module.exports = (grunt) ->
globals:
$: true
console: true
-
+
+ grunt.renameTask 'watch', 'watch_files'
+
+ grunt.registerTask 'watch', ['livereload', 'watch_files']
+
# Git submodule updates
grunt.registerTask 'zepto', ['rake', 'copy:zepto', 'copy:jquery-bridge']
View
3 package.json
@@ -46,7 +46,8 @@
"grunt-contrib-uglify": "~0.1.1rc6",
"grunt-contrib-compass": "~0.1.1rc8",
"grunt-update-submodules": "~0.2.0",
- "grunt-contrib-watch": "~0.1.4"
+ "grunt-contrib-watch": "~0.1.4",
+ "grunt-livereload": "~0.1.3"
},
"optionalDependencies": {},
"scripts": {

0 comments on commit 057f739

Please sign in to comment.
Something went wrong with that request. Please try again.