-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
91 lines (91 loc) · 3.16 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": "@cs125/react-google-login",
"description": "React support for Google client-side login.",
"license": "MIT",
"author": "Geoffrey Challen <[email protected]>",
"repository": "https://github.com/cs125-illinois/react-google-login",
"bugs": "https://github.com/cs125-illinois/react-google-login/issues",
"version": "2020.7.1",
"main": "dist/index.cjs.js",
"module": "client/dist/index.es.js",
"files": [
"dist/**/*"
],
"scripts": {
"backend": "npm run backend:up || npm run backend:down",
"backend:down": "docker-compose --env-file example/.env.development -p $npm_package_name down",
"backend:up": "docker-compose --env-file example/.env.development -p $npm_package_name up",
"build": "rm -rf dist && GIT_COMMIT=$(git show --no-patch --format=%h) rollup -c",
"build:demo": "cd example && npm run deploy",
"check": "npm run eslint && npm run tsc && npm run prettier && npm run depcheck",
"client": "GIT_COMMIT=$(git show --no-patch --format=%h) rollup -c -w",
"depcheck": "depcheck --ignore-dirs dist,docs --ignores=@types/*,concurrently,@typescript-eslint/*,eslint-plugin-react-hooks,@cs125/react-google-login",
"eslint": "eslint --fix src/ example/ --max-warnings=0 --ext .js,.ts,.tsx",
"example": "cd example && gatsby develop -p 1234 -H 0.0.0.0",
"ncu": "ncu",
"prepare": "npm run build",
"prepublishOnly": "npm run build",
"start": "concurrently -n example,src --handle-input \"npm run example\" \"npm run watch\"",
"tsc": "tsc --noEmit",
"prettier": "prettier \"**/*{.tsx,.ts,.json,.js,.md}\" \".*.js\" --write && prettier-package-json --write && cd example && prettier-package-json --write"
},
"types": "dist/index.d.ts",
"peerDependencies": {
"prop-types": ">=15",
"react": ">=16"
},
"devDependencies": {
"@types/node": "^14.0.26",
"@types/react": "^16.9.43",
"@types/react-dom": "^16.9.8",
"@types/react-helmet": "^6.0.0",
"@types/react-syntax-highlighter": "^11.0.4",
"@typescript-eslint/eslint-plugin": "^3.7.0",
"@typescript-eslint/parser": "^3.7.0",
"babel-eslint": "^10.1.0",
"concurrently": "^5.2.0",
"depcheck": "^1.0.0",
"eslint": "^7.5.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-react": "^7.20.3",
"eslint-plugin-react-hooks": "^4.0.8",
"husky": "^4.2.5",
"lint-staged": "^10.2.11",
"npm-check-updates": "^7.0.2",
"prettier": "^2.0.5",
"prettier-package-json": "^2.1.3",
"prop-types": "^15.7.2",
"react": "^16.13.1",
"rollup": "^2.23.0",
"rollup-plugin-typescript2": "^0.27.1",
"typescript": "^3.9.7"
},
"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 --project .\"",
"bash -c \"npm run depcheck\""
]
},
"prettier": {
"semi": false,
"arrowParens": "avoid",
"trailingComma": "es5",
"singleQuote": false,
"printWidth": 120,
"tabWidth": 2
}
}