New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

gg-components

Package Overview
Dependencies
Maintainers
1
Versions
254
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gg-components

Reusable transpiled React components

latest
Source
npmnpm
Version
20.1.0
Version published
Maintainers
1
Created
Source

gg-components

Build status Dependencies status Dependencies status

A set of reusable React components, that are published as plain JS and CSS for maximum compatibility.

Developing

To develop components within Storybook, run npm start.

If components have changed, snapshot tests may need to be updated. Backstop js visual regression tests may also need to be updated.

To update jest snapshots:

npx jest -u

To update backstopJS snapshots:

Make sure docker is running. Then run these three commands:

./scripts/docker/prepare.sh
./scripts/docker/run-tests.sh --update
./scripts/docker/clean-up.sh'
  • The first will setup the docker image and container. If they already exist this will be super fast.
  • The second will copy the project over, setup dependencies, build and run, and take screenshots. Failed screenshots will be copied back to your machine.
  • The third simply stops the docker container.

Any changes resulting from these commands should be verified and checked in.

Publishing

Use one of the following to release. These update the version, commit and tag the change, and publish transpiled code:

  • npm run release:major for breaking changes
  • npm run release:minor for additions
  • npm run release:patch for fixes

Documentation

General docs can be found here. Docs for each component should be available soon(ish).

That's it!

Contributing

Want to add or change something? Just fork me and open a PR.

FAQs

Package last updated on 20 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts