-
Notifications
You must be signed in to change notification settings - Fork 79
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
New prepublish option for apm publish #571
Conversation
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.
💯
@@ -62,6 +63,34 @@ const installDeps = (cwd, task) => { | |||
}) | |||
} | |||
|
|||
const runScriptTask = async (task, scritpName) => { |
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.
A nitpick, the variable here is misspelt.
}) | ||
.option('prepublish-script', { | ||
description: 'The npm script that will be run before publishing the app', | ||
default: 'prepublish', |
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.
npm's prepublish
script is actually kind of deprecated. It would be nice to also fallback to prepublishOnly
if that exists.
🦅 Pull Request
closes #430
New
prepublish
option that run as default theprepublish-script
specified before publishing (default:perpublish
)Refactor script tasks.
✔️ PR Todo
Include links to related issues/PRs
Update the relevant documentation
PR to include prepublish script to boilerplates (Include prepublish script aragon-react-boilerplate#62)