react-component-publisher
v1.0.5
Published
Boilerplate component publisher for React
Downloads
1
Readme
React Component Publisher Playground
Boilerplate starter kit for creating and publishing React components
Easily create, export and publish React.js components. Unit tests and a basic development environment are already configured and ready to run via npm
scripts.
Get Started
- Create components within
/src/components
folder. Export them from/src/index.jsx
. - Write unit tests within
/src
folder which follow this naming convention:<filename>.spec.jsx
. - Build a playground browser application using your library of custom components within the
/playground
folder.
NPM Scripts
npm run serve
: serve local static files from/playground
foldernpm run test
: run unit tests in/src
foldernpm run build
: build production bundlenpm run build:dev
: build development bundle onlynpm run watch
: build development bundle in watch modenpm publish
: publish package.build
andtest
scripts will automatically run first.