-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
166 lines (166 loc) · 6.25 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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
{
"name": "@cs125/element-tracker",
"description": "Client and server support for tracking page component visibility.",
"license": "MIT",
"author": "Geoffrey Challen <[email protected]>",
"homepage": "https://github.com/cs125-illinois/element-tracker",
"repository": "https://github.com/cs125-illinois/element-tracker",
"bugs": "https://github.com/cs125-illinois/element-tracker/issues",
"version": "2020.5.4",
"main": "client/dist/index.cjs.js",
"files": [
"client/dist/**/*"
],
"scripts": {
"backend": "docker-compose -p element-tracker up > /dev/null",
"build": "npm run build:client && npm run docker:build && npm run build:docs",
"build:client": "rm -rf client/dist && GIT_COMMIT=$(git show --no-patch --format=%h) rollup -c && cp index.d.ts client/dist/ && rm -rf client/dist/example",
"build:docs": "rm -rf docs && parcel build example/index.html --out-dir docs --public-url=\"/element-tracker\"",
"build:server": "rm -rf server/dist && GIT_COMMIT=$(git show --no-patch --format=%h) webpack",
"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/*,@hot-loader/react-dom,env-cmd,parcel,ts-node,concurrently,tsconfig-paths,webpack-cli,@mdx-js/parcel-plugin-mdx,@typescript-eslint/*,$npm_package_name",
"predocker:build": "npm run build:server",
"docker:build": "docker build --build-arg npm_package_image --build-arg npm_package_description --build-arg npm_package_homepage --build-arg npm_package_repository_url --build-arg npm_package_version --build-arg GIT_COMMIT=$(git show --no-patch --format=%h) --build-arg BUILD_DATE=`date -u +\"%Y-%m-%dT%H:%M:%SZ\"` . -t $npm_package_image",
"postdocker:build": "npm run docker:tag",
"docker:push": "docker push $npm_package_image:latest && docker push $npm_package_image:$npm_package_version",
"docker:tag": "docker tag $npm_package_image:latest $npm_package_image:$npm_package_version",
"echo": "printenv",
"eslint": "eslint --fix server/ example/ client/ types/ --max-warnings=0 --ext .js,.ts,.tsx",
"ncu": "ncu",
"prepublishOnly": "npm run check && npm run build:client",
"server": "GIT_COMMIT=$(git show --no-patch --format=%h) nodemon",
"start": "concurrently -n server,client,example,backend --handle-input \"npm run server\" \"npm run client\" \"parcel example/index.html\" \"npm run backend\"",
"poststart": "docker-compose down",
"tsc": "tsc --noEmit",
"prettier": "prettier --write client/ example/ server/ types/ .vscode/ *.json *.js *.ts *.md .*.js && prettier-package-json --write"
},
"types": "client/dist/index.d.ts",
"dependencies": {
"@cs125/pingpongws": "^2020.5.0",
"@koa/cors": "^3.0.0",
"google-auth-library": "^6.0.0",
"koa": "^2.11.0",
"koa-bodyparser": "^4.3.0",
"koa-easy-ws": "https://github.com/cs125-illinois/koa-easy-ws.git",
"koa-router": "^8.0.8",
"mongodb": "^3.5.7",
"mongodb-uri": "^0.9.7",
"query-string": "^6.12.1",
"reconnecting-websocket": "^4.4.0",
"runtypes": "^4.2.0",
"throttle-debounce": "^2.1.0",
"uuid": "^8.0.0",
"ws": "^7.3.0"
},
"peerDependencies": {
"prop-types": ">=15",
"react": ">=16",
"react-ace": ">=8"
},
"devDependencies": {
"@cs125/react-google-login": "^2020.5.1",
"@hot-loader/react-dom": "^16.13.0",
"@mdx-js/parcel-plugin-mdx": "^1.6.1",
"@mdx-js/react": "^1.6.1",
"@types/koa": "^2.11.3",
"@types/koa-bodyparser": "^4.3.0",
"@types/koa-router": "^7.4.0",
"@types/koa__cors": "^3.0.1",
"@types/lodash": "^4.14.150",
"@types/mongodb": "^3.5.16",
"@types/mongodb-uri": "^0.9.0",
"@types/node": "13.13.5",
"@types/react": "^16.9.35",
"@types/react-dom": "^16.9.8",
"@types/react-syntax-highlighter": "^11.0.4",
"@types/string-hash": "^1.1.1",
"@types/styled-components": "^5.1.0",
"@types/throttle-debounce": "^2.1.0",
"@types/url-join": "^4.0.0",
"@types/uuid": "^7.0.3",
"@types/webpack-env": "^1.15.2",
"@types/ws": "^7.2.4",
"@typescript-eslint/eslint-plugin": "^2.32.0",
"@typescript-eslint/parser": "^2.32.0",
"babel-eslint": "^10.1.0",
"babel-polyfill": "^6.26.0",
"concurrently": "^5.2.0",
"depcheck": "^0.9.2",
"env-cmd": "^10.1.0",
"eslint": "^7.0.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",
"nodemon": "^2.0.3",
"npm-check-updates": "^5.0.0",
"parcel": "^1.12.4",
"prettier": "^2.0.5",
"prettier-package-json": "^2.1.3",
"prop-types": "^15.7.2",
"react": "^16.13.1",
"react-ace": "^8.1.0",
"react-app-polyfill": "^1.0.6",
"react-children-utilities": "^2.1.0",
"react-dom": "^16.13.1",
"react-hot-loader": "^4.12.21",
"react-lorem-ipsum": "^1.4.4",
"react-syntax-highlighter": "^12.2.1",
"rollup": "^2.9.1",
"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",
"slugify": "^1.4.0",
"styled-components": "^5.1.0",
"ts-loader": "^7.0.4",
"ts-node": "^8.10.1",
"tsconfig-paths": "^3.9.0",
"typescript": "^3.8.3",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.11"
},
"alias": {
"@cs125/element-tracker": ".",
"react-dom": "@hot-loader/react-dom"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"image": "cs125/element-tracker",
"lint-staged": {
"*.{json,js,ts,md}": [
"prettier --write"
],
".*.js": [
"prettier --write"
],
"{src,example,server,types}/**/*.ts?(x)": [
"prettier --write",
"eslint --fix",
"bash -c \"tsc --noEmit\"",
"bash -c \"npm run depcheck\""
]
},
"nodemonConfig": {
"watch": [
"package.json",
"package-lock.json",
"server/index.ts",
"types/index.ts"
],
"exec": "env-cmd ts-node -r tsconfig-paths/register server/index.ts"
},
"prettier": {
"semi": false,
"trailingComma": "es5",
"singleQuote": false,
"printWidth": 120,
"tabWidth": 2
}
}