Qenya
oma
noun. everywhere
oma is a framework independent web components library.
See components/
for available components.
See each components documentation for details on properties and styling.
asdf is used as runtime dependency manager.
Install: yarn add @oma-wc/button
Add to main javascript file: import '@oma-wc/button'
Use in HTML or JSX: <oma-button>A simple button</oma-button>
Add to main HTML file:
<script src="https://unpkg.com/@oma-wc/button" type="text/javascript"></script>
And then use it in HTML: <oma-button>A simple button</oma-button>
Requires due to style dependancies.
Doesn't require , self contained style.
This is a multi package repo managed with Lerna.
Run yarn bootstrap
to setup internal dependencies.
There's a very simple test page located in components/index.html
which you can
run with yarn dev:server
.
Build components automatically with yarn watch
, for instance yarn watch @oma-wc/menu
.
The watcher just forwards arguments to the build script.
yarn build
- Commit
- Run
yarn lerna:publish
(you need authentication to NPM (npm adduser
))