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

[Suggestion] npm-esque "scripts" e.g. prebootstrap, postbootstrap #941

Closed
AshCoolman opened this issue Jul 26, 2017 · 2 comments
Closed

Comments

@AshCoolman
Copy link

It would be nice to have something like npm scripts

I can't see anything in the docs/issues for this explicitly

Why not use npm scripts?

Sometimes the npm toolchain isn't enough for local development (e.g. symlinks in react-native)

Advantages

  • More flexibility (local dev, ci envs)
  • A _Right place_™ for lifecycle logic

Disadvantages

  • Beyond remit of mono repo orchestration & publishing?
  • Assuming things play nice with npm simplifies the future
@evocateur
Copy link
Member

There's nothing stopping folks from writing in their root package.json:

  "scripts": {
    "prebootstrap": "do thing",
    "bootstrap": "lerna bootstrap",
    "postbootstrap": "do other thing"
  }

That will work with npm run bootstrap out of the box.

I'd rather focus on a cogent plugin API than rewrite npm scripts, if that makes sense?

@lock
Copy link

lock bot commented Dec 28, 2018

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

No branches or pull requests

2 participants