@mijoco/stx_components
Components shared across stx.eco applications.
Read more about creating a library in the docs.
Creating a project
npm create svelte@latest
npm create svelte@latest my-app
Developing
npm run dev
npm run dev -- --open
src/lib
is librarysrc/routes
to preview app
Building
To build your library:
npm run package
npm run build
You can preview the production build with npm run preview
.
To deploy your app, you may need to install an adapter for your target environment.
Publishing
To publish your library to npm:
npm publish --access public
Packing
Test the components prior to publishing.
npm run build
npm pack
mv mijoco-stxeco_components-0.0.xx.tgz ../stxeco-launcher
in stxeco-launcher;
npm install ./mijoco-stxeco_components-0.0.xx.tgz