File tree 7 files changed +7193
-6253
lines changed
7 files changed +7193
-6253
lines changed Original file line number Diff line number Diff line change 8
8
runs-on : ubuntu-latest
9
9
steps :
10
10
- uses : actions/checkout@v4
11
+ - uses : pnpm/action-setup@v2
11
12
- uses : actions/setup-node@v4
12
13
with :
13
- cache : yarn
14
+ cache : pnpm
14
15
node-version-file : .nvmrc
15
- - run : yarn --frozen-lockfile
16
- - run : yarn run format:check
17
- - run : yarn run lint
18
- - run : yarn run typecheck
19
- - run : yarn run build
20
- - run : yarn run check-size-limits
16
+ - run : pnpm install --frozen-lockfile
17
+ - run : pnpm run format:check
18
+ - run : pnpm run lint
19
+ - run : pnpm run typecheck
20
+ - run : pnpm run build
21
+ - run : pnpm run check-size-limits
Original file line number Diff line number Diff line change 1
1
/build
2
+ /pnpm-lock.yaml
Original file line number Diff line number Diff line change @@ -4,16 +4,16 @@ RUN apk add tini
4
4
5
5
WORKDIR /home/node
6
6
7
- COPY package.json yarn. lock ./
8
- RUN yarn --frozen-lockfile
7
+ COPY package.json pnpm- lock.yaml ./
8
+ RUN pnpm install --frozen-lockfile
9
9
10
10
COPY src ./src/
11
11
COPY public ./public/
12
12
COPY .browserslistrc babel.config.cjs postcss.config.cjs webpack.config.js ./
13
- RUN yarn run build
13
+ RUN pnpm run build
14
14
15
15
ENV NODE_ENV=production PORT=8080
16
16
EXPOSE $PORT
17
17
USER node
18
18
ENTRYPOINT ["tini" , "--" ]
19
- CMD ["yarn " , "start" ]
19
+ CMD ["pnpm " , "start" ]
Original file line number Diff line number Diff line change 5
5
Install packages:
6
6
7
7
``` sh
8
- yarn
8
+ pnpm install
9
9
```
10
10
11
11
## Development
12
12
13
13
Launch app in dev mode:
14
14
15
15
``` sh
16
- yarn run dev
16
+ pnpm run dev
17
17
```
18
18
19
19
## Production
20
20
21
21
Build assets for production:
22
22
23
23
``` sh
24
- yarn run build
24
+ pnpm run build
25
25
```
26
26
27
27
After that, you'll find all build artifacts in the build directory.
28
28
29
29
Then you need to start the built server:
30
30
31
31
``` sh
32
- yarn start
32
+ pnpm start
33
33
```
34
34
35
35
# Docker
Original file line number Diff line number Diff line change 14
14
"check-size-limits" : " size-limit --highlight-less" ,
15
15
"start" : " node --enable-source-maps ."
16
16
},
17
+ "packageManager" :
" [email protected] +sha256.2df78e65d433d7693b9d3fbdaf431b2d96bb4f96a2ffecd51a50efe16e50a6a8" ,
17
18
"dependencies" : {
18
19
"@babel/runtime" : " ^7.7.4" ,
19
20
"@remix-run/router" : " ^1.0.3" ,
40
41
"@faergeek/eslint-config" : " ^5.0.0" ,
41
42
"@faergeek/make-webpack-config" : " ^22.0.0" ,
42
43
"@size-limit/file" : " ^11.0.0" ,
44
+ "@types/body-parser" : " ^1.19.5" ,
43
45
"@types/express" : " ^4.17.12" ,
44
46
"@types/morgan" : " ^1.9.3" ,
47
+ "@types/react" : " ^18.2.48" ,
45
48
"@types/react-dom" : " ^18.0.11" ,
46
49
"@types/serialize-javascript" : " ^5.0.2" ,
47
50
"browserslist" : " ^4.16.6" ,
You can’t perform that action at this time.
0 commit comments