From: Eric Morris Date: Wed, 30 Oct 2013 18:08:57 +0000 (-0700) Subject: Add watch task for docs dev X-Git-Tag: v1.0.0~31 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=09f8fed614eac21bb5ba3e53ddeb1b90e4aa4fa7;p=thirdparty%2Ffoundation%2Ffoundation-emails.git Add watch task for docs dev --- diff --git a/Gruntfile.js b/Gruntfile.js index 1008f15f..2bf58520 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -84,12 +84,21 @@ module.exports = function(grunt) { 'Say "Deploy Completed"' ].join('&&') } - } + }, + watch: { + docs: { + files: ['docs/docs.php', 'docs/**/*.html'], + tasks: ['shell:makeStage', 'shell:testDocs', 'includes:docs'], + options: { + livereload: true, + }, + }, + }, }); grunt.loadNpmTasks('grunt-includes'); grunt.loadNpmTasks('grunt-shell'); - + grunt.loadNpmTasks('grunt-contrib-watch'); grunt.registerTask('make:templates', ['includes:templates', 'shell:zipTemplates']); grunt.registerTask('deploy:downloads', ['shell:makeStage', 'includes:templates', 'shell:zipTemplates', 'shell:zipFramework', 'shell:linkFramework', 'shell:deployDownloads', 'shell:cleanUp']); diff --git a/package.json b/package.json index 106b7dbe..2b8776d8 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,8 @@ }, "devDependencies": { "grunt-includes": "~0.3.5", - "grunt-shell": "~0.5.0" + "grunt-shell": "~0.5.0", + "grunt-contrib-watch": "~0.5.3" }, "repository": { "type": "git",