Skip to content

Commit

Permalink
Rebuild package without dev dependencies
Browse files Browse the repository at this point in the history
- Addresses phase2#289
  • Loading branch information
jhedstrom authored and unrblt committed Sep 3, 2016
1 parent ba8050f commit 14482dd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions tasks/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@ module.exports = function(grunt) {
tasks.push('clean:packages');
tasks.push('copy:package');

// Rebuild composer dependencies without dev.
grunt.config(['composer'], {
options: {
flags: ['no-dev'],
cwd: destPath
}
});
tasks.push('composer:install');

if (this.args[0] && this.args[0] === 'compress') {
grunt.loadNpmTasks('grunt-contrib-compress');
grunt.config('compress.package', {
Expand Down
2 changes: 1 addition & 1 deletion test/test_assets_d8/Gruntconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"packages": {
"srcFiles": ["!sites/*/files/**", "!xmlrpc.php", "!modules/php/*"],
"projFiles": ["README*", "bin/**", "hooks/**", "src/*.make", "vendor/**"],
"projFiles": ["README*", "bin/**", "hooks/**", "src/*.make", "vendor/**", "composer.*"],
"dest": {
"docroot": "build/html",
"devResources": ""
Expand Down

0 comments on commit 14482dd

Please sign in to comment.