Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e0321de5ea |
No files matched your search
+46
-12
@@ -1,19 +1,53 @@
|
|||||||
name: Unit Test
|
name: CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches:
|
||||||
pull_request:
|
- main
|
||||||
branches: [main]
|
|
||||||
|
|
||||||
permissions: {}
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
unit-test:
|
lint:
|
||||||
uses: sxzz/workflows/.github/workflows/unit-test.yml@main
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: pnpm/action-setup@v4
|
||||||
|
with:
|
||||||
|
run_install: false
|
||||||
|
- uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: lts/*
|
||||||
|
cache: pnpm
|
||||||
|
|
||||||
# coverage:
|
- run: pnpm i -g @antfu/ni
|
||||||
# uses: sxzz/workflows/.github/workflows/coverage.yml@main
|
- run: nci
|
||||||
# needs: unit-test
|
- run: nr lint
|
||||||
# permissions:
|
- run: nr typecheck
|
||||||
# id-token: write
|
|
||||||
|
test:
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
node: [lts/*]
|
||||||
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
|
fail-fast: false
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: pnpm/action-setup@v4
|
||||||
|
with:
|
||||||
|
run_install: false
|
||||||
|
- name: Set node ${{ matrix.node }}
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node }}
|
||||||
|
cache: pnpm
|
||||||
|
|
||||||
|
- run: pnpm i -g @antfu/ni
|
||||||
|
- run: nci
|
||||||
|
- run: nr build
|
||||||
|
- run: nr test
|
||||||
@@ -7,7 +7,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
uses: sxzz/workflows/.github/workflows/release.yml@main
|
uses: sxzz/workflows/.github/workflows/release.yml@v1
|
||||||
with:
|
with:
|
||||||
publish: true
|
publish: true
|
||||||
permissions:
|
permissions:
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
.cache
|
.cache
|
||||||
.DS_Store
|
.DS_Store
|
||||||
.githooks
|
|
||||||
.idea
|
.idea
|
||||||
*.log
|
*.log
|
||||||
*.tgz
|
*.tgz
|
||||||
@@ -9,5 +8,4 @@ dist
|
|||||||
lib-cov
|
lib-cov
|
||||||
logs
|
logs
|
||||||
node_modules
|
node_modules
|
||||||
skills/npm-*
|
|
||||||
temp
|
temp
|
||||||
+6
-18
@@ -2,7 +2,7 @@
|
|||||||
"name": "pkg-placeholder",
|
"name": "pkg-placeholder",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"packageManager": "pnpm@11.15.1",
|
"packageManager": "pnpm@10.33.1",
|
||||||
"description": "_description_",
|
"description": "_description_",
|
||||||
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@@ -27,23 +27,12 @@
|
|||||||
"build": "tsdown",
|
"build": "tsdown",
|
||||||
"dev": "tsdown --watch",
|
"dev": "tsdown --watch",
|
||||||
"lint": "eslint",
|
"lint": "eslint",
|
||||||
"prepack": "nr build",
|
"prepublishOnly": "nr build",
|
||||||
"release": "bumpp",
|
"release": "bumpp",
|
||||||
"start": "tsx src/index.ts",
|
"start": "tsx src/index.ts",
|
||||||
"test": "pnpm run build && vitest",
|
"test": "pnpm run build && vitest",
|
||||||
"typecheck": "tsc",
|
"typecheck": "tsc",
|
||||||
"prepare": "git config core.hooksPath .githooks && simple-git-hooks && skills-npm"
|
"prepare": "simple-git-hooks"
|
||||||
},
|
|
||||||
"scripts-info": {
|
|
||||||
"build": "Build the library for publishing",
|
|
||||||
"dev": "Rebuild on change during development",
|
|
||||||
"lint": "Check for code style issues",
|
|
||||||
"prepack": "Build before publishing",
|
|
||||||
"release": "Bump version and publish a release",
|
|
||||||
"start": "Run the entry file",
|
|
||||||
"test": "Run the test suite",
|
|
||||||
"typecheck": "Check types",
|
|
||||||
"prepare": "Set up git hooks and skills"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@antfu/eslint-config": "catalog:cli",
|
"@antfu/eslint-config": "catalog:cli",
|
||||||
@@ -52,10 +41,9 @@
|
|||||||
"@types/node": "catalog:types",
|
"@types/node": "catalog:types",
|
||||||
"bumpp": "catalog:cli",
|
"bumpp": "catalog:cli",
|
||||||
"eslint": "catalog:cli",
|
"eslint": "catalog:cli",
|
||||||
"nano-staged": "catalog:cli",
|
"lint-staged": "catalog:cli",
|
||||||
"publint": "catalog:cli",
|
"publint": "catalog:cli",
|
||||||
"simple-git-hooks": "catalog:cli",
|
"simple-git-hooks": "catalog:cli",
|
||||||
"skills-npm": "catalog:cli",
|
|
||||||
"tsdown": "catalog:cli",
|
"tsdown": "catalog:cli",
|
||||||
"tsdown-stale-guard": "catalog:testing",
|
"tsdown-stale-guard": "catalog:testing",
|
||||||
"tsnapi": "catalog:testing",
|
"tsnapi": "catalog:testing",
|
||||||
@@ -65,9 +53,9 @@
|
|||||||
"vitest": "catalog:testing"
|
"vitest": "catalog:testing"
|
||||||
},
|
},
|
||||||
"simple-git-hooks": {
|
"simple-git-hooks": {
|
||||||
"pre-commit": "pnpm i --frozen-lockfile --ignore-scripts --offline && pnpm run build && npx nano-staged"
|
"pre-commit": "pnpm i --frozen-lockfile --ignore-scripts --offline && pnpm run build && npx lint-staged"
|
||||||
},
|
},
|
||||||
"nano-staged": {
|
"lint-staged": {
|
||||||
"*": "eslint --fix"
|
"*": "eslint --fix"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Generated
+1141
-1675
File diff suppressed because it is too large.
Load diff
+16
-21
@@ -1,9 +1,5 @@
|
|||||||
catalogMode: prefer
|
catalogMode: prefer
|
||||||
ignoreWorkspaceRootCheck: true
|
ignoreWorkspaceRootCheck: true
|
||||||
minimumReleaseAgeExclude:
|
|
||||||
- '@types/node@25.9.0'
|
|
||||||
- tsx@4.22.2
|
|
||||||
- bumpp@12.0.0
|
|
||||||
shellEmulator: true
|
shellEmulator: true
|
||||||
trustPolicy: no-downgrade
|
trustPolicy: no-downgrade
|
||||||
|
|
||||||
@@ -15,26 +11,25 @@ packages:
|
|||||||
|
|
||||||
catalogs:
|
catalogs:
|
||||||
cli:
|
cli:
|
||||||
'@antfu/eslint-config': ^9.1.0
|
'@antfu/eslint-config': ^8.2.0
|
||||||
'@antfu/ni': ^30.2.0
|
'@antfu/ni': ^30.1.0
|
||||||
bumpp: ^12.0.0
|
bumpp: ^11.0.1
|
||||||
eslint: ^10.7.0
|
eslint: ^10.2.1
|
||||||
nano-staged: ^1.0.2
|
lint-staged: ^16.4.0
|
||||||
publint: ^0.3.21
|
publint: ^0.3.18
|
||||||
simple-git-hooks: ^2.13.1
|
simple-git-hooks: ^2.13.1
|
||||||
skills-npm: ^1.2.0
|
tsdown: ^0.21.10
|
||||||
tsdown: ^0.22.12
|
tsx: ^4.21.0
|
||||||
tsx: ^4.23.1
|
|
||||||
typescript: ^6.0.3
|
typescript: ^6.0.3
|
||||||
vite: ^8.1.5
|
vite: ^8.0.9
|
||||||
inlined:
|
inlined:
|
||||||
'@antfu/utils': ^9.3.0
|
'@antfu/utils': ^9.3.0
|
||||||
testing:
|
testing:
|
||||||
tsdown-stale-guard: ^0.1.3
|
tsdown-stale-guard: ^0.1.1
|
||||||
tsnapi: ^1.0.0
|
tsnapi: ^0.3.2
|
||||||
vitest: ^4.1.10
|
vitest: ^4.1.5
|
||||||
types:
|
types:
|
||||||
'@types/node': ^26.1.1
|
'@types/node': ^25.6.0
|
||||||
allowBuilds:
|
onlyBuiltDependencies:
|
||||||
esbuild: true
|
- esbuild
|
||||||
simple-git-hooks: true
|
- simple-git-hooks
|
||||||
Reference in new issue
Block a user