Skip to content
Boilerplate for developing ReactJS components using Babel ES6, Prettier, Lint.
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
lib
src
.babelrc
.editorconfig
.eslintrc
.gitignore
.prettierrc
LICENCE
README.md
package-lock.json
package.json

README.md

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

You can’t perform that action at this time.