You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can do exact same command with npm, or [install yarn](https://classic.yarnpkg.com/en/docs/install#mac-stable) easily if you have interest.
76
+
77
+
### `yarn` or `yarn install`
78
+
Install all Node Package Modules that depending this project.
75
79
76
80
### `yarn start`
77
81
@@ -81,35 +85,39 @@ and then you'll got todo app as same as Demo. let's modify under the `src/` code
81
85
82
86
### `yarn build`
83
87
84
-
After that You'll get bundled and optimization stuff in `build` directory.
85
-
Also you can run production build with `serve` local webserver modules.
88
+
Production build that bundled optimization stuff in `build` directory.
86
89
87
-
```bash
88
-
yarn global add serve
89
-
serve -s build
90
-
```
90
+
### `yarn serve`
91
91
92
-
Official Docs: https://create-react-app.dev/docs/getting-started#npm-run-build-or-yarn-build
92
+
Run production build that generated by `yarnbuild`.
93
93
94
94
### `yarn lint`
95
95
96
96
[ESLint](https://eslint.org/) is at the top.
97
-
And setup [TypeScript ESLint](https://github.com/typescript-eslint/typescript-eslint), integrating [Prettier](https://prettier.io/) as a [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier).
97
+
And setup [TypeScript ESLint](https://github.com/typescript-eslint/typescript-eslint), integrating [Prettier](https://prettier.io/) as a [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier).
98
+
Here is [final config list](https://github.com/laststance/eslint-config-typescript-react-pro#explicit-all-rule-set-).
98
99
99
100
### `yarn lint:fix`
100
101
101
-
run wtih eslint --fix option.
102
+
Run wtih eslint --fix option.
103
+
Actually frequently use for perform [Prettier](https://prettier.io/) formatting.
102
104
103
105
### `yarn typecheck`
104
106
105
-
While developing and building, Babel stop transpile with TS error messages.
106
-
I can't find way static typecheck with babel,
107
-
so I'm using original TypeScript via npm and specified `tsc --noEmit` compile option that doesn't generate compiled code.
107
+
Check TypeScript error whole porject.
108
108
109
109
### `yarn test`
110
110
111
-
[Jest](https://jestjs.io/) is all-in-one test-runner built in [React App](https://facebook.github.io/create-react-app/) and covers function-level unit testing to component-behavior-level integration testing.
112
-
The Repo use to [react-testing-library](https://github.com/testing-library/react-testing-library) for component integration testing.
111
+
Run [Jest](https://jestjs.io/).
112
+
Using [react-testing-library](https://github.com/testing-library/react-testing-library) for component integration testing.
0 commit comments