@mijoco/stx_components
Advanced tools
Comparing version 0.0.2 to 0.0.3
import { SvelteComponent } from "svelte"; | ||
declare const __propDef: { | ||
props: { | ||
headerLinks: any; | ||
loggedIn?: boolean | undefined; | ||
@@ -5,0 +6,0 @@ heights: { |
{ | ||
"name": "@mijoco/stx_components", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"scripts": { | ||
@@ -5,0 +5,0 @@ "dev": "vite dev", |
@@ -1,4 +0,4 @@ | ||
# create-svelte | ||
# @mijoco/stx_components | ||
Everything you need to build a Svelte library, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/main/packages/create-svelte). | ||
Components shared across stx.eco applications. | ||
@@ -9,4 +9,2 @@ Read more about creating a library [in the docs](https://kit.svelte.dev/docs/packaging). | ||
If you're seeing this, you've probably already done this step. Congrats! | ||
```bash | ||
@@ -22,4 +20,2 @@ # create a new project in the current directory | ||
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server: | ||
```bash | ||
@@ -32,3 +28,4 @@ npm run dev | ||
Everything inside `src/lib` is part of your library, everything inside `src/routes` can be used as a showcase or preview app. | ||
- `src/lib` is library | ||
- `src/routes` to preview app | ||
@@ -43,4 +40,2 @@ ## Building | ||
To create a production version of your showcase app: | ||
```bash | ||
@@ -56,8 +51,22 @@ npm run build | ||
Go into the `package.json` and give your package the desired name through the `"name"` option. Also consider adding a `"license"` field and point it to a `LICENSE` file which you can create from a template (one popular option is the [MIT license](https://opensource.org/license/mit/)). | ||
To publish your library to [npm](https://www.npmjs.com): | ||
```bash | ||
npm publish | ||
npm publish --access public | ||
``` | ||
## Packing | ||
Test the components prior to publishing. | ||
```bash | ||
npm run build | ||
npm pack | ||
mv mijoco-stxeco_components-0.0.xx.tgz ../stxeco-launcher | ||
``` | ||
in stxeco-launcher; | ||
```bash | ||
npm install ./mijoco-stxeco_components-0.0.xx.tgz | ||
``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
69151
24
267
68