File tree 8 files changed +18144
-13287
lines changed
8 files changed +18144
-13287
lines changed Original file line number Diff line number Diff line change 4
4
/node_modules
5
5
/.pnp
6
6
.pnp.js
7
+ .yarn
7
8
8
9
# testing
9
10
/coverage
Original file line number Diff line number Diff line change
1
+ v16.15.1
Original file line number Diff line number Diff line change
1
+ nodeLinker : node-modules
Original file line number Diff line number Diff line change 19
19
- [ React Router 6] ( https://reactrouter.com/docs/en/v6/api )
20
20
- Sentry
21
21
22
- ### First steps
22
+ ### Prerequisites
23
+
24
+ This project uses the following packages
23
25
24
- ** Set node version**
26
+ - [ nvm] ( https://github.com/nvm-sh/nvm ) (Node version manager)
27
+ - [ Just] ( https://just.systems/man/en/chapter_4.html ) (For justfile usage)
25
28
29
+ Run the following command to install the node version declared in the ` .nvmrc `
30
+ file fo this project:
31
+
32
+ ``` shell
33
+ nvm install
26
34
```
27
- nvm use
35
+
36
+ Finally, enable [ corepack] ( https://github.com/nodejs/corepack ) so the correct
37
+ version of yarn is used.
38
+
39
+ ``` shell
40
+ just corepack-enable
28
41
```
29
42
43
+ ### First steps
44
+
30
45
** Install dependencies**
31
46
32
- ```
33
- yarn
47
+ ``` shell
48
+ just install-deps
34
49
```
35
50
36
- ** Create Graphql schema **
51
+ ** Run project **
37
52
38
- ```
39
- yarn graphql
53
+ ``` shell
54
+ just dev
40
55
```
41
56
42
- ** Run project **
57
+ ** See a list of available commands **
43
58
59
+ ``` shell
60
+ just
44
61
```
45
- yarn start
62
+
63
+ ** Proxy commands through nvm**
64
+
65
+ ``` shell
66
+ just nvm-exec " yarn add @front_web_mrmilu/hooks"
46
67
```
47
68
48
69
### Environment variables
Original file line number Diff line number Diff line change
1
+ default :
2
+ just --list
3
+
4
+ # Enables corepack in node
5
+ corepack-enable :
6
+ ./ nvm_exec.sh corepack enable
7
+
8
+ # Installs project package.json dependencies
9
+ install-deps :
10
+ ./ nvm_exec.sh yarn
11
+
12
+ # Starts React development server
13
+ dev :
14
+ ./ nvm_exec.sh yarn start
15
+
16
+ # Builds React application
17
+ build :
18
+ ./ nvm_exec.sh yarn build
19
+
20
+ # Downloads schema and generates corresponding ts types
21
+ graphql-codegen :
22
+ ./ nvm_exec.sh yarn graphql
23
+
24
+ # Runs E2E tests
25
+ e2e-run :
26
+ ./ nvm_exec.sh yarn e2e:run
27
+
28
+ # Opens E2E tests UI
29
+ e2e-open :
30
+ ./ nvm_exec.sh yarn e2e:open
31
+
32
+ # Proxy comand through nvm
33
+ nvm-exec command :
34
+ ./ nvm_exec.sh {{ command}}
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ . ~ /.nvm/nvm.sh
3
+ nvm exec $@
Original file line number Diff line number Diff line change 28
28
},
29
29
"dependencies" : {
30
30
"@apollo/client" : " 3.6.6" ,
31
- "@front_web_mrmilu/hooks" : " mrmilu/front_web_mrmilu#@front_web_mrmilu/hooks-v1.2 .0" ,
32
- "@front_web_mrmilu/network" : " mrmilu/front_web_mrmilu#@front_web_mrmilu/network-v1.2 .0" ,
33
- "@front_web_mrmilu/services" : " mrmilu/front_web_mrmilu#@front_web_mrmilu/services-v1.2 .0" ,
34
- "@front_web_mrmilu/utils" : " mrmilu/front_web_mrmilu#@front_web_mrmilu/utils-v1.2 .0" ,
31
+ "@front_web_mrmilu/hooks" : " ^1.4 .0" ,
32
+ "@front_web_mrmilu/network" : " 1.4 .0" ,
33
+ "@front_web_mrmilu/services" : " 1.4 .0" ,
34
+ "@front_web_mrmilu/utils" : " 1.4 .0" ,
35
35
"@reduxjs/toolkit" : " 1.8.2" ,
36
36
"@sentry/react" : " 7.1.1" ,
37
37
"@sentry/tracing" : " 7.1.1" ,
97
97
},
98
98
"resolutions" : {
99
99
"@types/react" : " 18.x"
100
- }
100
+ },
101
+ "packageManager" : " yarn@3.2.1"
101
102
}
You can’t perform that action at this time.
0 commit comments