Skip to content
This repository was archived by the owner on Nov 10, 2022. It is now read-only.

Ignore node_modules symlinks when installing npm. #177

Merged
merged 1 commit into from
May 23, 2016

Conversation

delawski
Copy link
Contributor

@delawski delawski commented May 23, 2016

Having symbolic link to node_modules in the project root (as e.g. in case of a client's plugins using global node_modules via symlink) generates Travis error:

Fatal error: Unable to find local grunt.

After removing node_modules symlinks in plugins, builds are okay.

However, having symlink in plugin's directory facilitates development, so it's not a best idea to remove them completely. In this case, I've modified check-diff.sh script to go ahead and ignore symlink. This way npm should be installed in each Travis build.


I'm open to any developer having a look and commenting/merging this into master.

@westonruter - I'm assigning this to you primarily, as you already saw my struggles with this issue.

@delawski delawski added the bug label May 23, 2016
@westonruter westonruter merged commit 6242f95 into master May 23, 2016
@westonruter westonruter deleted the bugfix/ignore-node-modules-symlink branch May 23, 2016 16:30
@westonruter
Copy link
Contributor

I think it's somewhat of a hack that we're using a symlinked node_modules anyway, so ignoring when it is a symlink makes sense.

westonruter added a commit to xwp/wp-customize-posts that referenced this pull request May 25, 2016
…odules gets created to fix ESLint checks

xwp/wp-dev-lib@046c3c5...4c79f77

d14fb0f Fix activation of plugins via WP_TEST_ACTIVATED_PLUGINS config
9a6eaba Merge pull request xwp/wp-dev-lib#176 from branch bugfix/test-activated-plugins
e34026e Ignore `node_modules` symlinks when installing `npm`.
6242f95 Merge pull request xwp/wp-dev-lib#177 from branch bugfix/ignore-node-modules-symlink
c05837c Define Paths * Define paths to the current WP install instead of using the wordpress-develop paths as per the tests bootstrap
ad82ec3 Define WP_CONTENT_DIR and WP_PLUGIN_DIR
4c79f77 Ensure symlink for node_modules gets created to fix ESLint checks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants