|
1 | | -This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). |
| 1 | +# CodeRoad Tutorial React Starter |
| 2 | + |
| 3 | +This project is a working starter boilerplate for a React based CodeRoad tutorial. |
| 4 | + |
| 5 | +See [instructions for reverting back](#Revert-to-Create-React-App) to its original [Create React App](https://github.com/facebook/create-react-app) template. |
2 | 6 |
|
3 | 7 | ## Available Scripts |
4 | 8 |
|
@@ -27,16 +31,6 @@ Your app is ready to be deployed! |
27 | 31 |
|
28 | 32 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. |
29 | 33 |
|
30 | | -### `yarn eject` |
31 | | - |
32 | | -**Note: this is a one-way operation. Once you `eject`, you can’t go back!** |
33 | | - |
34 | | -If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. |
35 | | - |
36 | | -Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. |
37 | | - |
38 | | -You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. |
39 | | - |
40 | 34 | ## Learn More |
41 | 35 |
|
42 | 36 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). |
@@ -66,3 +60,35 @@ This section has moved here: https://facebook.github.io/create-react-app/docs/de |
66 | 60 | ### `yarn build` fails to minify |
67 | 61 |
|
68 | 62 | This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify |
| 63 | + |
| 64 | +## Revert to Create-React-App |
| 65 | + |
| 66 | +This project is slightly modified from the original create-react-app config in order to integrate with CodeRoad's testing tools. See react-app-rewired for details on how these modifications are implemented: https://github.com/timarney/react-app-rewired. |
| 67 | + |
| 68 | +If you're done with your CodeRoad course, feel free to revert back. Just follow the instructions below: |
| 69 | + |
| 70 | +1. delete the following file: `config.overrides.js` |
| 71 | +2. Remove unused packages by running the following: |
| 72 | + |
| 73 | +```shell |
| 74 | +npm uninstall react-app-rewired jest-tap-reporter |
| 75 | +``` |
| 76 | + |
| 77 | +3. Revert the scripts in package.json back to their original formats: |
| 78 | + |
| 79 | +```json |
| 80 | + "scripts": { |
| 81 | + "start": "react-scripts start", |
| 82 | + "build": "react-scripts build", |
| 83 | + "test": "react-scripts test" |
| 84 | + }, |
| 85 | +``` |
| 86 | + |
| 87 | +4. Remove the following lines from your `.gitignore` file. These should be enabled when publishing or sharing your application. |
| 88 | + |
| 89 | +```ms |
| 90 | +package-lock.json |
| 91 | +yarn.lock |
| 92 | +``` |
| 93 | + |
| 94 | +Happy hacking! |
0 commit comments