- Read Libraries van Kaliber.
- Make sure your example works.
- Make sure your package.json is correct. Have you change the library title?
- Update the bin/postInstall script. It should refer to your library.
- Update the
<title>
tag inindex.html.js
. - Remove 'BEFORE YOU PUBLISH' and 'PUBLISHING' from this document.
- Make sure you are added to the kaliber organization on NPM
- run
yarn publish
- Enter a correct version, we adhere to semantic versioning (semver)
- run
git push
- run
git push --tags
- Send everybody an email to introduce them to your library!
Short description.
Optionally add a bit of text describing why this library exists.
yarn add @kaliber/library
Short example. If your library has multiple ways to use it, show the most used one and refer to /example
for further examples.
import { hello } from 'library'
function Component() {
return <div>{hello()}</div>
}
Optionally add a reference, if your library needs it.
This library is intended for internal use, we provide no support, use at your own risk. It does not import React, but expects it to be provided, which @kaliber/build can handle for you.
This library is not transpiled.