mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-10-07 12:10:02 +08:00
78 lines
2.7 KiB
JSON
78 lines
2.7 KiB
JSON
{
|
|
"version": "1.0.0-rc.6",
|
|
"name": "tmagic",
|
|
"private": true,
|
|
"scripts": {
|
|
"bootstrap": "pnpm i && pnpm prepare && cd runtime/vue2 && npm i",
|
|
"clean:top": "rimraf */**/dist */dist coverage dwt*",
|
|
"clean:modules": "rimraf node_modules **/node_modules **/**/node_modules",
|
|
"clean:all": "pnpm clean:top && pnpm clean:modules",
|
|
"lint": "eslint . --ext .js,.vue,.ts,.tsx",
|
|
"lint-fix": "eslint . --fix --ext .vue,.js,.ts,.tsx",
|
|
"playground": "pnpm --filter \"runtime-vue3\" --filter \"tmagic-playground\" dev",
|
|
"playground:vue2": "pnpm --filter \"runtime-vue2\" --filter \"tmagic-playground\" dev:vue2",
|
|
"playground:react": "pnpm --filter \"runtime-react\" --filter \"tmagic-playground\" dev:react",
|
|
"build": "pnpm --filter \"@tmagic/*\" --filter \"runtime-*\" --filter \"tmagic-playground\" build",
|
|
"postbuild": "shx mkdir playground/dist/runtime && shx cp -r runtime/vue2/dist ./playground/dist/runtime/vue2 && shx cp -r runtime/vue3/dist ./playground/dist/runtime/vue3 && cp -r runtime/react/dist ./playground/dist/runtime/react",
|
|
"docs": "cd docs && npm run doc:dev",
|
|
"page": "cd page && vite",
|
|
"page-vue2": "cd page-vue2 && vite",
|
|
"page-react": "cd page-react && vite",
|
|
"reinstall": "pnpm clean:all && pnpm bootstrap",
|
|
"test": "vitest run",
|
|
"coverage": "vitest run --coverage",
|
|
"prepare": "husky install",
|
|
"commit": "git-cz"
|
|
},
|
|
"engines": {
|
|
"node": ">=14"
|
|
},
|
|
"workspaces": [
|
|
"packages/code-editor",
|
|
"packages/editor",
|
|
"packages/form",
|
|
"packages/stage",
|
|
"packages/utils"
|
|
],
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/Tencent/tmagic-editor.git"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.18.0",
|
|
"@commitlint/cli": "^16.2.3",
|
|
"@commitlint/config-conventional": "^16.2.1",
|
|
"@types/node": "^15.12.4",
|
|
"@typescript-eslint/eslint-plugin": "^4.28.0",
|
|
"@typescript-eslint/parser": "^4.28.0",
|
|
"@vitejs/plugin-vue": "^1.2.3",
|
|
"c8": "^7.11.3",
|
|
"cz-conventional-changelog": "^3.3.0",
|
|
"eslint": "^7.29.0",
|
|
"eslint-config-tencent": "^1.0.1",
|
|
"eslint-plugin-import": "^2.23.4",
|
|
"eslint-plugin-prettier": "^3.4.0",
|
|
"eslint-plugin-simple-import-sort": "^7.0.0",
|
|
"eslint-plugin-vue": "^7.11.1",
|
|
"husky": "^7.0.0",
|
|
"jsdom": "^19.0.0",
|
|
"lint-staged": "^11.0.1",
|
|
"prettier": "^2.3.1",
|
|
"recast": "^0.20.4",
|
|
"rimraf": "^3.0.2",
|
|
"shx": "^0.3.4",
|
|
"typescript": "^4.3.4",
|
|
"vite": "^2.3.7",
|
|
"vitest": "^0.14.1"
|
|
},
|
|
"config": {
|
|
"commitizen": {
|
|
"path": "./node_modules/cz-conventional-changelog"
|
|
}
|
|
},
|
|
"lint-staged": {
|
|
"*.{js,ts,vue}": "eslint --fix",
|
|
"*.scss": "prettier --write"
|
|
}
|
|
}
|