-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
137 lines (137 loc) Β· 4.95 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
{
"name": "@norgate-av/react-hooks",
"version": "0.0.0-development",
"description": "A collection of utility hooks β for React π",
"keywords": [
"react",
"hooks"
],
"license": "MIT",
"main": "dist/index.js",
"module": "dist/react-hooks.esm.js",
"typings": "dist/index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/Norgate-AV-Solutions-Ltd/react-hooks.git"
},
"bugs": {
"url": "https://github.com/Norgate-AV-Solutions-Ltd/react-hooks/issues"
},
"files": [
"dist"
],
"engines": {
"node": ">=14"
},
"scripts": {
"start": "yarn resolve:crcomlib && tsdx watch",
"build": "yarn clean:dist && yarn resolve:crcomlib && tsdx build --format cjs,esm,umd",
"test": "yarn resolve:crcomlib && tsdx test --passWithNoTests",
"test:watch": "yarn resolve:crcomlib && tsdx test --passWithNoTests --watch",
"test:coverage": "yarn clean:coverage && yarn resolve:crcomlib && tsdx test --passWithNoTests --coverage",
"lint": "eslint ./src",
"lint:fix": "eslint --fix ./src",
"prepare": "husky install",
"size": "size-limit",
"analyze": "size-limit --why",
"clean:dist": "rimraf dist",
"clean:coverage": "rimraf coverage",
"clean:all": "yarn clean:dist && yarn clean:coverage",
"semantic-release": "semantic-release",
"commit": "git-cz",
"pretty:fix": "prettier --write .",
"resolve:crcomlib": "run-script-os",
"resolve:crcomlib:default": "./node_modules/node-jq/bin/jq '.main=\"build_bundles/cjs/cr-com-lib.js\"' $npm_package_crestron_crcomlib_packageJson | sponge $npm_package_crestron_crcomlib_packageJson",
"resolve:crcomlib:windows": "./node_modules/node-jq/bin/jq \".main=\"\"build_bundles/cjs/cr-com-lib.js\"\"\" %npm_package_crestron_crcomlib_packageJson% | sponge %npm_package_crestron_crcomlib_packageJson%",
"doctoc": "doctoc --title '## Contents π' README.md",
"contrib:add": "all-contributors add",
"contrib:generate": "all-contributors generate",
"contrib:check": "all-contributors check"
},
"dependencies": {},
"peerDependencies": {
"@crestron/ch5-crcomlib": "^1.2.0",
"@crestron/ch5-webxpanel": "^1.2.5",
"react": ">=16"
},
"size-limit": [
{
"path": "dist/react-hooks.cjs.production.min.js",
"limit": "10 KB"
},
{
"path": "dist/react-hooks.esm.js",
"limit": "10 KB"
}
],
"devDependencies": {
"@commitlint/cli": "^16.2.3",
"@commitlint/config-conventional": "^16.2.1",
"@crestron/ch5-crcomlib": "^1.2.0",
"@crestron/ch5-webxpanel": "^1.2.5",
"@semantic-release/changelog": "^6.0.1",
"@semantic-release/git": "^10.0.1",
"@size-limit/preset-small-lib": "^7.0.8",
"@testing-library/react": "^13.1.1",
"@types/react": "^18.0.7",
"@types/react-dom": "^18.0.2",
"@types/rimraf": "^3.0.2",
"@typescript-eslint/eslint-plugin": "^5.21.0",
"@typescript-eslint/parser": "^5.21.0",
"all-contributors-cli": "^6.20.0",
"babel-jest": "^28.0.0",
"cz-conventional-changelog": "3.3.0",
"doctoc": "^2.1.0",
"eslint": "^8.14.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-typescript": "^16.1.4",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.29.4",
"eslint-plugin-react-hooks": "^4.4.0",
"husky": "^7.0.4",
"lint-staged": "^12.4.0",
"node-jq": "^2.3.3",
"prettier": "^2.6.0",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"rimraf": "^3.0.2",
"run-script-os": "^1.1.6",
"semantic-release": "^19.0.2",
"size-limit": "^7.0.8",
"sponge": "^0.1.0",
"tsdx": "^0.14.1",
"tslib": "^2.4.0",
"typescript": "^4.6.3"
},
"crestron": {
"crcomlib": {
"root": "./node_modules/@crestron/ch5-crcomlib",
"packageJson": "./node_modules/@crestron/ch5-crcomlib/package.json",
"bundle": {
"name": "cr-com-lib.js",
"path": {
"umd": "./node_modules/@crestron/ch5-crcomlib/build_bundles/umd/cr-com-lib.js",
"cjs": "build_bundles/cjs/cr-com-lib.js"
}
}
}
},
"lint-staged": {
"*?(test|spec).{js,jsx,ts,tsx}": [
"yarn lint:fix",
"yarn pretty:fix",
"yarn test"
],
"*.{css,scss,md,html,json,yml,yaml}": [
"yarn pretty:fix"
]
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}