Skip to content

Commit

Permalink
[migrate] replace Yarn with PNPM to reduce Disk Usage
Browse files Browse the repository at this point in the history
[optimize] upgrade Upstream packages
  • Loading branch information
TechQuery committed Apr 4, 2023
1 parent 4040981 commit 45e0b18
Show file tree
Hide file tree
Showing 8 changed files with 6,219 additions and 4,159 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,27 @@ on:
tags:
- v*
jobs:
Build-and-Publish:
Test-Build-Publish-Deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
with:
version: 7
- uses: actions/setup-node@v3
with:
node-version: 14
registry-url: https://registry.npmjs.org
cache: yarn
- name: Install packages
run: yarn
cache: pnpm
- name: Install Dependencies
run: pnpm i --frozen-lockfile

- name: Build & Publish
run: yarn publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Update document
- name: Deploy document
uses: peaceiris/actions-gh-pages@v3
with:
publish_dir: ./docs
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ build/Release

# Dependency
package-lock.json
yarn.lock
node_modules/
jspm_packages/

Expand Down
4 changes: 2 additions & 2 deletions ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
A Web server which is easy to use in Command-line or as a forked Child process based on [Koa][1].

[![NPM Dependency](https://david-dm.org/TechQuery/KoApache.svg)][2]
[![CI & CD](https://github.com/TechQuery/KoApache/workflows/CI%20&%20CD/badge.svg)][3]
[![CI & CD](https://github.com/TechQuery/KoApache/actions/workflows/main.yml/badge.svg)][3]

[![NPM](https://nodei.co/npm/koapache.png?downloads=true&downloadRank=true&stars=true)][4]

Expand Down Expand Up @@ -70,6 +70,6 @@ https://www.npmjs.com/package/koapache?activeTab=dependencies

[1]: http://koajs.com/
[2]: https://david-dm.org/TechQuery/KoApache
[3]: https://github.com/TechQuery/KoApache/actions
[3]: https://github.com/TechQuery/KoApache/actions/workflows/main.yml
[4]: https://nodei.co/npm/koapache/
[5]: https://tech-query.me/KoApache/
44 changes: 24 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "koapache",
"version": "2.2.1",
"version": "2.2.2",
"description": "A Web server which is easy to use in Command-line or as a forked Child process based on Koa",
"keywords": [
"Web",
Expand All @@ -26,6 +26,9 @@
"bin": {
"web-server": "dist/index.js"
},
"engines": {
"node": ">=14"
},
"prettier": {
"tabWidth": 4,
"trailingComma": "none",
Expand All @@ -50,34 +53,35 @@
"start": "npm run docs && node dist/ docs/ -o"
},
"dependencies": {
"@koa/cors": "^3.1.0",
"@tech_query/node-toolkit": "^1.1.0",
"@koa/cors": "^4.0.0",
"@tech_query/node-toolkit": "^1.2.0",
"commander-jsx": "^0.6.1",
"form-data": "^4.0.0",
"internal-ip": "^6.2.0",
"koa": "^2.13.4",
"koa-body": "^4.2.0",
"koa": "^2.14.1",
"koa-body": "^6.0.1",
"koa-logger": "^3.2.1",
"koa-static": "^5.0.0",
"open": "^7.4.2"
"open": "^8.4.2"
},
"devDependencies": {
"@types/jest": "^27.4.0",
"@types/koa": "^2.13.4",
"@types/jest": "^29.5.0",
"@types/koa": "^2.13.6",
"@types/koa-logger": "^3.1.2",
"@types/koa-static": "^4.0.2",
"@types/koa__cors": "^3.1.1",
"@typescript-eslint/eslint-plugin": "^5.9.0",
"@typescript-eslint/parser": "^5.9.0",
"eslint": "^8.6.0",
"eslint-config-prettier": "^8.3.0",
"husky": "^7.0.4",
"jest": "^27.4.5",
"lint-staged": "^12.1.5",
"prettier": "^2.5.1",
"ts-jest": "^27.1.2",
"typedoc": "^0.22.10",
"typescript": "^4.5.4"
"@types/koa__cors": "^4.0.0",
"@types/node": "^16.18.23",
"@typescript-eslint/eslint-plugin": "^5.57.1",
"@typescript-eslint/parser": "^5.57.1",
"eslint": "^8.37.0",
"eslint-config-prettier": "^8.8.0",
"husky": "^8.0.3",
"jest": "^29.5.0",
"lint-staged": "^13.2.0",
"prettier": "^2.8.7",
"ts-jest": "^29.1.0",
"typedoc": "^0.23.28",
"typescript": "~5.0.3"
},
"koapache": {
"proxy": {
Expand Down

0 comments on commit 45e0b18

Please sign in to comment.