|
1 | 1 | { |
2 | | - "private": true, |
3 | 2 | "name": "react-devui", |
4 | 3 | "version": "0.0.0", |
5 | | - "license": "MIT", |
| 4 | + "private": true, |
6 | 5 | "description": "React Component Library", |
7 | 6 | "homepage": "https://github.com/DevCloudFE/react-devui", |
8 | | - "engines": { |
9 | | - "node": "14.x || 16.x", |
10 | | - "yarn": ">=1.22.4 <2", |
11 | | - "npm": "Please use yarn instead of NPM to install dependencies" |
12 | | - }, |
| 7 | + "license": "MIT", |
| 8 | + "workspaces": [ |
| 9 | + "packages/*" |
| 10 | + ], |
13 | 11 | "scripts": { |
14 | | - "site:serve": "nx serve site", |
15 | | - "lint:affected": "nx affected --target=lint --parallel=5", |
16 | | - "lint:affected:fix": "yarn lint:affected --fix", |
17 | | - "lint:style": "stylelint **/*.{css,scss,html,md}", |
18 | | - "lint:style:fix": "yarn lint:style --fix", |
19 | | - "test:affected": "nx affected --target=test --parallel=5", |
20 | 12 | "build:affected": "nx affected --target=build --parallel=5", |
21 | | - "build:vscode-extension": "nx build vscode-extension && cd dist/packages/vscode-extension && vsce package", |
22 | 13 | "build:executors": "tsc --project tools/tsconfig.json", |
23 | 14 | "build:icons": "node ./tools/ui-icons.js", |
24 | | - "build:helper": "node ./tools/ui-helper.js", |
25 | | - "prepublish:vscode-extension": "yarn build:vscode-extension", |
26 | | - "publish:vscode-extension": "cd dist/packages/vscode-extension && vsce publish", |
| 15 | + "build:vscode-extension": "nx build vscode-extension && cd dist/packages/vscode-extension && yarn install -W && vsce package --yarn", |
27 | 16 | "check-update": "yarn upgrade-interactive --latest", |
| 17 | + "lint:affected": "nx affected --target=lint --parallel=5", |
| 18 | + "lint:style": "stylelint **/*.{css,scss,html,md}", |
| 19 | + "lint:style:fix": "yarn lint:style --fix", |
28 | 20 | "prepare": "husky install && chmod ug+x .husky/*", |
29 | 21 | "prepublishOnly": "nx run-many --all --target=build --parallel=5 --exclude=site,vscode-extension", |
30 | | - "version": "npx prettier lerna.json --write" |
| 22 | + "prepublish:vscode-extension": "yarn build:vscode-extension", |
| 23 | + "publish:vscode-extension": "cd dist/packages/vscode-extension && vsce publish --yarn", |
| 24 | + "site:serve": "nx serve site", |
| 25 | + "sort-package-json": "npx sort-package-json 'package.json' 'packages/*/package.json'", |
| 26 | + "test:affected": "nx affected --target=test --parallel=5", |
| 27 | + "version": "npx prettier lerna.json --write", |
| 28 | + "watch:vscode-extension": "nx build vscode-extension --watch" |
31 | 29 | }, |
32 | 30 | "dependencies": { |
33 | 31 | "@ant-design/icons-svg": "^4.2.1", |
34 | | - "@stackblitz/sdk": "^1.8.0", |
35 | | - "codesandbox": "^2.2.3", |
36 | | - "core-js": "^3.24.1", |
37 | | - "dayjs": "^1.11.5", |
38 | | - "highlight.js": "^11.6.0", |
39 | | - "i18next": "^21.9.0", |
40 | | - "immer": "^9.0.15", |
41 | | - "lodash": "^4.17.21", |
42 | | - "marked": "^4.0.18", |
43 | | - "react": "^18.2.0", |
44 | | - "react-dom": "^18.2.0", |
45 | | - "react-i18next": "^11.18.3", |
46 | | - "react-router-dom": "^6.3.0", |
47 | | - "regenerator-runtime": "^0.13.9", |
48 | | - "rfs": "^9.0.6", |
49 | | - "rxjs": "^7.5.6", |
50 | | - "swiper": "^8.3.2", |
51 | | - "tslib": "^2.4.0" |
52 | | - }, |
53 | | - "devDependencies": { |
54 | 32 | "@commitlint/cli": "^17.0.3", |
55 | 33 | "@commitlint/config-conventional": "^17.0.3", |
56 | 34 | "@nrwl/cli": "14.5.6", |
|
62 | 40 | "@nrwl/tao": "14.5.6", |
63 | 41 | "@nrwl/web": "14.5.6", |
64 | 42 | "@nrwl/workspace": "14.5.6", |
| 43 | + "@stackblitz/sdk": "^1.8.0", |
65 | 44 | "@testing-library/react": "^13.3.0", |
66 | 45 | "@types/fs-extra": "^9.0.13", |
67 | 46 | "@types/glob": "^7.2.0", |
|
77 | 56 | "@typescript-eslint/parser": "^5.33.0", |
78 | 57 | "@vscode/test-electron": "^2.1.5", |
79 | 58 | "babel-jest": "^27.5.1", |
| 59 | + "codesandbox": "^2.2.3", |
| 60 | + "core-js": "^3.24.1", |
| 61 | + "dayjs": "^1.11.5", |
80 | 62 | "eslint": "^8.22.0", |
81 | 63 | "eslint-config-prettier": "^8.5.0", |
82 | 64 | "eslint-plugin-import": "^2.26.0", |
|
89 | 71 | "eslint-plugin-tsdoc": "^0.2.16", |
90 | 72 | "fs-extra": "^10.1.0", |
91 | 73 | "glob": "^8.0.3", |
| 74 | + "highlight.js": "^11.6.0", |
92 | 75 | "husky": "^8.0.1", |
| 76 | + "i18next": "^21.9.0", |
| 77 | + "immer": "^9.0.15", |
93 | 78 | "jest": "^27.5.1", |
94 | 79 | "lerna": "^5.4.2", |
| 80 | + "lodash": "^4.17.21", |
| 81 | + "marked": "^4.0.18", |
95 | 82 | "mocha": "^10.0.0", |
96 | 83 | "nx": "14.5.6", |
97 | 84 | "postcss-html": "^1.5.0", |
98 | 85 | "postcss-markdown": "^1.2.0", |
99 | 86 | "prettier": "^2.7.1", |
| 87 | + "react": "^18.2.0", |
| 88 | + "react-dom": "^18.2.0", |
| 89 | + "react-i18next": "^11.18.3", |
| 90 | + "react-router-dom": "^6.3.0", |
100 | 91 | "react-test-renderer": "^18.2.0", |
| 92 | + "regenerator-runtime": "^0.13.9", |
| 93 | + "rfs": "^9.0.6", |
| 94 | + "rxjs": "^7.5.6", |
101 | 95 | "rxjs-for-await": "^1.0.0", |
102 | 96 | "sass": "^1.54.4", |
103 | 97 | "stylelint": "^14.10.0", |
|
106 | 100 | "stylelint-config-recommended-scss": "^7.0.0", |
107 | 101 | "stylelint-config-standard": "^27.0.0", |
108 | 102 | "stylelint-scss": "^4.3.0", |
| 103 | + "swiper": "^8.3.2", |
109 | 104 | "ts-jest": "^27.1.4", |
110 | 105 | "ts-node": "^10.9.1", |
| 106 | + "tslib": "^2.4.0", |
111 | 107 | "typescript": "~4.7.4", |
112 | 108 | "yaml-front-matter": "^4.1.1" |
113 | 109 | }, |
114 | | - "workspaces": [ |
115 | | - "packages/*" |
116 | | - ] |
| 110 | + "engines": { |
| 111 | + "node": "14.x || 16.x", |
| 112 | + "npm": "Please use yarn instead of NPM to install dependencies", |
| 113 | + "yarn": ">=1.22.4 <2" |
| 114 | + } |
117 | 115 | } |
0 commit comments