-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
27 lines (24 loc) · 850 Bytes
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
watch: {
composer_json: {
files: ["composer.json", "composer.lock"],
tasks: ["exec:composer_install"],
},
},
exec: {
composer_install: {
// For production use:
//cmd: 'composer install --no-dev --optimize-autoloader',
// For development use:
cmd:
"composer self-update && composer install --no-dev && composer update --lock",
//cmd: 'composer install --no-dev && composer update --lock',
exitCode: [0, 255],
},
},
});
grunt.loadNpmTasks("grunt-exec");
grunt.loadNpmTasks("grunt-contrib-watch");
};