8
8
9
9
1 .
10
10
11
- ``` bash
11
+ ``` sh
12
12
$ nvm use || nvm install
13
13
$ yarn
14
14
```
@@ -21,7 +21,7 @@ import { Compiler, WebpackPluginInstance as Plugin } from 'webpack';
21
21
22
22
## Running the app
23
23
24
- ``` bash
24
+ ``` sh
25
25
# development
26
26
$ yarn start
27
27
@@ -34,7 +34,7 @@ $ yarn start:prod
34
34
35
35
## Test
36
36
37
- ``` bash
37
+ ``` sh
38
38
# unit tests
39
39
$ yarn test
40
40
@@ -49,15 +49,15 @@ $ yarn test:cov
49
49
50
50
1 .
51
51
52
- ``` bash
52
+ ``` sh
53
53
$ nvm use node
54
54
```
55
55
56
56
### [ NestJs and Fastify] ( https://docs.nestjs.com/techniques/performance )
57
57
58
58
1 .
59
59
60
- ``` bash
60
+ ``` sh
61
61
$ npm i -g @nestjs/cli
62
62
$ nest new myapp
63
63
$ cd myapp
@@ -90,7 +90,7 @@ bootstrap();
90
90
91
91
1 .
92
92
93
- ``` bash
93
+ ``` sh
94
94
$ yarn add next react react-dom
95
95
$ yarn add -D @types/react-dom @types/react
96
96
$ mkdir -p src/client/pages
@@ -142,7 +142,7 @@ import { Compiler, WebpackPluginInstance as Plugin } from 'webpack';
142
142
143
143
1 .
144
144
145
- ``` bash
145
+ ``` sh
146
146
$ yarn add -D eslint-plugin-react eslint-import-resolver-typescript eslint-config-airbnb eslint-plugin-jsx-a11y eslint-plugin-import eslint-plugin-react-hooks
147
147
```
148
148
@@ -246,7 +246,7 @@ module.exports = {
246
246
247
247
1 .
248
248
249
- ``` bash
249
+ ``` sh
250
250
$ yarn remove ts-jest
251
251
$ yarn add -D @next/env @babel/core babel-jest
252
252
```
@@ -295,7 +295,7 @@ module.exports = {
295
295
296
296
5 . create symbolic link of ` babel.config.js ` to ` src/client/babel.config.js `
297
297
298
- ``` bash
298
+ ``` sh
299
299
$ ln -sf " $( pwd) /babel.config.js" " $( pwd) /src/client"
300
300
```
301
301
@@ -313,7 +313,7 @@ loadEnvConfig(join(__dirname, '../src/client'));
313
313
314
314
1 .
315
315
316
- ``` bash
316
+ ``` sh
317
317
$ yarn add @emotion/react
318
318
$ yarn add -D @emotion/babel-plugin @emotion/eslint-plugin @emotion/jest
319
319
```
@@ -377,8 +377,11 @@ expect.extend(matchers);
377
377
378
378
### [ Redux-Toolkit] ( https://redux-toolkit.js.org/ )
379
379
380
- 1 . ``` sh
381
- yarn add react-redux @reduxjs/toolkit next-redux-wrapper
382
- yarn add -D @types/react-redux @types/webpack-env
383
- ```
380
+ 1 .
381
+
382
+ ``` sh
383
+ $ yarn add react-redux @reduxjs/toolkit next-redux-wrapper
384
+ $ yarn add -D @types/react-redux @types/webpack-env
385
+ ```
386
+
384
387
2 . create custom ` rootReducer ` , ` makeStore ` , ` wrapper ` similar to ones in files ` src/features/redux/reducers.tsx ` and ` src/features/redux/store.tsx ` and apply them in ` src/pages/_app.tsx `
0 commit comments