Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (33 sloc) 1.12 KB
module.exports = (grunt) => {
const builder = require('corifeus-builder');
const loader = new builder.loader(grunt);
loader.js({}, {
express: 'grunt-p3x-express',
});
grunt.loadNpmTasks('grunt-p3x-express');
grunt.config.merge({
express: {
options: {
delay: 1000,
},
src: {
options: {
script: './boot',
debug: true
}
},
},
watch: {
express: {
files: ["src/**/*.*", "../corifeus-server/src/**/*.*", "../corifeus-server-deployer/src/**/*.*", 'Gruntfile.js', 'corifeus-boot.json'],
tasks: ['express:src'],
options: {
// for grunt-contrib-watch v0.5.0+, "nospawn: true" for lower versions. Without this option specified express won't be reloaded
spawn: false
}
}
}
});
grunt.registerTask('default', builder.config.task.build.js);
grunt.registerTask('run', ['clean', 'express:src', 'watch:express']);
}