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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(setup): add --dry-run flag #492

Merged
merged 7 commits into from
Dec 4, 2019

Conversation

jeetiss
Copy link
Contributor

@jeetiss jeetiss commented Dec 3, 2019

for testing #489

@jeetiss jeetiss changed the title feat: add --dry-fun flag for setup step feat: add --dry-run flag to setup step Dec 3, 2019
@eunjae-lee eunjae-lee changed the title feat: add --dry-run flag to setup step feat(setup): add --dry-run flag Dec 3, 2019
@eunjae-lee
Copy link
Contributor

This was indeed a missing part. Thanks!
I will review this soon.

FYI, you can run your change over another test repository like the following:

yarn workspace shipjs test:run:setup --dir ~/workspace/your-test-repository

https://github.com/algolia/shipjs/pull/397/files#diff-426ef58fea240262e72d6804380e2bc4R40

json.scripts['release:prepare'] = 'shipjs prepare';
json.scripts['release:trigger'] = 'shipjs trigger';
fs.writeFileSync(filePath, `${JSON.stringify(json, null, 2)}\n`);
await runPrettier({ filePath, dir });
Copy link
Contributor

Choose a reason for hiding this comment

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

await → nice catch. Thanks 👍

Copy link
Contributor

@eunjae-lee eunjae-lee left a comment

Choose a reason for hiding this comment

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

Seems nice!
Can you add a description for --dry-run option to shipjs setup --help?
You can refer to this: https://github.com/algolia/shipjs/blob/master/packages/shipjs/src/step/prepare/printHelp.js#L12:L12

@eunjae-lee eunjae-lee merged commit 1beb810 into algolia:master Dec 4, 2019
@jeetiss jeetiss deleted the dry-run-for-setup branch December 4, 2019 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants