2019-04-30 11:11:25 +08:00
|
|
|
{
|
2022-06-01 15:06:00 +08:00
|
|
|
"name": "aisuda",
|
|
|
|
"workspaces": [
|
2022-06-02 13:28:23 +08:00
|
|
|
"packages/amis-formula",
|
|
|
|
"packages/amis-core",
|
|
|
|
"packages/amis-ui",
|
2023-03-20 20:09:13 +08:00
|
|
|
"packages/amis",
|
2023-03-20 21:40:40 +08:00
|
|
|
"packages/amis-editor-core",
|
2023-11-23 19:57:10 +08:00
|
|
|
"packages/amis-editor",
|
|
|
|
"packages/amis-theme-editor-helper"
|
2022-06-01 15:06:00 +08:00
|
|
|
],
|
2019-11-12 16:10:51 +08:00
|
|
|
"scripts": {
|
2022-11-02 22:45:12 +08:00
|
|
|
"fis3-serve": "fis3 server start --www ./public --port 8888 --no-daemon --no-browse",
|
|
|
|
"fis3": "concurrently --restart-tries -1 npm:fis3-serve npm:fis3-dev",
|
|
|
|
"fis3-stop": "fis3 server stop",
|
|
|
|
"start": "vite",
|
|
|
|
"fis3-dev": "fis3 release -cwd ./public",
|
2022-06-02 10:00:09 +08:00
|
|
|
"deploy-gh-page": "sh ./deploy-gh-pages.sh",
|
2022-06-14 18:05:57 +08:00
|
|
|
"build": "npm run build --workspaces",
|
2023-07-13 14:13:24 +08:00
|
|
|
"build-esm": "npm run build-esm --workspaces",
|
2022-06-06 15:27:25 +08:00
|
|
|
"test": "npm test --workspaces",
|
2022-06-27 18:36:01 +08:00
|
|
|
"update-snapshot": "npm run update-snapshot --workspaces",
|
2022-06-06 15:31:34 +08:00
|
|
|
"prepare": "husky install",
|
2022-11-02 18:39:08 +08:00
|
|
|
"coverage": "jest --coverage --collectCoverage=v8",
|
2022-06-07 17:12:49 +08:00
|
|
|
"version": "lerna version",
|
2022-07-11 17:22:51 +08:00
|
|
|
"release": "npm run build --workspaces && lerna publish from-package --registry=https://registry.npmjs.org --ignore-scripts",
|
2022-09-06 17:51:36 +08:00
|
|
|
"revision": "ts-node ./scripts/generate-revision.ts",
|
2023-09-19 11:45:02 +08:00
|
|
|
"getChangeLog": "ts-node ./scripts/getChangeLog",
|
2023-05-05 17:13:06 +08:00
|
|
|
"stylelint": "npx stylelint 'packages/**/*.scss'",
|
2024-01-10 18:41:12 +08:00
|
|
|
"typecheck": "tsc --noEmit",
|
|
|
|
"publish": "npx publish"
|
2022-06-01 21:35:49 +08:00
|
|
|
},
|
2023-04-19 16:21:19 +08:00
|
|
|
"husky": {
|
|
|
|
"hooks": {
|
|
|
|
"pre-commit": "lint-staged"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"lint-staged": {
|
|
|
|
"{packages,examples}/**/{src,examples}/**/**/*.{tsx,jsx,ts}": [
|
|
|
|
"prettier --write"
|
|
|
|
]
|
|
|
|
},
|
2022-06-09 11:48:58 +08:00
|
|
|
"dependencies": {
|
2023-11-13 20:13:16 +08:00
|
|
|
"path-to-regexp": "^6.2.0",
|
2022-06-14 11:53:36 +08:00
|
|
|
"postcss": "^8.4.14",
|
2024-05-09 12:07:58 +08:00
|
|
|
"qs": "6.9.7"
|
2022-06-09 11:48:58 +08:00
|
|
|
},
|
2022-06-01 21:35:49 +08:00
|
|
|
"devDependencies": {
|
2023-07-18 12:24:45 +08:00
|
|
|
"@babel/generator": "^7.22.9",
|
|
|
|
"@babel/parser": "^7.22.7",
|
|
|
|
"@babel/traverse": "^7.22.8",
|
|
|
|
"@babel/types": "^7.22.5",
|
2023-12-14 19:36:37 +08:00
|
|
|
"@fortawesome/fontawesome-free": "^6.1.1",
|
2022-11-03 12:12:14 +08:00
|
|
|
"@rollup/plugin-replace": "^5.0.1",
|
2024-02-02 13:55:23 +08:00
|
|
|
"@swc/core": "^1.3.107",
|
|
|
|
"@swc/helpers": "^0.5.3",
|
|
|
|
"@swc/jest": "^0.2.34",
|
2022-11-02 22:45:12 +08:00
|
|
|
"@types/express": "^4.17.14",
|
2022-06-06 15:14:53 +08:00
|
|
|
"@types/jest": "^28.1.0",
|
2022-11-02 22:45:12 +08:00
|
|
|
"@types/js-yaml": "^4.0.5",
|
|
|
|
"@types/marked": "^4.0.7",
|
|
|
|
"@types/prismjs": "^1.26.0",
|
2023-03-21 14:04:40 +08:00
|
|
|
"@types/react": "^18.0.24",
|
2022-11-04 15:44:26 +08:00
|
|
|
"@types/react-dom": "^18.0.8",
|
2024-04-16 16:39:12 +08:00
|
|
|
"@types/react-syntax-highlighter": "^15.5.11",
|
2022-11-02 22:45:12 +08:00
|
|
|
"@vitejs/plugin-react": "^2.2.0",
|
2024-05-29 18:59:47 +08:00
|
|
|
"amis-publish": "^1.0.5",
|
2022-11-04 15:44:26 +08:00
|
|
|
"copy-to-clipboard": "3.3.1",
|
2022-09-27 10:20:24 +08:00
|
|
|
"echarts": "5.4.0",
|
2022-11-02 22:45:12 +08:00
|
|
|
"express": "^4.18.2",
|
2022-06-01 21:35:49 +08:00
|
|
|
"fis-optimizer-terser": "^1.0.1",
|
2022-09-06 11:21:44 +08:00
|
|
|
"fis-parser-sass": "^1.2.0",
|
2022-06-01 21:35:49 +08:00
|
|
|
"fis-parser-svgr": "^1.0.0",
|
2022-09-15 19:16:44 +08:00
|
|
|
"fis3": "^3.5.0-beta.2",
|
2022-06-01 21:35:49 +08:00
|
|
|
"fis3-deploy-skip-packed": "0.0.5",
|
|
|
|
"fis3-hook-commonjs": "^0.1.31",
|
|
|
|
"fis3-hook-node_modules": "^2.3.1",
|
|
|
|
"fis3-hook-relative": "^2.0.3",
|
|
|
|
"fis3-packager-deps-pack": "^0.1.2",
|
|
|
|
"fis3-parser-typescript": "^1.4.0",
|
|
|
|
"fis3-postpackager-loader": "^2.1.12",
|
|
|
|
"fis3-prepackager-stand-alone-pack": "^1.0.0",
|
|
|
|
"fis3-preprocessor-js-require-css": "^0.1.3",
|
2022-06-02 23:40:23 +08:00
|
|
|
"fis3-preprocessor-js-require-file": "^0.1.3",
|
2024-04-16 16:39:12 +08:00
|
|
|
"github-markdown-css": "^5.5.1",
|
2022-06-06 15:31:34 +08:00
|
|
|
"husky": "^8.0.0",
|
2022-09-27 10:20:24 +08:00
|
|
|
"jest": "^29.0.3",
|
|
|
|
"jest-environment-jsdom": "^29.0.3",
|
2022-11-02 22:45:12 +08:00
|
|
|
"js-yaml": "^4.1.0",
|
2023-11-13 20:13:16 +08:00
|
|
|
"katex": "^0.16.9",
|
2023-05-15 17:54:58 +08:00
|
|
|
"lerna": "^6.6.2",
|
2023-07-18 12:24:45 +08:00
|
|
|
"lint-staged": "^12.1.2",
|
2022-11-02 22:45:12 +08:00
|
|
|
"magic-string": "^0.26.7",
|
|
|
|
"marked": "^4.2.1",
|
2022-11-04 15:44:26 +08:00
|
|
|
"monaco-editor": "0.30.1",
|
2023-12-14 14:29:50 +08:00
|
|
|
"plugin-react-i18n": "1.0.5",
|
2023-03-22 12:33:31 +08:00
|
|
|
"postcss-scss": "^4.0.6",
|
2022-11-02 22:45:12 +08:00
|
|
|
"prismjs": "^1.29.0",
|
2022-07-29 18:09:07 +08:00
|
|
|
"react": "^18.2.0",
|
|
|
|
"react-dom": "^18.2.0",
|
2024-04-16 16:39:12 +08:00
|
|
|
"react-markdown": "^9.0.1",
|
2022-11-04 15:44:26 +08:00
|
|
|
"react-overlays": "5.1.1",
|
2024-04-16 16:39:12 +08:00
|
|
|
"react-syntax-highlighter": "^15.5.0",
|
|
|
|
"remark-gfm": "^4.0.0",
|
2024-03-12 15:52:07 +08:00
|
|
|
"rollup": "^2.79.1",
|
2022-11-02 22:45:12 +08:00
|
|
|
"rollup-pluginutils": "^2.8.2",
|
|
|
|
"setprototypeof": "^1.2.0",
|
2022-09-27 10:20:24 +08:00
|
|
|
"ts-jest": "^29.0.2",
|
2023-06-08 13:46:21 +08:00
|
|
|
"vite": "^4.3.9",
|
2022-11-02 22:45:12 +08:00
|
|
|
"vite-plugin-monaco-editor": "^1.1.0",
|
|
|
|
"vite-plugin-svgr": "^2.2.2",
|
2022-11-04 15:44:26 +08:00
|
|
|
"zrender": "^5.3.2"
|
2022-06-02 10:00:09 +08:00
|
|
|
},
|
|
|
|
"jest": {
|
2022-06-02 23:40:23 +08:00
|
|
|
"verbose": true,
|
2022-06-02 10:00:09 +08:00
|
|
|
"testEnvironment": "jsdom",
|
2023-06-16 21:46:02 +08:00
|
|
|
"coverageReporters": [
|
|
|
|
"text",
|
|
|
|
"cobertura"
|
|
|
|
],
|
2022-06-02 10:00:09 +08:00
|
|
|
"collectCoverageFrom": [
|
2022-06-02 23:40:23 +08:00
|
|
|
"packages/*/src/**/*"
|
2022-06-02 10:00:09 +08:00
|
|
|
],
|
|
|
|
"moduleFileExtensions": [
|
|
|
|
"ts",
|
|
|
|
"tsx",
|
|
|
|
"js"
|
|
|
|
],
|
2024-02-02 13:55:23 +08:00
|
|
|
"transform": {
|
|
|
|
"^.+\\.(t|j)sx?$": "@swc/jest"
|
|
|
|
},
|
2022-06-02 10:00:09 +08:00
|
|
|
"setupFiles": [
|
|
|
|
"jest-canvas-mock"
|
|
|
|
],
|
|
|
|
"testRegex": "/.*\\.test\\.(ts|tsx|js)$",
|
|
|
|
"moduleNameMapper": {
|
|
|
|
"\\.(css|less|sass|scss)$": "<rootDir>/__mocks__/styleMock.js",
|
|
|
|
"\\.(svg)$": "<rootDir>/__mocks__/svgMock.js",
|
2022-06-02 23:40:23 +08:00
|
|
|
"\\.svg\\.js$": "<rootDir>/__mocks__/svgJsMock.js",
|
|
|
|
"^amis\\-ui$": "<rootDir>/packages/amis-ui/src/index.tsx",
|
|
|
|
"^amis\\-core$": "<rootDir>/packages/amis-core/src/index.tsx",
|
|
|
|
"^amis\\-formula$": "<rootDir>/packages/amis-formula/src/index.ts",
|
2023-07-03 14:31:27 +08:00
|
|
|
"^office\\-viewer$": "<rootDir>/packages/office-viewer/src/index.ts",
|
2022-06-02 23:40:23 +08:00
|
|
|
"^amis$": "<rootDir>/packages/amis/src/index.tsx"
|
2022-06-02 10:00:09 +08:00
|
|
|
},
|
|
|
|
"setupFilesAfterEnv": [
|
|
|
|
"<rootDir>/packages/amis-core/__tests__/jest.setup.js"
|
|
|
|
],
|
|
|
|
"testPathIgnorePatterns": [
|
|
|
|
"/node_modules/",
|
|
|
|
"/.rollup.cache/"
|
2022-09-30 18:09:35 +08:00
|
|
|
],
|
|
|
|
"snapshotFormat": {
|
|
|
|
"escapeString": false,
|
|
|
|
"printBasicPrototype": false
|
|
|
|
}
|
2019-11-12 16:10:51 +08:00
|
|
|
}
|
2024-05-09 12:07:58 +08:00
|
|
|
}
|