This project contains a React starter app, as well as an example of our Interactive Style Guide (ISG).
Note: Depending on how Node is set up on your machine, you may need to prefix the following commands with sudo.
To get this project running…
- Clone this repository.
cdinto the local directory.- Type
npm install. - Type
npm start.
To run unit tests on the React components…
cdinto the local directory.- Type
npm run test
To build the starter app to static files…
cdinto the local directory.- Type
npm start. - Type
npm run build.
To build the ISG to static files…
cdinto the local directory.- Type
npm start. - Type
npm run build_isg.
If you would rather build only a portion of the ISG to static files, replace step #3 build_isg with one of the following…
npm run build_isg_intronpm run build_isg_brandingnpm run build_isg_patternsnpm run build_isg_requirementsnpm run postbuild_isg_screens
To build both the starter app and ISG to static files…
cdinto the local directory.- Delete the existing "/build" folder.
- Type
npm start. - Type
npm run build_all.