|
1 | 1 | { |
2 | | - "name": "@ice/stark", |
| 2 | + "name": "icestark-monorepo", |
3 | 3 | "version": "2.7.0", |
| 4 | + "private": true, |
4 | 5 | "description": "Icestark is a JavaScript library for multiple projects, Ice workbench solution.", |
5 | 6 | "scripts": { |
6 | | - "install:deps": "rm -rf node_modules && rm -rf ./packages/*/node_modules && yarn install && lerna exec -- npm install", |
| 7 | + "preinstall": "npx only-allow pnpm", |
| 8 | + "setup": "rm -rf node_modules && rm -rf ./packages/*/node_modules && pnpm i && npm run build", |
| 9 | + "build": "run-s clean build-sandbox build-app build-module build-data build-icestark", |
| 10 | + "build-icestark": "cd packages/icestark && npm run build", |
| 11 | + "build-sandbox": "cd packages/sandbox && npm run build", |
| 12 | + "build-app": "cd packages/icestark-app && npm run build", |
| 13 | + "build-module": "cd packages/icestark-module && npm run build", |
| 14 | + "build-data": "cd packages/icestark-data && npm run build", |
| 15 | + "clean": "rimraf packages/*/lib", |
7 | 16 | "publish:packages": "ts-node ./scripts/publish.ts", |
8 | | - "build": "rm -rf lib && tsc", |
9 | | - "watch": "tsc -w", |
10 | | - "prepublishOnly": "npm run lint && npm run test && npm run build", |
11 | | - "lint": "eslint --cache --ext .ts,.tsx ./ && tsc --noEmit", |
| 17 | + "publish:beta": "ts-node ./scripts/beta.ts", |
| 18 | + "lint": "eslint --cache --ext .js,.jsx,.ts,.tsx ./", |
12 | 19 | "test": "NODE_ENV=unittest jest", |
13 | 20 | "coverage": "codecov" |
14 | 21 | }, |
15 | | - "main": "lib/index.js", |
16 | | - "module": "lib/index.js", |
17 | | - "types": "lib/index.d.ts", |
18 | | - "files": [ |
19 | | - "lib" |
20 | | - ], |
21 | 22 | "license": "MIT", |
22 | | - "keywords": [ |
23 | | - "ice", |
24 | | - "react", |
25 | | - "microfrontends" |
26 | | - ], |
27 | 23 | "bugs": { |
28 | 24 | "url": "https://github.com/alibaba/ice/issues" |
29 | 25 | }, |
|
44 | 40 | "type": "git", |
45 | 41 | "url": "git+https://github.com/ice-lab/icestark.git" |
46 | 42 | }, |
47 | | - "peerDependencies": { |
48 | | - "react": ">=15.0.0" |
49 | | - }, |
50 | | - "dependencies": { |
51 | | - "@ice/sandbox": "^1.0.4", |
52 | | - "lodash.isempty": "^4.4.0", |
53 | | - "lodash.isequal": "^4.5.0", |
54 | | - "path-to-regexp": "^1.7.0", |
55 | | - "url-parse": "^1.1.9" |
56 | | - }, |
57 | 43 | "devDependencies": { |
58 | 44 | "@commitlint/cli": "^7.5.2", |
59 | 45 | "@commitlint/config-conventional": "^7.5.0", |
|
62 | 48 | "@testing-library/react": "^9.3.2", |
63 | 49 | "@types/jest": "^24.0.12", |
64 | 50 | "@types/node": "^12.0.0", |
65 | | - "@types/path-to-regexp": "^1.7.0", |
66 | | - "@types/react": "^16.8.19", |
67 | | - "@types/url-parse": "^1.4.3", |
| 51 | + "@types/fs-extra": "^9.0.13", |
68 | 52 | "codecov": "^3.4.0", |
69 | 53 | "eslint": "^7.31.0", |
| 54 | + "fs-extra": "^10.0.0", |
70 | 55 | "husky": "^2.2.0", |
71 | 56 | "jest": "^24.7.1", |
72 | 57 | "jest-fetch-mock": "^2.1.2", |
73 | | - "lerna": "^3.22.1", |
74 | 58 | "lint-staged": "^10.5.3", |
75 | | - "react": "^16.7.0", |
76 | | - "react-dom": "^16.7.0", |
| 59 | + "npm-run-all": "^4.1.5", |
| 60 | + "rimraf": "^3.0.2", |
77 | 61 | "stylelint": "^10.1.0", |
78 | 62 | "ts-jest": "^24.0.2", |
79 | 63 | "ts-node": "^10.2.1", |
80 | 64 | "typescript": "^4.3.5", |
81 | | - "urllib": "^2.36.1" |
82 | | - }, |
83 | | - "resolutions": { |
84 | | - "eslint-plugin-import": "2.20.2", |
85 | | - "@types/testing-library__dom": "7.0.2" |
| 65 | + "urllib": "^2.38.0" |
86 | 66 | }, |
87 | 67 | "jest": { |
88 | 68 | "coverageDirectory": "./coverage/", |
89 | 69 | "collectCoverage": true, |
90 | 70 | "preset": "ts-jest", |
91 | 71 | "automock": false, |
| 72 | + "testMatch": [ "**/__tests__/**/*.ts?(x)", "**/?(*.)+(spec|test).ts?(x)" ], |
92 | 73 | "setupFiles": [ |
93 | 74 | "./setupJest.ts" |
94 | 75 | ] |
|
0 commit comments