This library is 1/2 of of the react-component archetype. The second half of the prototype is the [react-component-dev](https://gitlab.com/short-interval-control/short-interval-control-archetype-react-component-dev) module
npm install short-interval-control-archetype-react-component
npm install --save short-interval-control-archetype-react-component
npm install --save-dev short-interval-control-archetype-react-component-dev
`
To use
You can then define scripts which call out to any of the scripts in this module.
For example:
``
"scripts": {
"start": "builder run archetype:lint && builder run archetype:build && builder run archetype:test",
"test": "builder run archetype:test",
"build": "builder run archetype:build",
"lint": "builder run archetype:lint",
"demo": "DEMO_SOURCE_DIR=demo builder run archetype:demo",
"demo-client-server": "DEMO_SOURCE_DIR=demo-client-server builder run archetype:demo-client-server",
},
`
$3
Create an index.html which renders the component, then run `npm run demo`
$3
- Create an client/index.html which renders the component
- Create a server/index.js which provides the back end for the component and includes webpack-dev-middleware
- Then run `npm run demo-client-server``