Skip to content
This repository has been archived by the owner on Apr 2, 2019. It is now read-only.

Commit

Permalink
Add watch task in case the repo is linked from some project
Browse files Browse the repository at this point in the history
  • Loading branch information
wyuenho committed Jan 6, 2014
1 parent 0b459b3 commit 6ad6273
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ module.exports = function (grunt) {
"lib/*.css"
]
},

concat: {
backgrid: {
options: {
Expand Down Expand Up @@ -68,13 +69,15 @@ module.exports = function (grunt) {
dest: "lib/backgrid.js"
}
},

connect: {
server: {
options: {
keepalive: true
}
}
},

jasmine: {
test: {
version: "1.3.1",
Expand Down Expand Up @@ -113,6 +116,7 @@ module.exports = function (grunt) {
}
}
},

jsduck: {
main: {
src: ["src"],
Expand All @@ -139,6 +143,7 @@ module.exports = function (grunt) {
}
}
},

recess: {
csslint: {
options: {
Expand All @@ -157,6 +162,7 @@ module.exports = function (grunt) {
}
}
},

uglify: {
options: {
mangle: true,
Expand All @@ -168,12 +174,20 @@ module.exports = function (grunt) {
"lib/backgrid.min.js": ["./lib/backgrid.js"]
}
}
},

watch: {
default: {
files: ["src/**/*.*"],
tasks: ["dist"]
}
}
});

grunt.loadNpmTasks("grunt-contrib-clean");
grunt.loadNpmTasks("grunt-contrib-concat");
grunt.loadNpmTasks("grunt-contrib-uglify");
grunt.loadNpmTasks("grunt-contrib-watch");
grunt.loadNpmTasks("grunt-recess");
grunt.loadNpmTasks("grunt-jsduck");
grunt.loadNpmTasks("grunt-contrib-jasmine");
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"grunt-contrib-clean": "~0.4.1",
"grunt-contrib-jasmine": "~0.5.1",
"grunt-contrib-uglify": "~0.2.2",
"grunt-contrib-watch": "~0.5.3",
"grunt-template-jasmine-istanbul": "~0.2.4",
"grunt-jsduck": "~0.1.4",
"grunt-recess": "~0.3.3"
Expand Down

0 comments on commit 6ad6273

Please sign in to comment.