New Branch Workflow:
1. Create new branch for each new feature you work on
a. Checkout develop branch with "git checkout develop"
b. Create new branch from master with "git checkout -b 'feature/<new-branch-name>'" or 'bug/<new-branch-name>'
c. Add changes
d. Commit `git commit -m "message"`
e. Push `git push`
2. Creating Pull Requests
To learn, check out the How to Create Pull Requests.
Available Scripts
First Run for Development?
RUN
1. npm run install
2. npm run prod
3. npm run livedev
In the project directory, you can run:
npm run livedev
Dev server will run which will watch if any file changes and updates instantly.
npm run prod
Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
npm run lint
Launches the ESlinter to show errors.
npm run cypress
Launches the test runner in the interactive watch mode.
npm run test
Launches the test runner locally in CLI.
npm run recordtest
Launches the test runner in the Cypress Cloud Dashboar
npm run devdeploy Deploy to Dev Environment
- Make sure you are logged in via firebase-tools cli into CQREF Account
- run devdeploy in the command prompt.
npm run stagingdeploy Deploy to Staging Environment
- Make sure you are logged in via firebase-tools cli into CQREF Account
- run stagingdeploy in the command prompt.
npm run deploy Deploy to Production
- Make sure you are logged in via firebase-tools cli into CQREF Account
- run deploy in the command prompt.
Learn More
JSDocumentation is Available at Chalk Docs. You can learn more about webpack at Webpack. To learn React, check out the React documentation. To learn Cypress, check out the Cypress documentation.