0.0.1 • Published 2 years ago
rds-lit v0.0.1
Desc.
Version of rds using lit web components
Very early version, MANY things are likely to be broken each update.
Creating a new component
run yarn new
- Runs through some prompts to create a new component then runs
lerna bootstrap
to install dependancies and add to lerna.
Working on a component
Until we setup Storybook you can just import the component into the root index.html
by adding <script type="module" src="/components/COMP_NAME/dist/bundle.umd.js"></script>
to the head and then adding your comp's tags to the body.
After that, you can either run yarn build
and view the page through VsCode's live server, or run yarn develop
to watch all the files and spin up a local dev server ( scroll up in terminal log to get address ).
All Scripts
New yarn new
- Runs through some prompts to create a new component then runs
lerna bootstrap
to install dependancies and add to lerna.
Build yarn build
- This uses rollup to create js modules of all the packages in the dist folder.
Watch yarn build
- This uses rollup to watch each package and only rebundle in the package with changes.
Develop yarn develop
- This spins up a dev server using http-server package and then runs the
watch
command.
0.0.1
2 years ago