Skip to content

Always clean platforms/app when --bundle is passed #3269

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
Dec 13, 2017

Conversation

Mitko-Kerezov
Copy link
Contributor

Includes:

  • Always clean platforms/app when --bundle is passed because we may end up with duplicate symbols
  • Do not use $options in $nodeModulesBuilder as CLI may be required as a library where $options is not used at all

Ping @rosen-vladimirov @sis0k0

Dimitar Kerezov added 2 commits December 13, 2017 12:37
Whenever CLI is required as a library `$options` flags are not set. Hence `$options` should only be used where one knows CLI is truly run as a command-line interface - i.e. in commands.
@Mitko-Kerezov Mitko-Kerezov self-assigned this Dec 13, 2017
@Plamen5kov
Copy link
Contributor

Tested with:
"tns-core-modules": "^4.0.0-2017-12-12-2"
"tns-android": "3.4.0-2017-12-6-3"
"nativescript-dev-webpack": NativeScript/nativescript-dev-webpack#350

Tested commands in the following order:

tns run android
tns run android --bundle --env.snapshot
tns run android --bundle
tns run android
tns run android --bundle
tns run android --bundle --env.snapshot
tns run android

and it builds every and runs as expected with no excess files in platforms/android/app/src/main/assets/app.

@rosen-vladimirov rosen-vladimirov merged commit 199757e into master Dec 13, 2017
@rosen-vladimirov rosen-vladimirov deleted the kerezov/bundle-fixes branch December 13, 2017 16:00
rosen-vladimirov pushed a commit that referenced this pull request Dec 13, 2017
* Always clean platforms/app when `--bundle` is passed

* Do not use $options in $nodeModulesBuilder

Whenever CLI is required as a library `$options` flags are not set. Hence `$options` should only be used where one knows CLI is truly run as a command-line interface - i.e. in commands.
rosen-vladimirov added a commit that referenced this pull request Dec 13, 2017
* Always clean platforms/app when `--bundle` is passed

* Do not use $options in $nodeModulesBuilder

Whenever CLI is required as a library `$options` flags are not set. Hence `$options` should only be used where one knows CLI is truly run as a command-line interface - i.e. in commands.
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.

4 participants