To publish new version to NPM:
- Create user on NPM site if you don't already have one. Then login
npm login
- Have someone add you to the firstfleet NPM org
- Increment version in package.json
- Publish it!
npm publish --access public
- Install to your project
npm install -s @firstfleet/hyperappcomponents
- Import into js components
import { Button } from @firstfleet/hyperappcomponents
- Use in your jsx
- For CSS add this to your brunch.config file (if using brunch)
'@firstfleet': ['hyperappcomponents/hyperappComponents.css']
}
};```
TO SEE THE LIVING DOCS:
- importh the docs
import { Docs } from @firstfleet/hyperappcomponents
- render the docs onto the page
<Docs></Docs>