Skip to content
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
1 change: 0 additions & 1 deletion .husky/pre-commit

This file was deleted.

7 changes: 0 additions & 7 deletions .oxfmtrc.jsonc

This file was deleted.

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

This file was deleted.

1 change: 1 addition & 0 deletions .vite-hooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
vp staged
3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["VoidZero.vite-plus-extension-pack"]
}
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"editor.defaultFormatter": "oxc.oxc-vscode",
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "file",
"editor.codeActionsOnSave": {
"source.fixAll.oxc": "explicit"
}
}
2 changes: 1 addition & 1 deletion __test__/getCommand.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { it, describe, expect } from 'vitest'
import { it, describe, expect } from 'vite-plus/test'
import getCommand from '../utils/getCommand'

describe('getCommand', () => {
Expand Down
2 changes: 1 addition & 1 deletion __test__/locale.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { describe, it, expect } from 'vitest'
import { describe, it, expect } from 'vite-plus/test'
import { resolve } from 'node:path'
import { readdirSync } from 'node:fs'
import en from '../locales/en-US.json'
Expand Down
2 changes: 1 addition & 1 deletion __test__/sortDependencies.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { it, describe, expect } from 'vitest'
import { it, describe, expect } from 'vite-plus/test'
import sortDependencies from '../utils/sortDependencies'

describe('sortDependencies', () => {
Expand Down
23 changes: 7 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@
"provenance": true
},
"scripts": {
"prepare": "husky",
"format": "oxfmt",
"format-check": "oxfmt --check",
"lint": "oxlint . --fix --ignore-pattern playground",
"prepare": "vp config",
"format": "vp fmt",
"format-check": "vp fmt --check",
"lint": "vp lint . --fix --ignore-pattern playground",
"build": "rolldown -c rolldown.config.ts",
"snapshot": "zx ./scripts/snapshot.mjs",
"pretest": "pnpm run build && pnpm run snapshot",
"test": "zx ./scripts/test.mjs",
"test:unit": "vitest",
"test:unit": "vp test",
"preversion": "git fetch && git status -uno | grep -q 'Your branch is up to date'",
"postversion": "zx ./scripts/postversion.mjs",
"prepublishOnly": "pnpm run build"
Expand All @@ -49,22 +49,13 @@
"@types/prompts": "^2.4.9",
"@vue/tsconfig": "^0.9.0",
"ejs": "^3.1.10",
"husky": "^9.1.7",
"lint-staged": "^16.3.3",
"oxfmt": "^0.40.0",
"oxlint": "~1.55.0",
"picocolors": "^1.1.1",
"rolldown": "1.0.0-rc.8",
"rollup-plugin-license": "^3.7.0",
"vitest": "^4.0.18",
"vite-plus": "catalog:",
"vitest": "catalog:",
"zx": "^8.8.5"
},
"lint-staged": {
"*.{js,ts,vue,json}": [
"oxfmt --no-error-on-unmatched-pattern",
"oxlint --fix"
]
},
"engines": {
"node": "^20.19.0 || >=22.12.0"
},
Expand Down
Loading