-
In a terminal window open your install location and run the following:
git clone https://github.com/cuweb/rds-forms.git
-
Once the clone is complete move into the
RDSdirectory and run:npm install
-
Run Storybook
npm run storybook
-
Other useful shell commands
npm run clean- deletes node modules, package lock and run npm installnpm run cypress- launch cypress appnpm run format- format files with prettiernpm run lint- check for errors with eslintnpm run size- compare compiled size against pre-defined limit
When adding a commit with a commit you may be blocked if you do not prefix your comment with one of the following types. So a commit should look like: git commit -m "change: updated spacing around button". The prefix requires a colon to separate it from the comment.
add- used when adding something new such as a component, story or test filechange- used when making a change to an existing file in the projectdoc- used when updating something related to documentationfix- used when fixing an error, warning or something elseperf- used when making changes relating to performancerefactor- used when refactoring something such as a component or build toolrelease- used when preparing a new releaserevert- used when revert to a past committest- used when making changes relating to testing