Skip to content

Commit 2720266

Browse files
committed
Merge pull request angular-ui#94 from angular-ui/chore-gruntwatch
chore(build): support for 'grunt watch' with grunt-contrib-watch
2 parents 9614b86 + 007b78a commit 2720266

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Gruntfile.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@ module.exports = function(grunt) {
77
grunt.loadNpmTasks('grunt-hustler');
88
grunt.loadNpmTasks('grunt-karma');
99
grunt.loadNpmTasks('grunt-conventional-changelog');
10+
grunt.loadNpmTasks('grunt-contrib-watch');
1011

1112
grunt.initConfig({
13+
watch: {
14+
files: ['src/**/*'],
15+
tasks: ['build'],
16+
},
1217
karma: {
1318
options: {
1419
configFile: 'karma.conf.js'

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"karma-chrome-launcher": "~0.1",
1414
"karma-firefox-launcher": "~0.1",
1515
"karma-phantomjs-launcher": "~0.1",
16-
"grunt-conventional-changelog": "~1.1"
16+
"grunt-conventional-changelog": "~1.1",
17+
"grunt-contrib-watch": "~0.6.1"
1718
}
1819
}

0 commit comments

Comments
 (0)