npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

jdg-ui-svelte

v1.1.6

Published

Svelte components for the family of JDG UI elements.

Downloads

918

Readme

JDG SVELTE UI

Svelte components for the family of JDG UI elements.

Developing

Install dependencies

yarn

Run the dev package

Use this when changes are in progress and realtime updates are required.

This doesn't build the package, but just runs it for local debugging.

yarn run dev

NOTE: Styles may flash more during first load. This won't happen in the final package.

Testing

It's a good idea to test the locally-built package in a locally-built website before publishing, to make sure everything is working.

In the jdg-ui-svelte repo

First, create a link:

yarn link

Only need to do this once, unless a link is already present from a while ago, in which case run yarn unlink

Then, build the jdg-ui-svelte package locally:

yarn build

Repeat this step after every package change you want to test locally

In the consuming website repo

Link to the jdg-ui-svelte package:

yarn link jdg-ui-svelte

Only need to do this once, unless a link is already present from a while ago, in which case run yarn unlink jdg-ui-svelte

Cancel any current yarn run dev command and re-run the dev server using --force:

yarn run dev --force

Need to cancel the server and re-run using --force any time the UI package has changed locally

To revert to using the official package (not the linked one), be sure to un-link:

yarn unlink jdg-ui-svelte

After this, need to run yarn install --force

Previewing

Build and preview the final package

Use this when changes are not in progress, and the package should be actually built for final testing.

First, build the jdg-ui-svelte package locally:

yarn build

Then host the package (and demo site) locally for viewing:

yarn preview

NOTE: When testing, you may notice that styles flash when the page initially loads. This can be ignored as it shouldn't happen when the final website host is compiled.

NOTE: If changes are made after building, cancel the preview server, and run yarn build and yarn preview again to ensure the latest version of the package is built. This also helps ensure any linked websites use the latest local package.

Publishing

First, update the version in package.json by incrementing whichever field makes sense given the current changes.

Then:

yarn publish

Usage

If the host app doesn't already have jdg-ui-svelte installed:

yarn add jdg-ui-svelte@latest