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

gsy-component-library

v5.0.0

Published

reusable components from grid singularity

Downloads

150

Readme

component-library

Build Status semantic-release

Living Styleguide by Grid Singularity

Licensed under GNU LESSER GENERAL PUBLIC LICENSE

Usage

For react based applications

Install the gsy component library package from npm

npm install -s gsy-component-library

Now you should have in your node modules a folder from gsy-component-library which contains a build folder. In this build folder are all ready to use pre-compiled components. If you want to use one of them in a react render function just import the component you want to use:

import Button from 'gsy-component-library/build/'

Every component comes with its own, already included, css. Check out the storybook demo of the component to see prop and theming options and how to set them.

For using a theme you have to wrap the components in the themeprovider component and set the name of the theme.

Contribute

This repository is published under GLGPL-3.0, you can fork it and create Pull Requests to participate in the development of this library. Feel free to check out existing issues or create new issues if you discover a bug or miss some functionality.

Use angular commit message format to commit. This allows the automatic versioning to pick the right versionnumber.

How to develop for this repository

Clone repository & install dependencies

git clone https://github.com/gridsingularity/component-library.git
cd component-library
npm install

Start the storybook demo

npm run storybook

The demo will reload if you make edits. You will see the build errors and lint warnings in the console

Create new component

Create a new folder in /lib/components/MyComponent and a MyComponent.js and MyComponent.scss file

There you write your react component and the styling.

Write CSS for the component

These components are themeable with scss. In the file /lib/styles/themes.scss you can enter the variables for a new theme or see the variables of the other themes.

When writing scss for your component you should use these variables so the component is themeable.

Publish new version

Versioning is handled via the package semantic-release

A new version gets published after successfully merging a pull request to master. It s important to use correct commit-message syntax.

Deploy to heroku

on your working branch run npm run build-storybook this will create the static files inside .out folder. Commit and push your changes to your branch. Otherwise git will respond with 'No new revisions were found'.

For the deployment to heroku it needs to be merged into the deploy branch. This branch is a subtree of the master branch. Therefore you have to subtree split the .out folder into a new branch with the updated version name. git subtree split --prefix=.out -b version-123

You now should have a new branch which contains the contents of .out inside its main folder.

Then switch to deploy branch. The deploy branch contains the files of the .out folder plus a gitignore file and a different package.json to run it as a static-page. Now all you have to do is merge your newly created version branch. git merge version-123 --allow-unrelated-histories

you can check if your changes applied when running npm install npm run start

When you pushed the deploy branch the heroku deploy pipeline will automatically deploy this version.

External Libraries and packages

The used Icons are from material.io