Skip to content

Conversation

PanayotCankov
Copy link
Contributor

Now you can:

cd ~/GitRoot/NativeScript
tsc -p .
npm link
cd ~/Projects/MyApp
npm link tns-core-modules
code .
tns run ios

The gulp we used to detect changes in the installed modules used to fail internally due fs-ing tns-core-modules symlink.

@@ -40,6 +40,7 @@
"fibers": "https://github.com/icenium/node-fibers/tarball/v1.0.6.3",
"filesize": "3.1.2",
"gaze": "0.5.2",
"glob": "^7.0.3",
"gulp": "3.9.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

do we need gulp now ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have absolutely no idea :D Lets do a search.
vinylFilterSince may be dropped as well.

Copy link
Contributor

Choose a reason for hiding this comment

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

gulp, vinyl-filter-since and through2 should be removed

@PanayotCankov PanayotCankov force-pushed the cankov/symlink-change-detect branch 2 times, most recently from 55b90e0 to ee064ac Compare March 7, 2016 16:00
@PanayotCankov
Copy link
Contributor Author

Applied most of the comments in the PR

… instead

Get correct stat of file

In some cases glob module caches the file's stat with relative paths, in other - with full paths.
Make sure we have correct stat by checking relative and full path and in case they are both null, stat the file on our own

glob uses forward slashes on Windows, normalize glob paths
@PanayotCankov PanayotCankov force-pushed the cankov/symlink-change-detect branch from 3f554ff to 1baf546 Compare March 9, 2016 14:35
@teobugslayer
Copy link
Contributor

I am very happy with the simplified dependencies. 👍

@teobugslayer
Copy link
Contributor

But, is this for master - 2.0 or release - 1.7? In latter case, the PR must be re-targeted.

@rosen-vladimirov
Copy link
Contributor

We've decided to use keep it against master branch :)
So 2.0 is our choice :)

@rosen-vladimirov
Copy link
Contributor

run ci

@rosen-vladimirov
Copy link
Contributor

👍 tested on Linux as well, great work

@PanayotCankov
Copy link
Contributor Author

If there is a need I'll remove the glob dependency as it appears it has an issue or two when it comes to its cross platform features.

However it would be nice if we can use it to filter the files used to change detect and copy to the platforms/ios and platoforms/android based on .npmignore, .gitignore files or package.json's files key.

PanayotCankov added a commit that referenced this pull request Mar 10, 2016
Gulp fails miserably with symlinks in node_modules, use glob and stat instead
@PanayotCankov PanayotCankov merged commit 7cbc8f6 into master Mar 10, 2016
@Plamen5kov Plamen5kov deleted the cankov/symlink-change-detect branch October 25, 2016 11:53
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