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

@gn-as/web-components

v3.1.6

Published

A reusable library of web components made by & for the GN Advanced Science team/organization.

Downloads

742

Readme

Overview

This is a library of web components that can be used to provide a consistent, properly branded user experience while increasing efficiency in the development of web sites/applications for the GN Advanced Science team.

Installation

When using your own bundling setup:

npm install @gn-as/web-components

If you are creating an Server-Side Rendering (SSR) compatible site with Vite, install the package as a "development" dependency to avoid compilation errors ([component name] is outside of Vite serving allow list errors)

npm install -D @gn-as/web-components

Usage

In a SvelteKit application

<script>
  import { Button } from '@gn-as/web-components';
</script>

<Button />

Development notes

Follow the standard "fork, develop, submit merge request" process.

Keep the following in mind:

  1. Follow the Conventional Commits specification for commit messages. Merge Requests with commits not following this convention must rebase and amend the commit history. Use Husky to verify commit message format to help encourage/verify this format.
  2. Base Merge Requests on the main branch. Use the main branch for development, release & next for generating releases. Releases are automatically generated via the CI/CD pipeline
  3. Use Prettier and ESLint to ensure consistency. Use Prettier and ESLint to help keep the style of code in alignment across the project. If your editor supports these tools, they should inherit the preferred styles and the formatting of files you have changed should be automatically updated on both saving and committing. These tools can be manually invoked vi npm run scripts. See npm run.
  4. Write components in TypeScript with JSDoc. There isn't a great source of information on how to document Svelte components with JSDoc. For the time being, please reference the Button.svelte component.

Releasing

The release process is:

  1. Make changes and commit following the Conventional Commits specification.
  2. Create a new merge request with the main as the "Source" branch and release being "Target" branch.
  3. Wait for the CI pipeline to succeed.
  4. Merge.

This publishes a new tagged release and NPM package automatically via the CI pipeline.