Skip to content

Boilerplate for developing ReactJS components using Babel ES6, Prettier, Lint.

License

Notifications You must be signed in to change notification settings

lassegit/npm-react-module

Repository files navigation

Boilerplate for developing ReactJS components using Babel ES6, Prettier, Lint.

Installation

git clone --depth=1 --branch=master https://github.com/lassegit/npm-react-module CustomReactModule && cd $_ && sudo rm -r .git/

Remove the .git folder and rename the component in src/index.js. Styles resides in src/style.css.

Commands

  • npm run dev - start webpack for module development. You can open examples/index.html and customize examples/index.js to test your code. Webpack config resides in examples/webpack.config.js.

  • npm run lint - lint your code

  • npm run prettier - prettify your code in src/

  • npm run build - build /lib folder

  • npm publish - publish your package to npmjs.com. Remember to customize package.json to suit your custom module.

Thanks

Build on top of: https://github.com/Travelport-Ukraine/npm-module-boilerplate

About

Boilerplate for developing ReactJS components using Babel ES6, Prettier, Lint.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published