Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit beb257f

Browse files
ajoslinpkozlowski-opensource
authored andcommitted
chore(build): Add grunt-contrib-watch task for grunt v0.4
1 parent 38c1bad commit beb257f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Diff for: Gruntfile.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ var markdown = require('node-markdown').Markdown;
22

33
module.exports = function(grunt) {
44

5+
grunt.loadNpmTasks('grunt-contrib-watch');
56
grunt.loadNpmTasks('grunt-contrib-concat');
67
grunt.loadNpmTasks('grunt-contrib-jshint');
78
grunt.loadNpmTasks('grunt-contrib-uglify');
@@ -22,7 +23,7 @@ module.exports = function(grunt) {
2223
},
2324
watch: {
2425
files: ['<%= jshint.files %>', 'template/**/*.html'],
25-
tasks: 'before-test test-run'
26+
tasks: ['before-test', 'test-run']
2627
},
2728
concat: {
2829
dist: {

Diff for: package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"grunt": "~0.4.1",
99
"grunt-contrib-jshint": "~0.2.0",
1010
"grunt-contrib-concat": "~0.1.3",
11-
"grunt-contrib-uglify": "~0.1.1"
11+
"grunt-contrib-uglify": "~0.1.1",
12+
"grunt-contrib-watch": "~0.3.1"
1213
}
1314
}

0 commit comments

Comments
 (0)