|
|
|
@ -55,37 +55,38 @@
|
|
|
|
|
"url": "https://github.com/vuejs/vitepress/issues"
|
|
|
|
|
},
|
|
|
|
|
"scripts": {
|
|
|
|
|
"dev": "rimraf dist && run-s dev-shared dev-start",
|
|
|
|
|
"dev-start": "run-p dev-client dev-node dev-watch",
|
|
|
|
|
"dev-client": "tsc --sourcemap -w -p src/client",
|
|
|
|
|
"dev-node": "DEV=true pnpm build-node -w",
|
|
|
|
|
"dev-shared": "node scripts/copyShared",
|
|
|
|
|
"dev-watch": "node scripts/watchAndCopy",
|
|
|
|
|
"build": "run-s build-prepare build-client build-node",
|
|
|
|
|
"build-prepare": "rimraf dist && node scripts/copyShared",
|
|
|
|
|
"build-client": "vue-tsc --noEmit -p src/client && tsc -p src/client && node scripts/copyClient",
|
|
|
|
|
"build-node": "tsc -p src/node --noEmit && rollup --config rollup.config.ts --configPlugin esbuild",
|
|
|
|
|
"dev": "rimraf dist && run-s dev:shared dev:start",
|
|
|
|
|
"dev:start": "run-p dev:client dev:node dev:watch",
|
|
|
|
|
"dev:client": "tsc --sourcemap -w -p src/client",
|
|
|
|
|
"dev:node": "DEV=true pnpm build:node -w",
|
|
|
|
|
"dev:shared": "node scripts/copyShared",
|
|
|
|
|
"dev:watch": "node scripts/watchAndCopy",
|
|
|
|
|
"build": "run-s build:prepare build:client build:node",
|
|
|
|
|
"build:prepare": "rimraf dist && node scripts/copyShared",
|
|
|
|
|
"build:client": "vue-tsc --noEmit -p src/client && tsc -p src/client && node scripts/copyClient",
|
|
|
|
|
"build:node": "tsc -p src/node --noEmit && rollup --config rollup.config.ts --configPlugin esbuild",
|
|
|
|
|
"test": "run-p --aggregate-output test:unit test:e2e test:init",
|
|
|
|
|
"test:unit": "vitest run -r __tests__/unit",
|
|
|
|
|
"test:unit:watch": "vitest -r __tests__/unit",
|
|
|
|
|
"test:e2e": "run-s test:e2e-dev test:e2e-build",
|
|
|
|
|
"test:e2e:site": "pnpm -F=tests-e2e site",
|
|
|
|
|
"test:e2e-dev": "pnpm -F=tests-e2e test",
|
|
|
|
|
"test:e2e-dev:watch": "pnpm -F=tests-e2e watch",
|
|
|
|
|
"test:e2e-build": "VITE_TEST_BUILD=1 pnpm test:e2e-dev",
|
|
|
|
|
"test:e2e-build:watch": "VITE_TEST_BUILD=1 pnpm test:e2e-dev:watch",
|
|
|
|
|
"test:init": "pnpm -F=tests-init test",
|
|
|
|
|
"test:init:watch": "pnpm -F=tests-init watch",
|
|
|
|
|
"docs": "run-p dev docs:dev",
|
|
|
|
|
"docs:dev": "wait-on -d 100 dist/node/cli.js && pnpm -F=docs dev",
|
|
|
|
|
"docs:debug": "NODE_OPTIONS='--inspect-brk' pnpm docs:dev",
|
|
|
|
|
"docs:build": "run-s build docs:build:only",
|
|
|
|
|
"docs:build:only": "pnpm -F=docs build",
|
|
|
|
|
"docs:preview": "pnpm -F=docs preview",
|
|
|
|
|
"format": "prettier --check --write .",
|
|
|
|
|
"format-fail": "prettier --check .",
|
|
|
|
|
"check": "run-s format-fail build test",
|
|
|
|
|
"test": "pnpm test-unit",
|
|
|
|
|
"test-unit": "vitest run -r __tests__/unit",
|
|
|
|
|
"test-e2e": "vitest run -r __tests__/e2e",
|
|
|
|
|
"test-e2e-build": "VITE_TEST_BUILD=1 pnpm test-e2e",
|
|
|
|
|
"test-init": "vitest run -r __tests__/init",
|
|
|
|
|
"test-init-build": "VITE_TEST_BUILD=1 pnpm test-init",
|
|
|
|
|
"debug-e2e": "DEBUG=1 vitest -r __tests__/e2e",
|
|
|
|
|
"debug-e2e-build": "VITE_TEST_BUILD=1 pnpm debug-e2e",
|
|
|
|
|
"unit-dev": "vitest -r __tests__/unit",
|
|
|
|
|
"e2e-dev": "wait-on -d 100 dist/node/cli.js && node ./bin/vitepress dev __tests__/e2e",
|
|
|
|
|
"format:fail": "prettier --check .",
|
|
|
|
|
"check": "run-s format:fail build test",
|
|
|
|
|
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
|
|
|
|
|
"release": "node scripts/release.js",
|
|
|
|
|
"docs": "run-p dev docs-dev",
|
|
|
|
|
"docs-dev": "wait-on -d 100 dist/node/cli.js && node ./bin/vitepress dev docs",
|
|
|
|
|
"docs-debug": "node --inspect-brk ./bin/vitepress dev docs",
|
|
|
|
|
"docs-build": "run-s build docs-build-only",
|
|
|
|
|
"docs-build-only": "node ./bin/vitepress build docs",
|
|
|
|
|
"docs-preview": "node ./bin/vitepress preview docs"
|
|
|
|
|
"release": "node scripts/release.js"
|
|
|
|
|
},
|
|
|
|
|
"dependencies": {
|
|
|
|
|
"@docsearch/css": "^3.5.1",
|
|
|
|
@ -99,7 +100,7 @@
|
|
|
|
|
"mark.js": "8.11.1",
|
|
|
|
|
"minisearch": "^6.1.0",
|
|
|
|
|
"shiki": "^0.14.2",
|
|
|
|
|
"vite": "^4.3.9",
|
|
|
|
|
"vite": "4.4.0-beta.2",
|
|
|
|
|
"vue": "^3.3.4"
|
|
|
|
|
},
|
|
|
|
|
"devDependencies": {
|
|
|
|
@ -136,7 +137,7 @@
|
|
|
|
|
"conventional-changelog-cli": "^2",
|
|
|
|
|
"cross-spawn": "^7.0.3",
|
|
|
|
|
"debug": "^4.3.4",
|
|
|
|
|
"esbuild": "^0.18.5",
|
|
|
|
|
"esbuild": "^0.18.7",
|
|
|
|
|
"escape-html": "^1.0.3",
|
|
|
|
|
"execa": "^7.1.1",
|
|
|
|
|
"fast-glob": "^3.2.12",
|
|
|
|
@ -168,14 +169,14 @@
|
|
|
|
|
"rollup": "^3.25.1",
|
|
|
|
|
"rollup-plugin-dts": "^5.3.0",
|
|
|
|
|
"rollup-plugin-esbuild": "^5.0.0",
|
|
|
|
|
"semver": "^7.5.2",
|
|
|
|
|
"semver": "^7.5.3",
|
|
|
|
|
"shiki-processor": "^0.1.3",
|
|
|
|
|
"simple-git-hooks": "^2.8.1",
|
|
|
|
|
"sirv": "^2.0.3",
|
|
|
|
|
"supports-color": "^9.3.1",
|
|
|
|
|
"typescript": "^5.1.3",
|
|
|
|
|
"vitest": "^0.32.2",
|
|
|
|
|
"vue-tsc": "^1.8.0",
|
|
|
|
|
"vue-tsc": "^1.8.1",
|
|
|
|
|
"wait-on": "^7.0.1"
|
|
|
|
|
},
|
|
|
|
|
"simple-git-hooks": {
|
|
|
|
|