2018-09-19 15:35:38 +00:00
|
|
|
{
|
|
|
|
"private": true,
|
2023-05-18 08:31:03 +00:00
|
|
|
"version": "3.3.4",
|
2023-06-15 07:44:47 +00:00
|
|
|
"packageManager": "pnpm@8.6.2",
|
2023-02-03 10:12:56 +00:00
|
|
|
"type": "module",
|
2018-09-19 15:35:38 +00:00
|
|
|
"scripts": {
|
2023-02-03 10:12:56 +00:00
|
|
|
"dev": "node scripts/dev.js",
|
|
|
|
"build": "node scripts/build.js",
|
|
|
|
"build-dts": "tsc -p tsconfig.build.json && rollup -c rollup.dts.config.js",
|
2023-08-21 03:33:51 +00:00
|
|
|
"size": "run-s \"size-*\" && tsx scripts/usage-size.ts",
|
|
|
|
"size-global": "node scripts/build.js vue runtime-dom -f global -p --size",
|
|
|
|
"size-esm-runtime": "node scripts/build.js vue -f esm-bundler-runtime",
|
|
|
|
"size-esm": "node scripts/build.js runtime-dom runtime-core reactivity shared -f esm-bundler",
|
2023-02-02 08:36:07 +00:00
|
|
|
"check": "tsc --incremental --noEmit",
|
2022-10-04 06:27:54 +00:00
|
|
|
"lint": "eslint --cache --ext .ts packages/*/{src,__tests__}/**.ts",
|
2023-08-11 09:30:04 +00:00
|
|
|
"format": "prettier --write --cache \"**/*.[tj]s?(x)\"",
|
|
|
|
"format-check": "prettier --check --cache \"**/*.[tj]s?(x)\"",
|
2023-01-26 14:53:39 +00:00
|
|
|
"test": "vitest",
|
|
|
|
"test-unit": "vitest -c vitest.unit.config.ts",
|
2023-02-03 10:12:56 +00:00
|
|
|
"test-e2e": "node scripts/build.js vue -f global -d && vitest -c vitest.e2e.config.ts",
|
2023-02-03 07:48:12 +00:00
|
|
|
"test-dts": "run-s build-dts test-dts-only",
|
2023-02-03 09:10:31 +00:00
|
|
|
"test-dts-only": "tsc -p ./packages/dts-test/tsconfig.test.json",
|
2023-01-26 14:53:39 +00:00
|
|
|
"test-coverage": "vitest -c vitest.unit.config.ts --coverage",
|
2023-02-03 10:12:56 +00:00
|
|
|
"release": "node scripts/release.js",
|
2020-02-06 15:22:16 +00:00
|
|
|
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
|
2023-02-03 10:12:56 +00:00
|
|
|
"dev-esm": "node scripts/dev.js -if esm-bundler-runtime",
|
2021-09-23 18:46:16 +00:00
|
|
|
"dev-compiler": "run-p \"dev template-explorer\" serve",
|
2022-11-14 02:22:20 +00:00
|
|
|
"dev-sfc": "run-s dev-sfc-prepare dev-sfc-run",
|
2023-02-03 10:12:56 +00:00
|
|
|
"dev-sfc-prepare": "node scripts/pre-dev-sfc.js || npm run build-compiler-cjs",
|
2022-11-14 02:22:20 +00:00
|
|
|
"dev-sfc-serve": "vite packages/sfc-playground --host",
|
|
|
|
"dev-sfc-run": "run-p \"dev compiler-sfc -f esm-browser\" \"dev vue -if esm-bundler-runtime\" \"dev server-renderer -if esm-bundler\" dev-sfc-serve",
|
2020-02-06 15:22:16 +00:00
|
|
|
"serve": "serve",
|
2023-09-06 10:31:10 +00:00
|
|
|
"open": "open http://localhost:3000/packages/template-explorer/local.html",
|
2022-11-14 02:22:20 +00:00
|
|
|
"build-sfc-playground": "run-s build-compiler-cjs build-runtime-esm build-ssr-esm build-sfc-playground-self",
|
2023-02-03 10:12:56 +00:00
|
|
|
"build-compiler-cjs": "node scripts/build.js compiler reactivity-transform shared -af cjs",
|
|
|
|
"build-runtime-esm": "node scripts/build.js runtime reactivity shared -af esm-bundler && node scripts/build.js vue -f esm-bundler-runtime && node scripts/build.js vue -f esm-browser-runtime",
|
|
|
|
"build-ssr-esm": "node scripts/build.js compiler-sfc server-renderer -f esm-browser",
|
2022-11-14 02:14:12 +00:00
|
|
|
"build-sfc-playground-self": "cd packages/sfc-playground && npm run build",
|
2023-07-09 04:52:13 +00:00
|
|
|
"preinstall": "npx only-allow pnpm",
|
2022-11-09 13:14:59 +00:00
|
|
|
"postinstall": "simple-git-hooks"
|
2019-11-02 02:54:01 +00:00
|
|
|
},
|
2022-11-09 13:14:59 +00:00
|
|
|
"simple-git-hooks": {
|
2023-02-02 08:36:07 +00:00
|
|
|
"pre-commit": "pnpm lint-staged && pnpm check",
|
2023-02-03 10:12:56 +00:00
|
|
|
"commit-msg": "node scripts/verifyCommit.js"
|
2018-09-19 15:37:18 +00:00
|
|
|
},
|
|
|
|
"lint-staged": {
|
2022-11-09 13:14:59 +00:00
|
|
|
"*.{js,json}": [
|
2020-06-16 16:09:20 +00:00
|
|
|
"prettier --write"
|
2018-09-19 15:37:18 +00:00
|
|
|
],
|
2019-10-14 19:07:43 +00:00
|
|
|
"*.ts?(x)": [
|
2020-06-10 20:54:23 +00:00
|
|
|
"eslint",
|
2020-06-16 16:09:20 +00:00
|
|
|
"prettier --parser=typescript --write"
|
2018-09-19 15:37:18 +00:00
|
|
|
]
|
|
|
|
},
|
2020-03-25 13:44:19 +00:00
|
|
|
"engines": {
|
2023-09-06 10:39:01 +00:00
|
|
|
"node": ">=16.14.0"
|
2020-03-25 13:44:19 +00:00
|
|
|
},
|
2018-09-19 15:35:38 +00:00
|
|
|
"devDependencies": {
|
2023-03-28 09:31:23 +00:00
|
|
|
"@babel/parser": "^7.21.3",
|
|
|
|
"@babel/types": "^7.21.3",
|
2023-02-02 08:20:32 +00:00
|
|
|
"@rollup/plugin-alias": "^4.0.3",
|
2023-03-28 01:52:06 +00:00
|
|
|
"@rollup/plugin-commonjs": "^24.0.1",
|
|
|
|
"@rollup/plugin-json": "^6.0.0",
|
2022-11-14 03:48:52 +00:00
|
|
|
"@rollup/plugin-node-resolve": "^15.0.1",
|
2023-03-28 01:52:06 +00:00
|
|
|
"@rollup/plugin-replace": "^5.0.2",
|
|
|
|
"@rollup/plugin-terser": "^0.4.0",
|
2020-11-17 20:58:46 +00:00
|
|
|
"@types/hash-sum": "^1.0.0",
|
2021-07-29 16:52:23 +00:00
|
|
|
"@types/node": "^16.4.7",
|
2023-09-06 10:41:24 +00:00
|
|
|
"@typescript-eslint/parser": "^6.6.0",
|
2023-09-06 21:19:44 +00:00
|
|
|
"@vitest/coverage-istanbul": "^0.34.3",
|
2022-11-14 03:48:52 +00:00
|
|
|
"@vue/consolidate": "0.17.3",
|
2020-06-16 16:09:20 +00:00
|
|
|
"chalk": "^4.1.0",
|
2020-01-02 23:07:42 +00:00
|
|
|
"conventional-changelog-cli": "^2.0.31",
|
2019-12-10 23:24:59 +00:00
|
|
|
"enquirer": "^2.3.2",
|
2023-01-26 05:33:28 +00:00
|
|
|
"esbuild": "^0.17.4",
|
2023-05-01 03:04:59 +00:00
|
|
|
"esbuild-plugin-polyfill-node": "^0.2.0",
|
2023-09-06 21:05:43 +00:00
|
|
|
"eslint": "^8.48.0",
|
|
|
|
"eslint-plugin-jest": "^27.2.3",
|
2023-02-04 03:59:42 +00:00
|
|
|
"estree-walker": "^2.0.2",
|
2020-06-16 16:09:20 +00:00
|
|
|
"execa": "^4.0.2",
|
2023-09-06 17:12:48 +00:00
|
|
|
"jsdom": "^22.1.0",
|
2023-09-06 10:41:24 +00:00
|
|
|
"lint-staged": "^14.0.1",
|
2021-11-02 05:56:17 +00:00
|
|
|
"lodash": "^4.17.15",
|
2023-03-28 01:52:06 +00:00
|
|
|
"magic-string": "^0.30.0",
|
2023-08-21 03:33:51 +00:00
|
|
|
"markdown-table": "^3.0.3",
|
2022-01-17 23:57:00 +00:00
|
|
|
"marked": "^4.0.10",
|
2018-09-19 15:35:38 +00:00
|
|
|
"minimist": "^1.2.0",
|
2020-02-06 15:22:16 +00:00
|
|
|
"npm-run-all": "^4.1.5",
|
2023-09-06 21:05:43 +00:00
|
|
|
"prettier": "^3.0.3",
|
2023-08-21 03:33:51 +00:00
|
|
|
"pretty-bytes": "^6.1.1",
|
2022-11-14 03:48:52 +00:00
|
|
|
"pug": "^3.0.1",
|
2023-09-06 17:12:48 +00:00
|
|
|
"puppeteer": "~21.1.1",
|
2023-07-11 09:52:43 +00:00
|
|
|
"rollup": "^3.26.0",
|
2023-03-23 09:11:35 +00:00
|
|
|
"rollup-plugin-dts": "^5.3.0",
|
2023-02-02 08:20:32 +00:00
|
|
|
"rollup-plugin-esbuild": "^5.0.0",
|
2023-03-28 01:52:06 +00:00
|
|
|
"rollup-plugin-polyfill-node": "^0.12.0",
|
2020-06-16 16:09:20 +00:00
|
|
|
"semver": "^7.3.2",
|
2023-09-06 10:31:10 +00:00
|
|
|
"serve": "^14.2.1",
|
2023-09-06 21:05:43 +00:00
|
|
|
"simple-git-hooks": "^2.9.0",
|
2023-08-21 03:33:51 +00:00
|
|
|
"terser": "^5.19.2",
|
2021-11-02 05:56:17 +00:00
|
|
|
"todomvc-app-css": "^2.3.0",
|
2023-03-23 09:11:35 +00:00
|
|
|
"tslib": "^2.5.0",
|
2023-08-21 03:33:51 +00:00
|
|
|
"tsx": "^3.12.7",
|
2023-07-11 10:44:00 +00:00
|
|
|
"typescript": "^5.1.6",
|
2023-04-21 06:41:41 +00:00
|
|
|
"vite": "^4.3.0",
|
2023-09-06 21:19:44 +00:00
|
|
|
"vitest": "^0.34.3"
|
2018-09-19 15:35:38 +00:00
|
|
|
}
|
|
|
|
}
|