|
2 | 2 | "name": "@zzzzw/happy-ui",
|
3 | 3 | "version": "1.1.0",
|
4 | 4 | "description": "A React UI Library.",
|
| 5 | + "keywords": [], |
5 | 6 | "homepage": "https://github.com/worldzhao/react-ui-library-tutorial#readme",
|
6 |
| - "publishConfig": { |
7 |
| - "access": "public", |
8 |
| - "registry": "https://registry.npmjs.org/" |
| 7 | + "bugs": { |
| 8 | + "url": "https://github.com/worldzhao/react-ui-library-tutorial/issues" |
9 | 9 | },
|
10 |
| - "typings": "lib/index.d.ts", |
| 10 | + "repository": { |
| 11 | + "type": "git", |
| 12 | + "url": "git+https://github.com/worldzhao/react-ui-library-tutorial.git" |
| 13 | + }, |
| 14 | + "license": "ISC", |
11 | 15 | "main": "lib/index.js",
|
12 | 16 | "module": "esm/index.js",
|
13 |
| - "authors": { |
14 |
| - "name": "worldzhao", |
15 |
| - |
16 |
| - }, |
| 17 | + "typings": "lib/index.d.ts", |
17 | 18 | "files": [
|
18 | 19 | "lib",
|
19 | 20 | "esm"
|
20 | 21 | ],
|
21 | 22 | "scripts": {
|
22 |
| - "dev": "dumi dev", |
23 |
| - "start": "npm run dev", |
24 |
| - "build:site": "rimraf doc-site && dumi build", |
25 |
| - "preview:site": "cross-env SITE_BUILD_ENV=PREVIEW npm run build:site && serve doc-site", |
26 |
| - "deploy:site": "npm run build:site && gh-pages -d doc-site", |
27 |
| - "clean": "rimraf lib esm dist", |
28 |
| - "build:types": "tsc -p tsconfig.build.json && cpr lib esm", |
29 | 23 | "build": "npm run clean && npm run build:types && gulp",
|
| 24 | + "build:site": "dumi build", |
| 25 | + "build:types": "tsc -p tsconfig.build.json && cpr lib esm", |
| 26 | + "clean": "rimraf lib esm dist .dumi doc-site", |
| 27 | + "commit": "cz", |
| 28 | + "deploy:site": "npm run build:site && gh-pages -d doc-site", |
| 29 | + "dev": "npm start", |
| 30 | + "new": "plop --plopfile ./scripts/plopfile.ts", |
| 31 | + "postnew": "prettier --write src/**/*{ts,tsx} --loglevel silent", |
| 32 | + "prepare": "husky install && dumi setup", |
30 | 33 | "prepublishOnly": "npm run build",
|
| 34 | + "preview": "cross-env PREVIEW=1 npm run build:site && cross-env PREVIEW=1 dumi preview", |
31 | 35 | "release": "np --no-cleanup --no-tests --any-branch",
|
32 |
| - "commit": "git-cz", |
| 36 | + "start": "dumi dev", |
33 | 37 | "test": "jest",
|
34 |
| - "test:watch": "jest --watch", |
35 | 38 | "test:coverage": "jest --coverage",
|
36 | 39 | "test:update": "jest --updateSnapshot",
|
37 |
| - "new": "plop --plopfile ./scripts/plopfile.ts", |
38 |
| - "postnew": "prettier --write src/**/*{ts,tsx} --loglevel silent" |
39 |
| - }, |
40 |
| - "repository": { |
41 |
| - "type": "git", |
42 |
| - "url": "git+https://github.com/worldzhao/react-ui-library-tutorial.git" |
43 |
| - }, |
44 |
| - "keywords": [], |
45 |
| - "license": "ISC", |
46 |
| - "bugs": { |
47 |
| - "url": "https://github.com/worldzhao/react-ui-library-tutorial/issues" |
| 40 | + "test:watch": "jest --watch" |
48 | 41 | },
|
49 | 42 | "lint-staged": {
|
50 |
| - "src/**/*.ts?(x)": [ |
| 43 | + "*.ts?(x)": [ |
51 | 44 | "prettier --write",
|
52 | 45 | "eslint --fix",
|
53 |
| - "jest --bail --findRelatedTests", |
54 |
| - "git add" |
| 46 | + "jest --bail --findRelatedTests" |
| 47 | + ], |
| 48 | + "*.less": [ |
| 49 | + "stylelint --syntax less --fix" |
55 | 50 | ],
|
56 |
| - "src/**/*.less": [ |
57 |
| - "stylelint --syntax less --fix", |
58 |
| - "git add" |
| 51 | + "*.{md,html,json}": [ |
| 52 | + "prettier --write" |
59 | 53 | ]
|
60 | 54 | },
|
61 |
| - "husky": { |
62 |
| - "hooks": { |
63 |
| - "commit-msg": "commitlint -E HUSKY_GIT_PARAMS", |
64 |
| - "pre-commit": "lint-staged" |
65 |
| - } |
66 |
| - }, |
67 | 55 | "config": {
|
68 | 56 | "commitizen": {
|
69 | 57 | "path": "cz-conventional-changelog"
|
70 | 58 | }
|
71 | 59 | },
|
72 |
| - "peerDependencies": { |
73 |
| - "react": "^16.8.0", |
74 |
| - "react-dom": "^16.8.0" |
75 |
| - }, |
76 | 60 | "dependencies": {
|
77 |
| - "@babel/runtime": "^7", |
78 |
| - "prop-types": "^15.7.2" |
| 61 | + "@babel/runtime": "^7" |
79 | 62 | },
|
80 | 63 | "devDependencies": {
|
81 | 64 | "@babel/core": "^7.7.7",
|
|
85 | 68 | "@babel/preset-env": "^7.7.7",
|
86 | 69 | "@babel/preset-react": "^7.7.4",
|
87 | 70 | "@babel/preset-typescript": "^7.7.7",
|
88 |
| - "@commitlint/cli": "^8.2.0", |
89 |
| - "@commitlint/config-conventional": "^8.2.0", |
| 71 | + "@commitlint/cli": "^17.3.0", |
| 72 | + "@commitlint/config-conventional": "^17.3.0", |
90 | 73 | "@testing-library/jest-dom": "^5.16.4",
|
91 | 74 | "@testing-library/react": "^12.1.4",
|
92 | 75 | "@testing-library/user-event": "^13.5.0",
|
| 76 | + "@trivago/prettier-plugin-sort-imports": "^3.2.0", |
93 | 77 | "@types/jest": "^27.4.1",
|
94 | 78 | "@types/node": "^16.11.26",
|
95 |
| - "@types/react-dom": "^16.8.0", |
96 | 79 | "@types/react": "^16.8.0",
|
97 |
| - "@typescript-eslint/parser": "^1.9.0", |
98 |
| - "@umijs/fabric": "^1.2.12", |
| 80 | + "@types/react-dom": "^16.8.0", |
| 81 | + "@umijs/fabric": "^3", |
99 | 82 | "babel-plugin-import": "^1.13.3",
|
100 |
| - "commitizen": "^4.0.3", |
| 83 | + "commitizen": "^4.2.5", |
| 84 | + "core-js": "^3.26.1", |
101 | 85 | "cpr": "^3.0.1",
|
102 | 86 | "cross-env": "^7.0.3",
|
103 |
| - "cz-conventional-changelog": "^3.0.2", |
| 87 | + "cz-conventional-changelog": "^3.3.0", |
104 | 88 | "doctoc": "^1.4.0",
|
105 |
| - "dumi": "^1.0.13", |
| 89 | + "dumi": "^2.0.6", |
| 90 | + "eslint": "^7", |
106 | 91 | "gh-pages": "^3.2.3",
|
| 92 | + "gulp": "^4.0.2", |
107 | 93 | "gulp-autoprefixer": "^7.0.1",
|
108 | 94 | "gulp-babel": "^8.0.0",
|
109 | 95 | "gulp-cssnano": "^2.1.3",
|
110 | 96 | "gulp-less": "^4.0.1",
|
111 |
| - "gulp": "^4.0.2", |
112 |
| - "husky": "^3.1.0", |
| 97 | + "husky": "^8", |
113 | 98 | "identity-obj-proxy": "^3.0.0",
|
114 | 99 | "jest": "^24.9.0",
|
115 | 100 | "less": "^3.10.3",
|
116 |
| - "lint-staged": "^9.5.0", |
| 101 | + "lint-staged": "^13", |
117 | 102 | "np": "^7.5.0",
|
118 |
| - "plop": "^2.6.0", |
119 |
| - "prettier": "^2", |
120 |
| - "react-dom": "^16.8.0", |
| 103 | + "plop": "^2", |
| 104 | + "prettier": "^2.8.0", |
| 105 | + "prettier-plugin-packagejson": "^2.3.0", |
121 | 106 | "react": "^16.8.0",
|
| 107 | + "react-dom": "^16.8.0", |
122 | 108 | "rimraf": "^3.0.0",
|
123 |
| - "serve": "^13", |
124 | 109 | "snapshot-diff": "^0.6.1",
|
125 | 110 | "through2": "^3.0.1",
|
126 | 111 | "ts-jest": "^24.2.0",
|
127 |
| - "ts-node": "^8.10.1", |
128 |
| - "typescript": "^4" |
| 112 | + "ts-node": "^10.9.1", |
| 113 | + "typescript": "^4.9.3" |
| 114 | + }, |
| 115 | + "peerDependencies": { |
| 116 | + "react": ">=16.8.0", |
| 117 | + "react-dom": ">=16.8.0" |
| 118 | + }, |
| 119 | + "publishConfig": { |
| 120 | + "access": "public", |
| 121 | + "registry": "https://registry.npmjs.org/" |
| 122 | + }, |
| 123 | + "authors": { |
| 124 | + "name": "worldzhao", |
| 125 | + |
129 | 126 | }
|
130 | 127 | }
|
0 commit comments