@mijoco/stx_components
v0.1.4
Published
Components shared across stx.eco applications.
Downloads
7
Readme
@mijoco/stx_components
Components shared across stx.eco applications.
Read more about creating a library in the docs.
Creating a project
# create a new project in the current directory
npm create svelte@latest
# create a new project in my-app
npm create svelte@latest my-app
Developing
npm run dev
# or start the server and open the app in a new browser tab
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