Installations
npm install picosvelte
Developer Guide
Typescript
Yes
Module System
ESM
Node Version
16.20.1
NPM Version
8.19.4
Releases
Unable to fetch releases
Total Downloads
Cumulative downloads
Total Downloads
1,231
Last day
0%
1
Compared to previous day
Last week
-66.7%
5
Compared to previous week
Last month
81.3%
29
Compared to previous month
Last year
-81.1%
196
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
create-svelte
Everything you need to build a Svelte library, powered by create-svelte
.
Read more about creating a library in the docs.
Creating a project
If you're seeing this, you've probably already done this step. Congrats!
1# create a new project in the current directory 2npm create svelte@latest 3 4# create a new project in my-app 5npm create svelte@latest my-app
Developing
Once you've created a project and installed dependencies with npm install
(or pnpm install
or yarn
), start a development server:
1npm run dev 2 3# or start the server and open the app in a new browser tab 4npm run dev -- --open
Everything inside src/lib
is part of your library, everything inside src/routes
can be used as a showcase or preview app.
Building
To build your library:
1npm run package
To create a production version of your showcase app:
1npm 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
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).
To publish your library to npm:
1npm publish
No vulnerabilities found.
No security vulnerabilities found.