This package has been deprecated

Author message:

This package has been deprecated. Please use @george-gillams/components instead.

gg-components

20.1.0 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i gg-components

Weekly Downloads

29

Version

20.1.0

License

MIT

Unpacked Size

536 kB

Total Files

218

Last publish

Collaborators

  • georgegillams