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

fix: prepare node_modules only once #4011

Merged
merged 1 commit into from
Oct 10, 2018
Merged

Conversation

rosen-vladimirov
Copy link
Contributor

Whenever we prepare node_modules (i.e. moving them to platforms dir), CLI executes the operation twice:

  1. When prepare the JS part of the modules.
  2. When prepare the native part of the modules.
    The first part is a must for cases when you work with cloud builds, so we cannot skip it, but we can safely skip the second one. This improves the initial prepare of tns-template-master-detail-ng with around 20 seconds.

PR Checklist

What is the current behavior?

Node_modules are prepared twice on first tns run

What is the new behavior?

Node_modules are prepared once.

Fixes issue #4010

Whenever we prepare node_modules (i.e. moving them to platforms dir), CLI executes the operation twice:
1. When prepare the JS part of the modules.
2. When prepare the native part of the modules.
The first part is a must for cases when you work with cloud builds, so we cannot skip it, but we can safely skip the second one. This improves the initial prepare of `tns-template-master-detail-ng` with around 20 seconds.
@rosen-vladimirov rosen-vladimirov added this to the 5.0.0 milestone Oct 10, 2018
@rosen-vladimirov rosen-vladimirov self-assigned this Oct 10, 2018
@DimitarTachev DimitarTachev merged commit 0b5d097 into master Oct 10, 2018
@DimitarTachev DimitarTachev deleted the vladimirov/improve-prepare branch October 10, 2018 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants