1.1.3 • Published 4 years ago
@nestagencyuk/react_form-factory v1.1.3
React Form Factory
This repository contains Nest's React form factory.
Contributing
If you wish to contribute to this repo directly, then continue reading the contribution instructions below.
Setup
Install all dependencies.
$ npm install
Develop
Bundles all components using Storybook, starts the dev server and watches for changes.
$ npm run dev
Build
Bundles everything using webpack and outputs to /dist/ ready to be republished to npm.
$ npm run build
Run individual tasks:
Command | Description |
---|---|
$ npm run build:components | Build just the components |
$ npm run build:docs | Build just storybook documentation |
Testing
Run all tests:
$ npm run test
Run individual tests:
Command | Description |
---|---|
$ npm run test:cypress | Run automated browser tests |
$ npm run test:unit | Run component unit tests |
$ npm run test:coverage | Run coverage tests and send coverage report |
Release
To create a new release:
- First ensure that you're on the
develop
branch and all pull requests and branches have been pulled and merged in (incl. master as the version may have been bumped). - Using Git Flow*, run
git flow release start vX.X.X
, replacing theX.X.X
with the appropriate new version number, incremented by one. Follow semvar practices, e.g vX.0.0 denotes a major version, v0.X.0 is a minor version and v0.0.X is a patch. See the package.json for the most recent version number. - Carry out any last minute work on the release branch and commit as normal.
- When finished, run
git flow release finish vX.X.X
and add any relevant commit messages. You must add a tag message otherwise the release will fail. - The release branch should now be merged into both
develop
andmaster
. Now you just need to runnpm run deploy
and you're done! The CI pipeline will handle the rest.
NOTE: Using Git Flow ensures the tagging is handled correctly. Creating a release branch manually won't work.