-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rebuild package without dev dependencies #290
Conversation
jhedstrom
commented
Jun 22, 2016
- Addresses Remove Composer dev dependencies from package output #289
- Addresses #289
cwd: destPath | ||
} | ||
}); | ||
tasks.push('composer:install'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can anyone think of a reason someone would create a task that executes package followed by a composer operation that needs -dev?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@grayside That would only be a problem if also executed in the packaged output, right? The dev dependencies will still exist in the project root.
It looks like the tests are failing for D7. Can this Composer task be conditional on if the Composer build process is used? |
tasks.push('composer:install'); | ||
// If the `composer.json` file is being packaged, rebuild composer dependencies without dev. | ||
if (projFiles.find(function (pattern) { | ||
return pattern.startsWith('composer'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this recursive? Is it a problem if it finds composer.lock but composer.json is missing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It shouldn't be recursive, it's just looking at the actual projFiles
array specification (composer.*
is the pattern in the test config).
The latest commit raises a question to my mind: If Drupal core has a composer.json and the project has it's own composer.json... how do we put both into the Drupal docroot and run composer install? Shouldn't that recurse reality? |
106d2cd
to
f3418b1
Compare
This expects the following packaged structure:
Note there is no |
Does the |
Not once there is a |