apx-helper-crud
Version:
CRUD (Create Read Update Delete) helper for APX API server actions
43 lines (39 loc) • 889 B
JavaScript
;
module.exports = function(grunt){
//config
grunt.initConfig({
jshint: {
options: {
jshintrc: true,
reporter: require('jshint-stylish')
},
dev: ['*.js','lib/*.js','test/*.js']
},
mochaTest: {
test: {
options: {
reporter: 'spec'
},
src: ['test/*.test.js']
}
},
watch: {
dev: {
files: ['*.js','lib/*.js','test/*.js'],
tasks: ['test']
}
},
projectUpdate: {
update: {}
}
})
//load tasks
grunt.loadNpmTasks('grunt-contrib-jshint')
grunt.loadNpmTasks('grunt-contrib-watch')
grunt.loadNpmTasks('grunt-mocha-test')
grunt.loadNpmTasks('grunt-project-update')
//macros
grunt.registerTask('update',['projectUpdate'])
grunt.registerTask('test',['jshint','mochaTest:test'])
grunt.registerTask('dev',['watch:dev'])
}