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",
|
|
|
|
"packages/amis"
|
2022-06-01 15:06:00 +08:00
|
|
|
],
|
2019-11-12 16:10:51 +08:00
|
|
|
"scripts": {
|
2021-12-27 16:26:58 +08:00
|
|
|
"serve": "fis3 server start --www ./public --port 8888 --no-daemon --no-browse",
|
2021-05-27 10:35:18 +08:00
|
|
|
"start": "concurrently --restart-tries -1 npm:serve npm:dev",
|
2019-11-12 16:10:51 +08:00
|
|
|
"stop": "fis3 server stop",
|
|
|
|
"dev": "fis3 release -cwd ./public",
|
2022-06-02 10:00:09 +08:00
|
|
|
"deploy-gh-page": "sh ./deploy-gh-pages.sh",
|
2022-06-02 23:40:23 +08:00
|
|
|
"test": "jest",
|
|
|
|
"coverage": "jest --coverage"
|
2022-06-01 21:35:49 +08:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
|
|
|
"fis-optimizer-terser": "^1.0.1",
|
|
|
|
"fis-parser-sass": "^1.1.1",
|
|
|
|
"fis-parser-svgr": "^1.0.0",
|
|
|
|
"fis3": "^3.4.41",
|
|
|
|
"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",
|
|
|
|
"@types/jest": "^28.1.0",
|
|
|
|
"jest": "^28.1.0",
|
|
|
|
"jest-environment-jsdom": "^28.1.0",
|
|
|
|
"ts-jest": "^28.0.3"
|
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",
|
|
|
|
"collectCoverageFrom": [
|
2022-06-02 23:40:23 +08:00
|
|
|
"packages/*/src/**/*"
|
2022-06-02 10:00:09 +08:00
|
|
|
],
|
|
|
|
"moduleFileExtensions": [
|
|
|
|
"ts",
|
|
|
|
"tsx",
|
|
|
|
"js"
|
|
|
|
],
|
2022-06-02 23:40:23 +08:00
|
|
|
"preset": "ts-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",
|
|
|
|
"^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/"
|
|
|
|
],
|
|
|
|
"globals": {
|
|
|
|
"ts-jest": {
|
|
|
|
"diagnostics": false
|
|
|
|
}
|
|
|
|
}
|
2019-11-12 16:10:51 +08:00
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|