Skip to content

Commit

Permalink
chore: use pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
liuchuzhang committed Sep 13, 2022
1 parent c1fcadf commit 79f1dac
Show file tree
Hide file tree
Showing 6 changed files with 4,233 additions and 3,260 deletions.
6 changes: 3 additions & 3 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ name: default

steps:
- name: test
image: 18-alpine3.15
image: liuchuzhang/node-pnpm
commands:
- yarn
- yarn test
- pnpm install
- pnpm run test

- name: docker-build
image: plugins/docker
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@

FROM node:18-alpine3.15
FROM liuchuzhang/node-pnpm:latest
ENV NODE_ENV=production

WORKDIR /app

COPY ["package.json", "yarn.lock*", "./"]
COPY ["package.json", "pnpm-lock.yaml*", "./"]

RUN yarn
RUN pnpm intall

COPY . .

EXPOSE 4001
CMD ["yarn", "server"]
CMD ["pnpm", "run", "server"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
## Usage

```shell
yarn && yarn dev
pnpm install && pnpm run dev
```
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"@swc-node/jest": "^1.5.2",
"@swc-node/register": "^1.5.1",
"@types/jest": "^29.0.0",
"@types/node": "^18.7.17",
"jest": "^29.0.2",
"nodemon": "^2.0.19"
}
Expand Down
Loading

0 comments on commit 79f1dac

Please sign in to comment.