Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

New prepublish option for apm publish #571

Merged
merged 2 commits into from Jul 3, 2019

Conversation

0xGabi
Copy link
Contributor

@0xGabi 0xGabi commented Jun 30, 2019

馃 Pull Request

closes #430

New prepublish option that run as default the prepublish-script specified before publishing (default: perpublish)

Refactor script tasks.

鉁旓笍 PR Todo

@0xGabi 0xGabi added cmd: apm publish 馃挕 feature update An update to existing functionality of the API labels Jun 30, 2019
@0xGabi 0xGabi added this to In progress in Aragon Mesh Team via automation Jun 30, 2019
@0xGabi 0xGabi moved this from In progress to Review in Aragon Mesh Team Jul 1, 2019
Copy link
Contributor

@kernelwhisperer kernelwhisperer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

馃挴

@0xGabi 0xGabi merged commit 76c30a3 into aragon:master Jul 3, 2019
@0xGabi 0xGabi deleted the feat/apm-prepublis-task branch July 3, 2019 20:32
@@ -62,6 +63,34 @@ const installDeps = (cwd, task) => {
})
}

const runScriptTask = async (task, scritpName) => {
Copy link
Contributor

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',
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
馃挕 feature update An update to existing functionality of the API
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Automatically run prepublish or prepublishOnly scripts on aragon apm publish
3 participants