Skip to content
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

Add checks for node environment variables for use with symlinked reactjs-components #944

Merged

Conversation

jfurrow
Copy link
Contributor

@jfurrow jfurrow commented Aug 9, 2016

This PR introduces a script which disables eslint and react-hot-loader. This is necessary when using npm link with a local copy of reactjs-components.

Disabling eslint prevents linting the transpiled source, and disabling react-hot-loader is necessary due to our use of getters in reactjs-components. Read more about it here: gaearon/react-hot-loader#131

@@ -123,6 +123,7 @@
"serve-notify": "export NOTIFY=true && npm run serve",
"scaffold": "./node_modules/.bin/gulp ensureConfig && ./node_modules/.bin/gulp ensureDevProxy",
"start": "NODE_ENV=development webpack-dev-server --config ./webpack/webpack.dev.babel.js --hot --progress --colors --content-base ./build --host 0.0.0.0 --port $npm_package_config_port",
"start-reactjs-components-local": "REACTJS_COMPONENTS_LOCAL=true npm start",
Copy link
Contributor

Choose a reason for hiding this comment

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

I would prefer we add this to the CONTRIBUTING.md on how to develop with reactjs-components, instead of creating a script here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

@jfurrow jfurrow changed the title Add start-reactjs-components-local script Add checks for node environment variables for use with symlinked reactjs-components Aug 11, 2016
@orlandohohmeier
Copy link
Contributor

LGTM! 🚢

@orlandohohmeier orlandohohmeier merged commit 7e772fb into master Aug 12, 2016
@orlandohohmeier orlandohohmeier deleted the john/feature/add-reactjs-components-local-scripts branch August 12, 2016 01:38
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.

5 participants