This repository has been archived by the owner on Jan 3, 2023. It is now read-only.
forked from aniketgargya/element-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
153 lines (153 loc) · 5.89 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
{
"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.7.1",
"main": "client/dist/index.cjs.js",
"module": "client/dist/index.es.js",
"files": [
"client/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": "npm run build:client && npm run docker:build",
"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:demo": "cd example && npm run deploy",
"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/*,env-cmd,ts-node,concurrently,tsconfig-paths,webpack-cli,@typescript-eslint/*,lorem-ipsum,eslint-plugin-*,$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",
"eslint": "eslint --fix server/ client/ types/ --max-warnings=0 --ext .js,.ts,.tsx",
"example": "cd example && GIT_COMMIT=$(git show --no-patch --format=%h) gatsby develop -p 1234",
"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 --handle-input \"npm run server\" \"npm run client\" \"npm run example\"",
"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.1.0",
"google-auth-library": "^6.0.5",
"intersection-observer": "^0.11.0",
"koa": "^2.13.0",
"koa-bodyparser": "^4.3.0",
"koa-easy-ws": "https://github.com/cs125-illinois/koa-easy-ws.git",
"koa-router": "^9.1.0",
"mongodb": "^3.5.9",
"mongodb-uri": "^0.9.7",
"query-string": "^6.13.1",
"reconnecting-websocket": "^4.4.0",
"runtypes": "^5.0.1",
"throttle-debounce": "^2.2.1",
"uuid": "^8.2.0",
"ws": "^7.3.1"
},
"peerDependencies": {
"prop-types": ">=15",
"react": ">=16"
},
"devDependencies": {
"@rollup/plugin-replace": "^2.3.3",
"@types/koa": "^2.11.3",
"@types/koa-bodyparser": "^4.3.0",
"@types/koa-router": "^7.4.1",
"@types/koa__cors": "^3.0.1",
"@types/lodash": "^4.14.157",
"@types/mongodb": "^3.5.25",
"@types/mongodb-uri": "^0.9.0",
"@types/node": "^14.0.24",
"@types/react": "^16.9.43",
"@types/react-dom": "^16.9.8",
"@types/react-syntax-highlighter": "^11.0.4",
"@types/string-hash": "^1.1.1",
"@types/styled-components": "^5.1.1",
"@types/throttle-debounce": "^2.1.0",
"@types/url-join": "^4.0.0",
"@types/uuid": "^8.0.0",
"@types/ws": "^7.2.6",
"@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",
"env-cmd": "^10.1.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",
"lorem-ipsum": "^2.0.3",
"nodemon": "^2.0.4",
"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.22.1",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-node-externals": "^2.2.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-typescript2": "^0.27.1",
"ts-loader": "^8.0.1",
"ts-node": "^8.10.2",
"tsconfig-paths": "^3.9.0",
"typescript": "^3.9.7",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.12"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"image": "cs125/element-tracker",
"lint-staged": {
"*.{json,js,ts,md}": [
"prettier --write"
],
".*.js": [
"prettier --write"
],
"{src,server,types}/**/*.ts?(x)": [
"eslint --fix"
],
"{client,example,server,types}/**/*.ts?(x)": [
"prettier --write",
"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,
"arrowParens": "avoid"
}
}