-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
106 lines (106 loc) · 3.38 KB
/
Copy pathpackage.json
File metadata and controls
106 lines (106 loc) · 3.38 KB
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
{
"name": "@cs125/react-nonce",
"description": "React Typescript support for stable browser and session unique identifiers.",
"license": "MIT",
"author": "Geoffrey Challen <geoffrey.challen@gmail.com>",
"repository": "https://github.com/cs125-illinois/react-nonce",
"bugs": "https://github.com/cs125-illinois/react-nonce/issues",
"version": "2020.5.0",
"main": "dist/index.cjs.js",
"files": [
"dist/**/*"
],
"scripts": {
"build": "rm -rf dist && GIT_COMMIT=$(git show --no-patch --format=%h) rollup -c",
"build:docs": "rm -rf docs && parcel build example/index.html --out-dir docs --public-url=\"/react-nonce\"",
"check": "npm run eslint && npm run tsc && npm run prettier && npm run depcheck",
"depcheck": "depcheck --ignore-dirs dist,docs --ignores=@types/*,@hot-loader/react-dom,parcel,concurrently,@mdx-js/parcel-plugin-mdx,@typescript-eslint/*,@cs125/react-nonce",
"eslint": "eslint --fix src/ example/ --max-warnings=0 --ext .js,.ts,.tsx",
"example": "parcel example/index.html",
"ncu": "ncu",
"prepublishOnly": "npm run check && npm run build",
"start": "concurrently -n example,src \"npm run example\" \"npm run watch\"",
"tsc": "tsc",
"prettier": "prettier --write src/ example/ .vscode/ *.json *.js .*.js *.md && prettier-package-json --write",
"watch": "rollup -c -w"
},
"types": "dist/index.d.ts",
"dependencies": {
"uuid": "^8.0.0"
},
"peerDependencies": {
"prop-types": ">=15",
"react": ">=16"
},
"devDependencies": {
"@hot-loader/react-dom": "^16.13.0",
"@mdx-js/parcel-plugin-mdx": "^1.6.1",
"@mdx-js/react": "^1.6.1",
"@types/events": "^3.0.0",
"@types/node": "^13.13.5",
"@types/react": "^16.9.34",
"@types/react-dom": "^16.9.7",
"@types/react-syntax-highlighter": "^11.0.4",
"@types/uuid": "^7.0.3",
"@types/webpack-env": "^1.15.2",
"@typescript-eslint/eslint-plugin": "^2.31.0",
"@typescript-eslint/parser": "^2.31.0",
"babel-eslint": "^10.1.0",
"babel-polyfill": "^6.26.0",
"concurrently": "^5.2.0",
"depcheck": "^0.9.2",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-react": "^7.19.0",
"husky": "^4.2.5",
"lint-staged": "^10.2.2",
"npm-check-updates": "^4.1.2",
"parcel": "^1.12.4",
"prettier": "^2.0.5",
"prettier-package-json": "^2.1.3",
"prop-types": "^15.7.2",
"react": "^16.13.1",
"react-app-polyfill": "^1.0.6",
"react-dom": "^16.13.1",
"react-hot-loader": "^4.12.21",
"react-syntax-highlighter": "^12.2.1",
"rollup": "^2.8.2",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-typescript2": "^0.27.0",
"semantic-ui-css": "^2.4.1",
"semantic-ui-react": "^0.88.2",
"typescript": "^3.8.3"
},
"alias": {
"@cs125/react-nonce": ".",
"react-dom": "@hot-loader/react-dom"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{json,js,md}": [
"prettier --write"
],
".*.js": [
"prettier --write"
],
"{src,example}/**/*.ts?(x)": [
"prettier --write",
"eslint --fix",
"bash -c \"tsc --noEmit\"",
"bash -c \"npm run depcheck\""
]
},
"prettier": {
"semi": false,
"trailingComma": "es5",
"singleQuote": false,
"printWidth": 120,
"tabWidth": 2
}
}