Skip to content

movetodigital/react-gallery

Repository files navigation

React gallery

// todo

Library development:

yarn Scripts

  • test - run unit tests
  • test:cover - run unit tests with test coverage
  • lint - check eslint and prettier rules
  • lint:fix - autofix unmet eslint and prettier rules
  • local-pack - create the tgz package locally to test consumers without publishing
  • start - start the storybook server and automatically open in browser
  • compile - standard typescript compile tsc

Before each commit, husky and lint-staged will automatically lint your staged ts, tsx, js, jsx files.

Configuration

Circle CI

You need to configure one environment variable in CircleCI, for publishing to NPM.

  • NPM_TOKEN

Zeit

You need to authorize Zeit with your GitHub account to enable automatic deployments. Once configured, you can enable Zeit to deploy any repository that contains a now.json file.

Dependabot (optional)

I recommend enabling Dependabot on this repository to keep your dependencies up to date. Each dependency update will be created as a PR, which will automatically validate via Circle CI and you can manually validate via Zeit.