Skip to content

Allow plugins to be loaded from /code/node_modules #12

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
Jun 30, 2015
Merged

Conversation

gdiggs
Copy link
Contributor

@gdiggs gdiggs commented Jun 30, 2015

/cc @codeclimate/review

This fixes the recurring bugsnag as well as #10

@pbrisbin
Copy link
Contributor

Doesn't this only fix this specific plugin? Don't we need to support the user having their own plugins in ./node_modules?

@gdiggs
Copy link
Contributor Author

gdiggs commented Jun 30, 2015

@pbrisbin ready for another look

@gdiggs gdiggs changed the title Add eslint-plugin-react Allow plugins to be loaded from /code/node_modules Jun 30, 2015
@@ -10,4 +10,6 @@ USER app

COPY . /usr/src/app

ENV NODE_PATH /code/node_modules
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be something like /code/node_modules:/usr/src/app/node_modules?

Copy link
Contributor

Choose a reason for hiding this comment

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

and even :/whatever/the/system/node_modules too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nope - by default it is nothing and is only used when the module can't be found elsewhere:

If the NODE_PATH environment variable is set to a colon-delimited list of absolute paths, then node will search those paths for modules if they are not found elsewhere.

- https://nodejs.org/api/modules.html#modules_loading_from_the_global_folders

Copy link
Contributor

Choose a reason for hiding this comment

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

Cool!

@pbrisbin
Copy link
Contributor

LGTM

gdiggs added a commit that referenced this pull request Jun 30, 2015
Allow plugins to be loaded from /code/node_modules
@gdiggs gdiggs merged commit c420149 into master Jun 30, 2015
@gdiggs gdiggs deleted the gd-react branch June 30, 2015 17:24
@gdiggs gdiggs restored the gd-react branch October 27, 2015 13:26
@dblandin dblandin deleted the gd-react branch June 15, 2016 18:28
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.

2 participants