Skip to content
Draft
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
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,16 @@ jobs:

- name: Install dependencies
run: pnpm install --frozen-lockfile
env:
VP_TOKEN: ${{ secrets.VP_TOKEN }}

- name: Run lint
run: pnpm run lint

- name: Check dedupe
run: pnpm dedupe --check
env:
VP_TOKEN: ${{ secrets.VP_TOKEN }}

- name: Run typecheck
run: pnpm run typecheck
Expand Down Expand Up @@ -157,6 +161,8 @@ jobs:

- name: Install dependencies
run: pnpm install --frozen-lockfile
env:
VP_TOKEN: ${{ secrets.VP_TOKEN }}

- name: Run tests
run: pnpm run ci --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
Expand Down Expand Up @@ -201,6 +207,8 @@ jobs:

- name: Install dependencies
run: pnpm install --frozen-lockfile
env:
VP_TOKEN: ${{ secrets.VP_TOKEN }}

- name: Run tests
run: pnpm run --filter=./tools/egg-bin ci
Expand Down Expand Up @@ -245,6 +253,8 @@ jobs:

- name: Install dependencies
run: pnpm install --frozen-lockfile
env:
VP_TOKEN: ${{ secrets.VP_TOKEN }}

- name: Run tests
run: pnpm run --filter=./tools/scripts ci
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ jobs:

- name: Install dependencies
run: pnpm install --frozen-lockfile
env:
VP_TOKEN: ${{ secrets.VP_TOKEN }}

- name: Configure Git
run: |
Expand Down
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@voidzero-dev:registry=https://npm.pkg.github.com/
//npm.pkg.github.com/:_authToken=${VP_TOKEN}
24 changes: 0 additions & 24 deletions .oxfmtrc.json

This file was deleted.

11 changes: 0 additions & 11 deletions .oxlintrc.json

This file was deleted.

5 changes: 2 additions & 3 deletions examples/helloworld-commonjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,14 @@
"egg": "workspace:*"
},
"devDependencies": {
"@eggjs/bin": "workspace:*",
"oxlint": "catalog:"
"@eggjs/bin": "workspace:*"
},
"scripts": {
"dev": "egg-bin dev",
"debug": "egg-bin debug",
"test": "egg-bin test",
"cov": "egg-bin cov",
"lint": "oxlint",
"lint": "vite lint",
"ci": "pnpm run lint && pnpm run cov",
"start": "egg-scripts start --daemon",
"stop": "egg-scripts stop"
Expand Down
4 changes: 2 additions & 2 deletions examples/helloworld-tegg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"scripts": {
"dev": "egg-bin dev",
"debug": "egg-bin debug",
"test": "vitest run",
"cov": "vitest run --coverage",
"test": "vite test run",
"cov": "vite test run --coverage",
"lint": "eslint . --ext .ts",
"ci": "pnpm run lint && pnpm run cov",
"prepublishOnly": "pnpm run build",
Expand Down
4 changes: 2 additions & 2 deletions examples/helloworld-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"scripts": {
"dev": "egg-bin dev",
"debug": "egg-bin debug",
"test": "vitest run",
"cov": "vitest run --coverage",
"test": "vite test run",
"cov": "vite test run --coverage",
"lint": "eslint . --ext .ts",
"ci": "pnpm run lint && pnpm run cov",
"prepublishOnly": "pnpm run build",
Expand Down
20 changes: 9 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,31 +19,29 @@
"js-yaml": "catalog:",
"lint-staged": "catalog:",
"mocha": "catalog:",
"oxfmt": "catalog:",
"oxlint": "catalog:",
"oxlint-tsgolint": "catalog:",
"prettier": "catalog:",
"rimraf": "catalog:",
"semver": "catalog:",
"tsx": "catalog:",
"typescript": "catalog:",
"urllib": "catalog:",
"vitest": "catalog:"
"vitest": "catalog:",
"@voidzero-dev/vite-plus": "catalog:"
},
"scripts": {
"clean": "pnpm -r --parallel run clean && rimraf packages/*/dist plugins/*/dist tools/*/dist examples/*/dist tegg/**/dist **/*/*.tsbuildinfo",
"build": "pnpm clean && pnpm -r run build",
"build:parallel": "pnpm clean && pnpm -r --parallel run build",
"lint": "oxlint --type-aware",
"fmt": "oxfmt",
"lint": "vite lint --type-aware",
"fmt": "vite fmt",
"typecheck": "pnpm clean && pnpm -r run typecheck",
"typecheck:parallel": "pnpm clean && pnpm -r --parallel run typecheck",
"fmtcheck": "oxfmt --check .",
"fmtcheck": "vite fmt --check .",
"pretest": "pnpm run clean && pnpm -r run pretest",
"test": "vitest run --bail 1 --retry 2",
"test": "vite test run --bail 1 --retry 2",
"test:cov": "pnpm run test --coverage",
"preci": "pnpm -r --parallel run pretest",
"ci": "vitest run --bail 1 --retry 2 --coverage --testTimeout 20000 --hookTimeout 20000",
"ci": "vite test run --bail 1 --retry 2 --coverage --testTimeout 20000 --hookTimeout 20000",
"postci": "pnpm run example:test:all",
"site:dev": "pnpm --filter=site run dev",
"site:build": "pnpm --filter=site run build",
Expand All @@ -70,8 +68,8 @@
"prettier --ignore-unknown --write"
],
"*.{ts,mts,cts,js,mjs,cjs,jsx,tsx}": [
"oxfmt",
"oxlint --type-aware --fix"
"vite fmt",
"vite lint --type-aware --fix"
]
},
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions packages/cluster/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
"description": "cluster manager for egg",
"scripts": {
"build": "tsdown && rimraf dist *.tsbuildinfo && tsc -p tsconfig.build.json",
"lint": "oxlint",
"lint": "vite lint",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"test": "vite test run",
"prepublishOnly": "pnpm run build"
},
"files": [
Expand Down
7 changes: 3 additions & 4 deletions packages/cookies/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"cookies": "catalog:",
"keygrip": "catalog:",
"@eggjs/tsconfig": "workspace:*",
"oxlint": "catalog:",
"typescript": "catalog:",
"tsdown": "catalog:"
},
Expand All @@ -37,10 +36,10 @@
"scripts": {
"build": "tsdown && rimraf dist *.tsbuildinfo && tsc -p tsconfig.build.json",
"typecheck": "tsc --noEmit",
"lint": "oxlint --type-aware",
"lint": "vite lint --type-aware",
"lint:fix": "npm run lint -- --fix",
"test": "npm run lint:fix && vitest run",
"ci": "vitest run --coverage",
"test": "npm run lint:fix && vite test run",
"ci": "vite test run --coverage",
"prepublishOnly": "pnpm run build"
},
"type": "module",
Expand Down
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
"description": "A core plugin framework based on @eggjs/koa",
"scripts": {
"build": "tsdown && rimraf dist *.tsbuildinfo && tsc -p tsconfig.build.json",
"lint": "oxlint",
"lint": "vite lint",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"test": "vite test run",
"prepublishOnly": "pnpm run build"
},
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions packages/egg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,10 @@
"typescript": "catalog:"
},
"scripts": {
"lint": "oxlint",
"lint": "vite lint",
"typecheck": "tsc --noEmit",
"build": "tsdown && rimraf dist *.tsbuildinfo && tsc -p tsconfig.build.json && cp src/config/favicon.png dist/config/favicon.png",
"test": "vitest run",
"test": "vite test run",
"prepublishOnly": "pnpm run build"
},
"repository": {
Expand Down
5 changes: 2 additions & 3 deletions packages/errors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,14 @@
"scripts": {
"build": "tsdown",
"typecheck": "tsc --noEmit",
"lint": "oxlint --type-aware",
"test": "vitest run",
"lint": "vite lint --type-aware",
"test": "vite test run",
"prepublishOnly": "pnpm run build"
},
"dependencies": {},
"devDependencies": {
"@eggjs/tsconfig": "workspace:*",
"@types/node": "catalog:",
"oxlint": "catalog:",
"tsdown": "catalog:",
"typescript": "catalog:",
"vitest": "catalog:"
Expand Down
5 changes: 2 additions & 3 deletions packages/extend2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"scripts": {
"build": "tsdown && rimraf dist *.tsbuildinfo && tsc -p tsconfig.build.json",
"typecheck": "tsc --noEmit",
"lint": "oxlint",
"test": "vitest run",
"lint": "vite lint",
"test": "vite test run",
"prepublishOnly": "pnpm run build"
},
"keywords": [
Expand All @@ -33,7 +33,6 @@
"homepage": "https://github.com/eggjs/egg/tree/next/packages/extend2",
"devDependencies": {
"@eggjs/tsconfig": "workspace:*",
"oxlint": "catalog:",
"tsdown": "catalog:",
"typescript": "catalog:",
"vitest": "catalog:"
Expand Down
8 changes: 3 additions & 5 deletions packages/koa-static-cache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@
"@types/fs-readdir-recursive": "catalog:",
"@types/mime-types": "catalog:",
"@types/node": "catalog:",
"oxlint": "catalog:",
"oxlint-tsgolint": "catalog:",
"rimraf": "catalog:",
"tsdown": "catalog:",
"typescript": "catalog:",
Expand All @@ -49,10 +47,10 @@
"scripts": {
"build": "tsdown && rimraf dist *.tsbuildinfo && tsc -p tsconfig.build.json",
"typecheck": "tsc --noEmit",
"lint": "oxlint --type-aware",
"lint": "vite lint --type-aware",
"lint:fix": "npm run lint -- --fix",
"test": "npm run lint:fix && vitest run",
"ci": "vitest run --coverage",
"test": "npm run lint:fix && vite test run",
"ci": "vite test run --coverage",
"prepublishOnly": "npm run build"
},
"type": "module",
Expand Down
4 changes: 2 additions & 2 deletions packages/koa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
"scripts": {
"build": "tsdown && rimraf dist *.tsbuildinfo && tsc -p tsconfig.build.json",
"typecheck": "tsc --noEmit",
"lint": "oxlint --type-aware",
"test": "vitest run",
"lint": "vite lint --type-aware",
"test": "vite test run",
"prepublishOnly": "pnpm run build"
},
"repository": {
Expand Down
5 changes: 2 additions & 3 deletions packages/path-matching/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
"scripts": {
"build": "tsdown",
"typecheck": "tsc --noEmit",
"lint": "oxlint --type-aware",
"test": "vitest run",
"lint": "vite lint --type-aware",
"test": "vite test run",
"prepublishOnly": "npm run build"
},
"dependencies": {
Expand All @@ -53,7 +53,6 @@
"devDependencies": {
"@eggjs/tsconfig": "workspace:*",
"@types/node": "catalog:",
"oxlint": "catalog:",
"path-to-regexp-v8": "npm:path-to-regexp@^8.3.0",
"rimraf": "catalog:",
"tsdown": "catalog:",
Expand Down
4 changes: 2 additions & 2 deletions packages/router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
"vitest": "catalog:"
},
"scripts": {
"lint": "oxlint --type-aware",
"lint": "vite lint --type-aware",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"test": "vite test run",
"build": "tsdown && rimraf dist *.tsbuildinfo && tsc -p tsconfig.build.json",
"prepublishOnly": "npm run build",
"prebench": "npm run build",
Expand Down
4 changes: 2 additions & 2 deletions packages/supertest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
},
"scripts": {
"build": "tsdown && rimraf dist *.tsbuildinfo && tsc -p tsconfig.build.json",
"test": "vitest run",
"test": "vite test run",
"typecheck": "tsc --noEmit",
"lint": "oxlint --type-aware",
"lint": "vite lint --type-aware",
"prepublishOnly": "pnpm run build"
}
}
4 changes: 2 additions & 2 deletions packages/tsconfig/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"tsconfig.json"
],
"scripts": {
"lint": "oxlint",
"test": "vitest run"
"lint": "vite lint",
"test": "vite test run"
},
"author": "killagu <[email protected]>",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
"description": "Utils for all egg projects",
"scripts": {
"build": "tsdown && rimraf dist *.tsbuildinfo && tsc -p tsconfig.build.json",
"lint": "oxlint --type-aware",
"lint": "vite lint --type-aware",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"test": "vite test run",
"prepublishOnly": "pnpm run build"
},
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions plugins/development/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@
"node": ">=22.18.0"
},
"scripts": {
"lint": "oxlint --type-aware",
"lint": "vite lint --type-aware",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"test": "vite test run",
"build": "tsdown && rimraf dist *.tsbuildinfo && tsc -p tsconfig.build.json",
"prepublishOnly": "pnpm run build"
},
Expand Down
Loading
Loading