Skip to content

Add a --bundle option that disables node_modules -> tns_modules update. #1671

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 1 commit into from
Apr 8, 2016

Conversation

hdeshev
Copy link
Contributor

@hdeshev hdeshev commented Apr 7, 2016

Delete <platform/app>/tns_modules, if present, and make sure we restore it
on subsequent runs without the --bundle option set.

Ping @rosen-vladimirov

@hdeshev hdeshev force-pushed the hdeshev/node_modules-bundle branch from 87eb145 to b2c2136 Compare April 8, 2016 09:15
@hdeshev
Copy link
Contributor Author

hdeshev commented Apr 8, 2016

Figured an easy way to add a test too! 🎈

@@ -230,6 +230,7 @@ export class PlatformService implements IPlatformService {
let lastModifiedTime = this.$fs.exists(appDestinationDirectoryPath).wait() ?
this.$fs.getFsStats(appDestinationDirectoryPath).wait().mtime : null;


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Multiple blank lines are not allowed (this will fail the build)

@hdeshev hdeshev force-pushed the hdeshev/node_modules-bundle branch from b2c2136 to d85d0f8 Compare April 8, 2016 12:07
Delete <platform/app>/tns_modules, if present, and make sure we restore it
on subsequent runs without the --bundle option set.
@hdeshev
Copy link
Contributor Author

hdeshev commented Apr 8, 2016

Fixed both the whitespace and Future issues.

@rosen-vladimirov
Copy link
Contributor

👍

@hdeshev hdeshev merged commit c9653e0 into master Apr 8, 2016
@hdeshev hdeshev deleted the hdeshev/node_modules-bundle branch April 8, 2016 13:01
@jasssonpet
Copy link
Contributor

jasssonpet commented Jul 11, 2016

By the way, when running with the bundle option, the run command does not process the native part of NativeScript plugins which can result in Can't find variable: TNSLabel when the tns-core-modules haven't been prepared yet.

Not sure if this should be a new issue.

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.

3 participants