In order to bootstrap a project using these scripts, run
npx create-react-app <app-name> --scripts-version @dangerfarms/react-scripts.
To update the published version of
@dangerfarms/react-scripts, increment the version number in the
package.json file in the same
directory as this README, then, also within the same directory, run
npm publish (or
npm publish --access public if necessary).
Because Husky can only install git hooks once a repo has been initialised, the bootstrapped project will initially have
uncommitted changes to
yarn.lock caused by installing Husky after
git init has run. Please commit them.
This package includes scripts and configuration used by Create React App. It has been customised in order to bootstrap Danger Farms projects. These modifications include different implicit and explicit dependencies, bespoke linting, Husky pre-commit hooks and a custom set up of Storybook.
Please refer to the original documentation: