-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
91 lines (91 loc) · 2.41 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
{
"name": "rc-demo",
"version": "0.2.0-alpha.3",
"description": "react compoment project demo",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"module": "esm/index.js",
"sideEffects": false,
"scripts": {
"example": "parcel serve ./example/index.html",
"example:build": "rm -rf ./dist/example && parcel build ./example/index.html --target example",
"example:deploy": "yarn example:build && gh-pages -d ./dist/example",
"build": "rm -rf ./lib/* ./esm/* && yarn build:cjs && yarn build:es",
"build:cjs": "tsc",
"build:es": "tsc -m ESNext --outDir ./esm",
"test": "jest -c jest.json",
"lint": "eslint .",
"prettier": "prettier --write '**/*' --config ./.prettierrc",
"version": "conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md",
"prepare": "yarn build"
},
"repository": {
"type": "git",
"url": "git+https://github.com/react-cmpt/rc-demo.git"
},
"keywords": [
"react",
"react-component",
"template"
],
"author": "wangcch <wangcch.cc@gmail.com>",
"license": "MIT",
"files": [
"esm",
"lib"
],
"dependencies": {},
"peerDependencies": {
"react": "^16.8.0",
"react-dom": "^16.8.0"
},
"devDependencies": {
"@testing-library/react": "^11.0.4",
"@testing-library/react-hooks": "^3.4.2",
"@types/jest": "^26.0.14",
"@types/react": "^16.9.49",
"@types/react-dom": "^16.9.8",
"@typescript-eslint/eslint-plugin": "^4.3.0",
"@typescript-eslint/parser": "^4.3.0",
"conventional-changelog-cli": "^2.1.0",
"emotion": "^10.0.27",
"eslint": "^7.10.0",
"eslint-config-prettier": "^6.12.0",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-react": "^7.21.2",
"eslint-plugin-react-hooks": "^4.1.2",
"gh-pages": "^3.1.0",
"husky": "^4.3.0",
"jest": "^26.4.2",
"lint-staged": "^10.4.0",
"parcel": "^2.0.0-alpha.3.2",
"prettier": "^2.1.2",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-test-renderer": "^16.13.1",
"ts-jest": "^26.4.1",
"typescript": "^4.0.3"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"**/*.{ts,tsx,js,jsx}": [
"prettier --write",
"eslint",
"git add"
],
"**/*.{json,md}": [
"prettier --write"
]
},
"targets": {
"example": {
"context": "browser",
"publicUrl": "./",
"isLibrary": false
}
}
}