Skip to content

Commit

Permalink
Merge pull request #92 from gyng/npm
Browse files Browse the repository at this point in the history
feat: Use npm instead of yarn
  • Loading branch information
gyng committed Jun 25, 2023
2 parents da4517f + ab53d54 commit d9da711
Show file tree
Hide file tree
Showing 9 changed files with 7,301 additions and 4,464 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ WORKDIR /usr/src/app
# && apk upgrade \
# && apk add --no-cache git

COPY package.json yarn.lock /usr/src/app/
RUN yarn install --frozen-lockfile \
&& yarn check --integrity \
&& yarn cache clean
COPY package.json package-lock.json /usr/src/app/
RUN npm ci \
&& npm audit signatures \
&& npm cache clean --force

ARG NODE_ENV=production
COPY . /usr/src/app
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2021 Ng Guoyou
Copyright 2021-2023 Ng Guoyou

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# ts-library-quickstart

[Example API documentation](https://gyng.github.io/ts-library-quickstart/)
Quickstart for esbuild library projects.

Quickstart for esbuild library projects. Depends on `yarn`.
[Example API documentation](https://gyng.github.io/ts-library-quickstart/)

- Typescript
- Testing with jest
Expand All @@ -15,10 +15,10 @@ Quickstart for esbuild library projects. Depends on `yarn`.

See `scripts` in `package.json` for more scripts.

- `yarn d` watch and build
- `yarn t:watch` watch and test
- `yarn lint`
- `yarn build`
- `npm run d` watch and build
- `npm run t:watch` watch and test
- `npm run lint`
- `npm run build`

Build targets are set in `esbuild.js`.

Expand Down
2 changes: 1 addition & 1 deletion do-build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
set -euo pipefail

yarn build
npm run build
2 changes: 1 addition & 1 deletion do-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
set -euo pipefail

mkdir -p docs/api
yarn doc:gen
npm run doc:gen
ls docs/api
8 changes: 4 additions & 4 deletions do-test.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/sh
set -euo pipefail

yarn build
npm run build
# Enable if desired
# yarn audit
yarn lint
yarn test:coverage
# npm audit
npm run lint
npm run test:coverage
Loading

0 comments on commit d9da711

Please sign in to comment.