-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Clarify package.json scripts The backend `test` and `lint` commands now only test/lint a single componenet. This should help clarify how to run tests or the linter only the frontend or backend. Add readme for the frontend. * Unit test result files go to the correct dir * Remove unneeded env variables from compose file * Remove the audit command * Add cross-env as a dev package This package allows cross platform setting of environment variables * Update readme Add section instructing to not switch between docker and host yarn commands without installing proper dependencies. Add section that offers help running docker on windows * Remove build files, add to gitignore * Clarify and update .env. Rename test * .env handling updated. .env is now .gitignored and the old .env renamed to .env.example. Should make understanding it's purpose a little easier. Added more to the comment explaining the .env files purpose * Test name now easier to understand for non-tech people * Format lint:CI to console and file Co-authored-by: Sarah-Jaine Szekeresh <[email protected]>
- Loading branch information
1 parent
10f3ff6
commit de65fab
Showing
16 changed files
with
194 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Copy this file to `.env` and replace "1000:1000" with | ||
# your user id/group id. `.env` is used by docker-compose | ||
# making files created in the docker container owned by | ||
# your host user (instead of root). | ||
# Linux/OSX run `id -u` and `id -g` | ||
CURRENT_USER=1000:1000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,6 @@ reports | |
node_modules | ||
coverage | ||
.DS_Store | ||
.env.dev | ||
.env | ||
junit.xml | ||
frontend/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# TTADP Frontend | ||
|
||
A React frontend initialized with Create React App | ||
|
||
## Getting Started | ||
|
||
There are yarn commands for starting/testing/linting the frontend defined a directory up. `yarn start` or `yarn docker:start` a directory up will start both the backend and frontend. `yarn docker:test` or `yarn test:all` will test the frontend and the backend. However if you want to just run the frontend tests/linter you can run yarn commands in this directory. Install dependencies with `yarn install`. `yarn start` will fire up the development server. Use `yarn test` and `yarn lint` for running tests and the linter. | ||
|
||
### Yarn Commands | ||
|
||
| Yarn Command | Description | | ||
|-|-| | ||
| `yarn start` | Start the frontend development server | | ||
| `yarn build` | Build a production bundle | | ||
| `yarn test` | Start the test watcher | | ||
| `yarn test:ci` | Run unit tests a single time outputting results to xml files | | ||
| `yarn lint` | Run the linter | | ||
| `yarn lint:ci` | Run the linter outputting results to xml files | | ||
|
||
## Create React App | ||
|
||
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). | ||
|
||
## Learn More | ||
|
||
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). | ||
|
||
To learn React, check out the [React documentation](https://reactjs.org/). | ||
|
||
### Code Splitting | ||
|
||
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting | ||
|
||
### Analyzing the Bundle Size | ||
|
||
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size | ||
|
||
### Making a Progressive Web App | ||
|
||
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app | ||
|
||
### Advanced Configuration | ||
|
||
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration | ||
|
||
### Deployment | ||
|
||
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment | ||
|
||
### `yarn build` fails to minify | ||
|
||
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3405,6 +3405,13 @@ create-hmac@^1.1.0, create-hmac@^1.1.4, create-hmac@^1.1.7: | |
safe-buffer "^5.0.1" | ||
sha.js "^2.4.8" | ||
|
||
cross-env@^7.0.2: | ||
version "7.0.2" | ||
resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-7.0.2.tgz#bd5ed31339a93a3418ac4f3ca9ca3403082ae5f9" | ||
integrity sha512-KZP/bMEOJEDCkDQAyRhu3RL2ZO/SUVrxQVI0G3YEQ+OLbRA3c6zgixe8Mq8a/z7+HKlNEjo8oiLUs8iRijY2Rw== | ||
dependencies: | ||
cross-spawn "^7.0.1" | ||
|
||
[email protected]: | ||
version "7.0.1" | ||
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.1.tgz#0ab56286e0f7c24e153d04cc2aa027e43a9a5d14" | ||
|
@@ -3425,6 +3432,15 @@ cross-spawn@^6.0.0, cross-spawn@^6.0.5: | |
shebang-command "^1.2.0" | ||
which "^1.2.9" | ||
|
||
cross-spawn@^7.0.1: | ||
version "7.0.3" | ||
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" | ||
integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== | ||
dependencies: | ||
path-key "^3.1.0" | ||
shebang-command "^2.0.0" | ||
which "^2.0.1" | ||
|
||
crypto-browserify@^3.11.0: | ||
version "3.12.0" | ||
resolved "https://registry.yarnpkg.com/crypto-browserify/-/crypto-browserify-3.12.0.tgz#396cf9f3137f03e4b8e532c58f698254e00f80ec" | ||
|
@@ -4261,6 +4277,11 @@ eslint-config-react-app@^5.2.1: | |
dependencies: | ||
confusing-browser-globals "^1.0.9" | ||
|
||
eslint-formatter-multiple@^1.0.0: | ||
version "1.0.0" | ||
resolved "https://registry.yarnpkg.com/eslint-formatter-multiple/-/eslint-formatter-multiple-1.0.0.tgz#223db63a682038b001763c5d36d32975be4bdbb3" | ||
integrity sha512-0Jv8gn7LmXj9c20E9BNAI1Wn3Lxw2v3nCvYRpk30kBLhc3wBees6DIXkJgaY2hoeOjvSq8n4peQ6KJstk5gmKQ== | ||
|
||
eslint-import-resolver-node@^0.3.2, eslint-import-resolver-node@^0.3.3: | ||
version "0.3.4" | ||
resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.4.tgz#85ffa81942c25012d8231096ddf679c03042c717" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.