Create a grunt task for running in development

This commit is contained in:
Rowan Manning
2013-11-07 10:16:33 +00:00
parent ab31497b64
commit 4b07da1f0c
3 changed files with 19 additions and 4 deletions

View File

@@ -29,6 +29,18 @@ module.exports = function (grunt) {
}
},
nodemon: {
development: {
options: {
cwd: __dirname,
file: 'index.js',
env: {
NODE_ENV: 'development'
}
}
}
},
uglify: {
options: {
mangle: false
@@ -67,9 +79,11 @@ module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-nodemon');
grunt.registerTask('lint', ['jshint']);
grunt.registerTask('compile', ['less', 'uglify']);
grunt.registerTask('start', ['nodemon:development']);
grunt.registerTask('default', ['compile', 'lint']);
grunt.registerTask('ci', ['compile', 'lint']);