Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Use npm instead of yarn #92

Merged
merged 1 commit into from
Jun 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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