Standard Advert for Sveltekit sites, where the client has not payed yet or service has been provided for free
  • Svelte 49.9%
  • JavaScript 41.4%
  • HTML 8.7%
Find a file
darkicewolf50 e511b6f1df
All checks were successful
Publish to Forgejo NPM registry / Publish to Forgejo NPM registry (push) Successful in 28s
chore (0.0.4): re added scope to package
2025-12-26 13:51:40 -07:00
.forgejo/workflows chore (0.0.4): re added scope to package 2025-12-26 13:51:40 -07:00
src Svelte component created without using a strange npm init and ready to publish 2025-12-25 15:30:53 -07:00
static Svelte component created without using a strange npm init and ready to publish 2025-12-25 15:30:53 -07:00
.gitignore chore: squash all previous commits into one 2025-12-26 13:48:14 -07:00
.npmrc Svelte component created without using a strange npm init and ready to publish 2025-12-25 15:30:53 -07:00
.prettierignore Svelte component created without using a strange npm init and ready to publish 2025-12-25 15:30:53 -07:00
.prettierrc Svelte component created without using a strange npm init and ready to publish 2025-12-25 15:30:53 -07:00
eslint.config.js Svelte component created without using a strange npm init and ready to publish 2025-12-25 15:30:53 -07:00
jsconfig.json Svelte component created without using a strange npm init and ready to publish 2025-12-25 15:30:53 -07:00
package-lock.json Svelte component created without using a strange npm init and ready to publish 2025-12-25 15:30:53 -07:00
package.json chore (0.0.4): re added scope to package 2025-12-26 13:51:40 -07:00
README.md chore(readme): wording corrected 2025-12-25 15:51:44 -07:00
svelte.config.js Svelte component created without using a strange npm init and ready to publish 2025-12-25 15:30:53 -07:00
vite.config.js Svelte component created without using a strange npm init and ready to publish 2025-12-25 15:30:53 -07:00

Cnidaria-Ware-Ad

Install

Add this to your modify your .npmrc like this

# Use Forgejo registry for packages under the @cnidaria-ware scope
@cnidaria-ware:registry=https://forge.ucalgarybaja.ca/api/packages/cnidaria-software/npm/

# Default registry (npmjs) for everything else
registry=https://registry.npmjs.org/

Svelte library

Everything you need to build a Svelte library, powered by sv.

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!

# create a new project in the current directory
npx sv create

# create a new project in my-app
npx sv create my-app

Developing

Once you've created a project and installed dependencies with npm install (or pnpm install or yarn), start a development server:

npm run dev

# or start the server and open the app in a new browser tab
npm 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:

npm pack

To create a production version of your showcase app:

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

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:

npm publish