2019-04-30 11:11:25 +08:00
|
|
|
{
|
2019-11-12 16:10:51 +08:00
|
|
|
"name": "amis",
|
2021-07-08 21:40:35 +08:00
|
|
|
"version": "1.2.1",
|
2019-11-12 16:10:51 +08:00
|
|
|
"description": "一种MIS页面生成工具",
|
|
|
|
"main": "lib/index.js",
|
|
|
|
"scripts": {
|
|
|
|
"test": "jest",
|
2021-04-16 16:09:18 +08:00
|
|
|
"coverage": "jest --coverage",
|
2021-05-27 10:35:18 +08:00
|
|
|
"serve": "fis3 server start --www ./public --port 8888 --no-daemon --no-browse",
|
|
|
|
"start": "concurrently --restart-tries -1 npm:serve npm:dev",
|
2021-04-16 16:09:18 +08:00
|
|
|
"update-snapshot": "jest --updateSnapshot",
|
2019-11-12 16:10:51 +08:00
|
|
|
"stop": "fis3 server stop",
|
|
|
|
"dev": "fis3 release -cwd ./public",
|
2020-10-26 20:05:39 +08:00
|
|
|
"publish-to-internal": "sh build.sh && sh publish.sh",
|
|
|
|
"build": "sh build.sh",
|
2020-08-21 16:19:26 +08:00
|
|
|
"prettier": "prettier --write '{src,examples,scss}/**/*.{tsx,ts,jsx,scss}'",
|
2020-09-08 17:39:14 +08:00
|
|
|
"deploy-gh-page": "sh ./deploy-gh-pages.sh",
|
|
|
|
"build-schemas": "ts-node -O '{\"target\":\"es6\"}' scripts/build-schemas.ts"
|
2019-11-12 16:10:51 +08:00
|
|
|
},
|
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
|
|
|
"url": "https://github.com/baidu/amis.git"
|
|
|
|
},
|
|
|
|
"keywords": [
|
|
|
|
"react",
|
|
|
|
"amis",
|
|
|
|
"mis",
|
|
|
|
"renderer",
|
|
|
|
"json",
|
|
|
|
"schema"
|
|
|
|
],
|
2020-11-03 11:34:23 +08:00
|
|
|
"author": "baidu",
|
|
|
|
"license": "Apache-2.0",
|
|
|
|
"licenses": [
|
|
|
|
{
|
|
|
|
"type": "Apache-2.0",
|
|
|
|
"url": "http://www.apache.org/licenses/LICENSE-2.0"
|
|
|
|
}
|
|
|
|
],
|
2019-11-12 16:10:51 +08:00
|
|
|
"dependencies": {
|
2021-02-01 17:01:07 +08:00
|
|
|
"ansi-to-react": "^6.1.4",
|
2019-11-12 16:10:51 +08:00
|
|
|
"async": "2.6.0",
|
2020-11-18 15:51:58 +08:00
|
|
|
"attr-accept": "2.2.2",
|
2019-11-12 16:10:51 +08:00
|
|
|
"blueimp-canvastoblob": "2.1.0",
|
2021-04-22 22:02:02 +08:00
|
|
|
"classnames": "2.3.1",
|
2019-12-31 15:49:46 +08:00
|
|
|
"dom-helpers": "^3.3.1",
|
2019-11-12 16:10:51 +08:00
|
|
|
"downshift": "3.1.4",
|
2021-06-30 13:35:26 +08:00
|
|
|
"echarts": "5.1.2",
|
2021-01-21 23:32:05 +08:00
|
|
|
"echarts-stat": "^1.2.0",
|
2020-11-17 16:05:16 +08:00
|
|
|
"exceljs": "^4.2.0",
|
2020-09-25 17:50:20 +08:00
|
|
|
"file-saver": "^2.0.2",
|
2019-11-12 16:10:51 +08:00
|
|
|
"flv.js": "1.5.0",
|
|
|
|
"froala-editor": "2.9.6",
|
2021-04-19 11:36:28 +08:00
|
|
|
"highlight.js": "^10.7.2",
|
2019-11-12 16:10:51 +08:00
|
|
|
"hls.js": "0.12.2",
|
|
|
|
"hoist-non-react-statics": "3.3.0",
|
2020-11-18 15:51:58 +08:00
|
|
|
"immutability-helper": "^3.1.1",
|
2019-11-12 16:10:51 +08:00
|
|
|
"jquery": "^3.2.1",
|
|
|
|
"keycode": "^2.1.9",
|
2019-12-26 09:37:53 +08:00
|
|
|
"lodash": "^4.17.15",
|
2021-04-19 11:36:28 +08:00
|
|
|
"markdown-it": "^12.0.6",
|
2019-11-12 16:10:51 +08:00
|
|
|
"match-sorter": "2.2.1",
|
2020-08-25 22:55:22 +08:00
|
|
|
"mobx": "^4.5.0",
|
2019-11-12 16:10:51 +08:00
|
|
|
"mobx-react": "^6.1.4",
|
2021-05-28 18:15:02 +08:00
|
|
|
"mobx-state-tree": "^3.17.3",
|
2019-11-12 16:10:51 +08:00
|
|
|
"moment": "^2.19.3",
|
2021-05-31 21:01:43 +08:00
|
|
|
"monaco-editor": "0.24.0",
|
2020-09-25 17:50:20 +08:00
|
|
|
"papaparse": "^5.3.0",
|
2019-11-12 16:10:51 +08:00
|
|
|
"prop-types": "^15.6.1",
|
2021-04-21 21:31:43 +08:00
|
|
|
"punycode": "^2.1.1",
|
2019-11-12 16:10:51 +08:00
|
|
|
"qrcode.react": "^0.8.0",
|
|
|
|
"qs": "6.5.1",
|
2020-11-18 15:51:58 +08:00
|
|
|
"rc-input-number": "6.1.1",
|
2019-11-12 16:10:51 +08:00
|
|
|
"react": "^16.8.6",
|
|
|
|
"react-color": "2.13.8",
|
2021-01-08 13:32:25 +08:00
|
|
|
"react-cropper": "1.0.1",
|
|
|
|
"react-datetime": "2.16.2",
|
2019-11-12 16:10:51 +08:00
|
|
|
"react-dom": "^16.8.6",
|
2020-11-18 15:51:58 +08:00
|
|
|
"react-dropzone": "11.2.4",
|
2021-01-08 13:32:25 +08:00
|
|
|
"react-input-range": "1.3.0",
|
2021-06-30 13:35:26 +08:00
|
|
|
"react-json-tree": "0.15.0",
|
2019-11-12 16:10:51 +08:00
|
|
|
"react-overlays": "0.8.3",
|
|
|
|
"react-textarea-autosize": "5.1.0",
|
2020-06-12 14:50:38 +08:00
|
|
|
"react-transition-group": "2.9.0",
|
2021-07-01 21:25:15 +08:00
|
|
|
"react-visibility-sensor": "3.11.0",
|
2019-11-12 16:10:51 +08:00
|
|
|
"setimmediate": "1.0.5",
|
|
|
|
"sortablejs": "1.10.0",
|
2021-05-31 11:25:59 +08:00
|
|
|
"tinymce": ">=5.7.1",
|
2021-03-14 19:01:45 +08:00
|
|
|
"tslib": "^2.1.0",
|
2020-06-03 17:19:14 +08:00
|
|
|
"uncontrollable": "7.0.2",
|
2021-01-21 23:32:05 +08:00
|
|
|
"video-react": "0.14.1"
|
2019-11-12 16:10:51 +08:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2021-04-19 11:30:35 +08:00
|
|
|
"@fortawesome/fontawesome-free": "^5.15.3",
|
2021-06-03 17:55:21 +08:00
|
|
|
"@testing-library/react": "^11.2.7",
|
2019-11-12 16:10:51 +08:00
|
|
|
"@types/async": "^2.0.45",
|
2019-12-31 11:38:46 +08:00
|
|
|
"@types/dom-helpers": "^3.4.1",
|
2020-12-03 13:07:58 +08:00
|
|
|
"@types/echarts": "^4.9.2",
|
2021-03-10 11:15:11 +08:00
|
|
|
"@types/file-saver": "^2.0.1",
|
2019-11-12 16:10:51 +08:00
|
|
|
"@types/history": "^4.6.0",
|
2020-06-02 11:02:43 +08:00
|
|
|
"@types/hoist-non-react-statics": "^3.3.1",
|
2020-12-02 23:06:38 +08:00
|
|
|
"@types/jest": "^24.9.1",
|
2019-11-12 16:10:51 +08:00
|
|
|
"@types/jquery": "^3.3.1",
|
|
|
|
"@types/lodash": "^4.14.76",
|
2021-04-19 11:36:28 +08:00
|
|
|
"@types/markdown-it": "^12.0.1",
|
2020-09-08 17:39:14 +08:00
|
|
|
"@types/mkdirp": "^1.0.1",
|
2019-11-12 16:10:51 +08:00
|
|
|
"@types/node": "^12.7.1",
|
2021-03-10 11:15:11 +08:00
|
|
|
"@types/papaparse": "^5.2.2",
|
2019-11-12 16:10:51 +08:00
|
|
|
"@types/prop-types": "^15.5.2",
|
|
|
|
"@types/qs": "^6.5.1",
|
2020-06-02 11:02:43 +08:00
|
|
|
"@types/react": "^16.9.35",
|
2019-11-12 16:10:51 +08:00
|
|
|
"@types/react-color": "^2.13.3",
|
|
|
|
"@types/react-cropper": "^0.10.1",
|
|
|
|
"@types/react-dom": "^16.0.7",
|
|
|
|
"@types/react-dropzone": "^4.1.0",
|
|
|
|
"@types/react-json-tree": "^0.6.6",
|
|
|
|
"@types/react-onclickoutside": "^6.0.2",
|
2020-05-15 09:43:30 +08:00
|
|
|
"@types/react-overlays": "^0.8.4",
|
2020-11-30 00:37:09 +08:00
|
|
|
"@types/react-router": "^3.0.24",
|
2019-11-12 16:10:51 +08:00
|
|
|
"@types/react-test-renderer": "^16.8.1",
|
|
|
|
"@types/react-transition-group": "^2.0.6",
|
|
|
|
"@types/sortablejs": "^1.3.32",
|
2020-04-15 16:04:08 +08:00
|
|
|
"@types/tinymce": "^4.5.24",
|
2019-11-12 16:10:51 +08:00
|
|
|
"animate.css": "3.5.2",
|
2021-01-07 23:25:04 +08:00
|
|
|
"axios": "0.21.1",
|
2019-11-12 16:10:51 +08:00
|
|
|
"bce-sdk-js": "^0.2.9",
|
2021-05-27 10:35:18 +08:00
|
|
|
"concurrently": "^6.2.0",
|
2019-11-12 16:10:51 +08:00
|
|
|
"copy-to-clipboard": "3.0.8",
|
2020-11-18 11:41:04 +08:00
|
|
|
"core-js": "^3.7.0",
|
2019-11-12 16:10:51 +08:00
|
|
|
"css": "2.2.1",
|
|
|
|
"faker": "^4.1.0",
|
2021-04-06 10:50:17 +08:00
|
|
|
"fis-optimizer-terser": "^1.0.1",
|
2020-11-03 13:27:41 +08:00
|
|
|
"fis-parser-sass": "^1.0.1",
|
2019-11-12 16:10:51 +08:00
|
|
|
"fis-parser-svgr": "^1.0.0",
|
|
|
|
"fis3": "^3.4.41",
|
2020-07-31 21:45:32 +08:00
|
|
|
"fis3-deploy-skip-packed": "0.0.5",
|
2019-11-12 16:10:51 +08:00
|
|
|
"fis3-hook-commonjs": "^0.1.31",
|
|
|
|
"fis3-hook-node_modules": "^2.3.1",
|
2020-08-21 09:59:15 +08:00
|
|
|
"fis3-hook-relative": "^2.0.3",
|
2020-07-31 21:45:32 +08:00
|
|
|
"fis3-packager-deps-pack": "^0.1.2",
|
2019-11-12 16:10:51 +08:00
|
|
|
"fis3-parser-typescript": "^1.3.0",
|
2020-12-29 13:06:53 +08:00
|
|
|
"fis3-postpackager-loader": "^2.1.12",
|
2020-01-20 18:50:01 +08:00
|
|
|
"fis3-prepackager-stand-alone-pack": "^1.0.0",
|
2020-04-15 16:04:08 +08:00
|
|
|
"fis3-preprocessor-js-require-css": "^0.1.3",
|
2021-04-19 11:36:28 +08:00
|
|
|
"fis3-preprocessor-js-require-file": "^0.1.3",
|
2019-11-12 16:10:51 +08:00
|
|
|
"fs-walk": "0.0.2",
|
2020-08-20 23:56:28 +08:00
|
|
|
"glob": "^7.1.6",
|
2021-06-17 16:33:33 +08:00
|
|
|
"history": "^4.7.2",
|
2019-11-12 16:10:51 +08:00
|
|
|
"husky": "^2.2.0",
|
2020-12-02 23:06:38 +08:00
|
|
|
"jest": "^26.6.3",
|
|
|
|
"jest-canvas-mock": "^2.3.0",
|
2019-11-12 16:10:51 +08:00
|
|
|
"js-yaml": "^3.10.0",
|
|
|
|
"lint-staged": "^8.1.6",
|
2021-03-04 12:57:52 +08:00
|
|
|
"marked": "2.0.1",
|
2020-09-08 17:39:14 +08:00
|
|
|
"mkdirp": "^1.0.4",
|
2021-03-17 10:26:41 +08:00
|
|
|
"moment-timezone": "^0.5.33",
|
2021-02-02 12:46:16 +08:00
|
|
|
"path-to-regexp": "^6.2.0",
|
2020-12-21 10:08:40 +08:00
|
|
|
"postcss": "^8.2.1",
|
|
|
|
"postcss-cli": "^8.3.1",
|
|
|
|
"postcss-custom-properties": "^10.0.0",
|
2020-12-29 14:51:47 +08:00
|
|
|
"prettier": "2.2.1",
|
2020-06-08 18:11:26 +08:00
|
|
|
"prismjs": "^1.20.0",
|
2019-11-12 16:10:51 +08:00
|
|
|
"react-frame-component": "^2.0.0",
|
|
|
|
"react-router": "3.2.0",
|
|
|
|
"react-test-renderer": "^16.8.6",
|
|
|
|
"strip-json-comments": "^2.0.1",
|
2020-12-02 23:06:38 +08:00
|
|
|
"ts-jest": "^26.4.4",
|
2020-12-02 12:12:04 +08:00
|
|
|
"ts-json-schema-generator": "^0.80.0",
|
2020-09-08 17:39:14 +08:00
|
|
|
"ts-node": "^9.0.0",
|
2020-12-02 12:12:04 +08:00
|
|
|
"typescript": "~4.1.2"
|
2019-11-12 16:10:51 +08:00
|
|
|
},
|
|
|
|
"jest": {
|
|
|
|
"testEnvironment": "jsdom",
|
|
|
|
"collectCoverageFrom": [
|
|
|
|
"src/**/*"
|
2019-06-18 09:50:05 +08:00
|
|
|
],
|
2019-11-12 16:10:51 +08:00
|
|
|
"moduleFileExtensions": [
|
|
|
|
"ts",
|
|
|
|
"tsx",
|
|
|
|
"js"
|
|
|
|
],
|
|
|
|
"transform": {
|
|
|
|
"\\.(ts|tsx)$": "ts-jest"
|
2019-10-15 09:39:30 +08:00
|
|
|
},
|
2019-11-12 16:10:51 +08:00
|
|
|
"setupFiles": [
|
|
|
|
"jest-canvas-mock"
|
|
|
|
],
|
|
|
|
"testRegex": "/.*\\.test\\.(ts|tsx|js)$",
|
|
|
|
"moduleNameMapper": {
|
2020-05-11 16:55:18 +08:00
|
|
|
"\\.(css|less|sass|scss)$": "<rootDir>/__mocks__/styleMock.js",
|
|
|
|
"\\.(svg)$": "<rootDir>/__mocks__/svgMock.js"
|
2019-10-15 09:39:30 +08:00
|
|
|
},
|
2020-12-03 13:07:58 +08:00
|
|
|
"setupFilesAfterEnv": [
|
|
|
|
"<rootDir>/__tests__/jest.setup.js"
|
|
|
|
],
|
2019-11-12 16:10:51 +08:00
|
|
|
"globals": {
|
|
|
|
"ts-jest": {
|
2020-12-03 13:07:58 +08:00
|
|
|
"diagnostics": false,
|
|
|
|
"tsconfig": {
|
|
|
|
"module": "commonjs",
|
|
|
|
"target": "es5",
|
|
|
|
"lib": [
|
|
|
|
"es6",
|
|
|
|
"dom",
|
|
|
|
"ES2015"
|
|
|
|
],
|
|
|
|
"sourceMap": true,
|
|
|
|
"jsx": "react",
|
|
|
|
"moduleResolution": "node",
|
|
|
|
"rootDir": ".",
|
|
|
|
"importHelpers": true,
|
|
|
|
"esModuleInterop": true,
|
|
|
|
"allowSyntheticDefaultImports": true,
|
|
|
|
"sourceRoot": ".",
|
|
|
|
"noImplicitReturns": true,
|
|
|
|
"noImplicitThis": true,
|
|
|
|
"noImplicitAny": true,
|
|
|
|
"strictNullChecks": true,
|
|
|
|
"experimentalDecorators": true,
|
|
|
|
"emitDecoratorMetadata": false,
|
|
|
|
"typeRoots": [
|
|
|
|
"./node_modules/@types",
|
|
|
|
"./types"
|
|
|
|
],
|
|
|
|
"skipLibCheck": true
|
|
|
|
}
|
2019-11-12 16:10:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"_husky": {
|
|
|
|
"hooks": {
|
|
|
|
"pre-commit": "lint-staged"
|
2019-05-06 13:41:19 +08:00
|
|
|
}
|
2019-11-12 16:10:51 +08:00
|
|
|
},
|
|
|
|
"lint-staged": {
|
|
|
|
"*.{js,ts,tsx,jsx,css,less,md}": [
|
|
|
|
"prettier --write",
|
|
|
|
"git add"
|
|
|
|
]
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|