JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 10
  • Score
    100M100P100Q49104F
  • License MIT

This is a collection of components I use on a regular basis packaged up for use.

Package Exports

  • jirolu-svelte
  • jirolu-svelte/Text.svelte

Readme

jirolu-svelte

This is a collection of components I use on a regular basis packaged up for use.

Use it

npm i jirolu-svelte

Use like a normal Svelte component:

<script>
    import { Text } from 'jirolu-svelte'
</script>

<Text
    type="text"
  placeholder="write something..."
    value=""
  customClass=""
  disabled={false}
  isError={false}
/>

Packaging for NPM

Arif, this is here for you to remember how to do this 🙃

Thank Scott for let me know how to Making npm Packages with SvelteKit

Publish the project to NPM

# authenticate with npm
npm login
# bump version with npm
npm version 0.0.8
# package with sveltekit
pnpm run package
# publish
npm publish
# push tags to github
git push --tags

Publish @next package

Same procedure except use the --tag flag:

# authenticate with npm
npm login
# bump version with npm
npm version 0.0.13
# package with sveltekit
pnpm run package
# publish with tag
npm publish --tag next
# push tags to github
git push --tags

Move @next package to latest

# authenticate with npm
npm login
# move @next to latest
npm dist-tag add sveltekit-embed@0.0.13 latest