Skip to content

[Feature] lerna bootstrap --skip-npm could skip npm i #495

Closed

Description

@Reinmar

After pulling changes to your repository you may only want to ensure that all the symlinks are done. Currently, running lerna bootstrap may take awful lot of time due to npm i. Adding support for --skip-npm would speed this process up.

Activity

  1. Reinmar commented on Jan 12, 2017

    @Reinmar
    Author

    Actually, it's only slow on the first run. I don't know how Lerna did this but it works super fast on subsequent runs (even though npm i is always slow). So this isn't an issue.

  2. hzoo commented on Jan 12, 2017

    @hzoo
    Contributor

    Oh nice! Hows ckeditor 5 coming along?

  3. Reinmar commented on Jan 12, 2017

    @Reinmar
    Author

    Hi Henry, thanks for asking! :)

    We're getting close to the final release, so we've been re-thinking some of the infrastructure decisions, asking again the important questions and wishing for final answers :).

    One of them was "Whether to multi-repo or not". We know the cost of having to maintain multi-repo project, but the benefits are important for us as well. So we decided to stick to that.

    However, we realised that we'll need to work on our current toolset anyway, because we're planning to switch to scoped packages and versioned deps (so far we're using GH urls in package.json). We're using Lerna in our dev tools already and are happy with it. So we came up with a plan to still use a multi-repo for the main project (https://github.com/ckeditor/ckeditor5), but then to use Lerna to digest that for npm. Actually, we have two options (described in https://github.com/ckeditor/ckeditor5-dev/issues/6#issuecomment-270349148):

    • configure Webpack (or other bundlers) to source packages from directories where we cloned them,
    • or use Lerna to symlink them and hope that bundlers will be able to source the files correctly (which Rollup can't, for instance)

    We liked the 2nd option more as Lerna is getting more and more popular, so we'll be using a de facto standard for multi-package projects. This should make CKEditor 5 more familiar to some developers and, by contributing back to Lerna, we'll avoid deepening the fragmentation of JS world.

    But one piece was missing still – a tool for managing a multi-repo. We've just finished a proof-of-concept of such a tool – https://github.com/cksource/mgit2 and I'm now working on porting CKEditor 5 main repository to that setup. Hence, this issue :D. It's an early stage still, but looks really promising.

  4. lock commented on Dec 28, 2018

    @lock

    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.

  5. locked as resolved and limited conversation to collaborators on Dec 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions