Created
November 25, 2016 18:05
-
-
Save erictherobot/1762a6494d3af8b81a9dcc11421e2dff to your computer and use it in GitHub Desktop.
Publish React Component in NPM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
First run: | |
npm install -g generator-react-component | |
And then running it to create a skeleton project: | |
yo react-component | |
Developing: | |
npm start | |
http://localhost:8000 | |
Edit files inside the src directory in your project folder | |
Releasing Your Package: | |
npm run build | |
npm run release | |
Yay! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Seems to be broken in Node 8