Skip to content

fix(livesync): stop forcing native prepare when using --bundle #3708

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

Merged
merged 2 commits into from
Jul 2, 2018

Conversation

sis0k0
Copy link
Contributor

@sis0k0 sis0k0 commented Jun 26, 2018

These checks are no longer needed. They also cause the CLI to rebuild the .aar files on every change when using tns run android --bundle.

  • The first check:
    The CLI watches the App_Resources folder and will execute the logic
    for preparing them whenever there's a change.

  • The second check:
    The CLI will try to detect changes in node_modules by comparing the
    timestamps of every file there on every change. When there's a change,
    it will set the modulesChanged flag to true. Therefore, the bundle flag is not needed.

fixes #3707

These checks are no longer needed. They also cause the CLI to
rebuild the .aar files on every change when using `tns run android
--bundle`.

- The first check:
The CLI watches the `App_Resources` folder and will execute the logic
for preparing them whenever there's a change.

- The second check:
The CLI will try to detect changes in node_modules by comparing the
timestamps of every file there on every change. When there's a change,
it will set the `modulesChanged` flag to true. Therefore, the `bundle` flag is not needed.

fixes #3707
@sis0k0 sis0k0 self-assigned this Jun 26, 2018
@sis0k0 sis0k0 merged commit e4c14c2 into master Jul 2, 2018
@sis0k0 sis0k0 deleted the sis0k0/prepare-native-bundle-checks branch July 2, 2018 07:21
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.

CLI generates aar files on changes in app/ (livesync with webpack)
2 participants