Skip to content

Add "run" command to run an npm script in each package - #5

Closed
RickWong wants to merge 4 commits into
lerna:masterfrom
RickWong:master
Closed

RickWong wants to merge 4 commits into
lerna:masterfrom
RickWong:master

Conversation

@RickWong

Copy link
Copy Markdown

No description provided.

@RickWong RickWong changed the title Add "run" command to run an npm script in each package. Add "run" command to run an npm script in each package Dec 14, 2015
Comment thread bin/lerna.js

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks good although I'd prefer if the args assertion was present when the command isn't run.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Hey thanks for the comment. How would you like to see this part? Perhaps the check could be moved to the individual command scripts?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

√ Done what you literally said. I've also committed the ls command that I used to test the too-many-arguments warning with :)

@patrickheeney

Copy link
Copy Markdown

This looks cool. I wonder if it could be a bit more flexible like lerna run --- make test-ci to support more than just npm run, although that would be a good default.

@hzoo

hzoo commented Jan 17, 2016

Copy link
Copy Markdown
Contributor

Is this still WIP, needs review, or ready?

@RickWong

Copy link
Copy Markdown
Author

@hzoo It's functionally ready. Not sure whether @kittens has more feedback.

@sebmck

sebmck commented Jan 17, 2016

Copy link
Copy Markdown
Contributor

LGTM. We should probably add some integration tests where we just run a bunch of commands and check that the console output is right too.

@jamiebuilds jamiebuilds mentioned this pull request Feb 11, 2016
@jamiebuilds

Copy link
Copy Markdown
Contributor

Moving to #44

@lock

lock Bot commented Dec 28, 2018

Copy link
Copy Markdown

This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock Bot locked as resolved and limited conversation to collaborators Dec 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants