-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpackage.json
More file actions
105 lines (105 loc) · 4.65 KB
/
package.json
File metadata and controls
105 lines (105 loc) · 4.65 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
{
"name": "pacg-player",
"version": "0.1.0",
"private": true,
"workspaces": [
"functions"
],
"dependencies": {
"@date-io/luxon": "^1.3.13",
"@material-ui/core": "^4.10.0",
"@material-ui/icons": "^4.9.1",
"@material-ui/lab": "^4.0.0-alpha.56",
"@material-ui/pickers": "^3.2.10",
"@testing-library/jest-dom": "^5.11.9",
"@testing-library/react": "^11.2.5",
"@testing-library/user-event": "^12.7.1",
"@types/jest": "^26.0.20",
"@types/node": "^14.14.28",
"@types/react": "^17.0.2",
"@types/react-dom": "^17.0.1",
"axios": "^0.21.1",
"deep-equal": "^2.0.3",
"firebase": "^8.2.7",
"firebase-tools": "^9.4.0",
"luabundle": "^1.6.0",
"luxon": "^1.24.1",
"react": "^17.0.1",
"react-dnd": "^11.1.3",
"react-dnd-html5-backend": "^11.1.3",
"react-dom": "^17.0.1",
"react-firebase-hooks": "^2.2.0",
"react-firebaseui": "^4.1.0",
"react-router": "^5.2.0",
"react-router-dom": "^5.2.0",
"react-scripts": "4.0.2",
"typescript": "^4.1.5"
},
"scripts": {
"start": "concurrently \"yarn start:react\" \"mkdir -p build && yarn start:tts\" \"yarn start:functions\" \"yarn start:firebase\"",
"start:functions": "cd functions && yarn build && WATCH=true yarn build",
"start:firebase": "yarn downloadWiki && firebase emulators:start --only firestore,functions,auth --inspect-functions --import ./firebase-export",
"start:react": "cross-env BROWSER=none react-scripts start",
"start:inittts": "yarn build:tts && mkdir luaCache || echo && yarn start:inittts:copy",
"start:inittts:copy": "if [[ \"$(grep \"microsoft\" /proc/version)\" == \"\" ]]; then yarn start:inittts:copy:linux; else yarn start:inittts:copy:windows; fi",
"start:inittts:copy:linux": "cp \"build/save.json\" \"$(readlink -f ~)/.local/share/Tabletop Simulator/Saves/9999.json\"",
"start:inittts:copy:windows": "cp \"build/save.json\" \"$(wslpath $(powershell.exe '$env:UserProfile') | tr -d '\\r')/Documents/My Games/Tabletop Simulator/Saves/9999.json\"",
"start:tts": "yarn start:inittts && ts-node --project ttsBuild/tsconfig.json ttsBuild/watchTTS.ts",
"build:react": "react-scripts build && rm -rf build/__",
"build:functions": "cd functions && yarn build",
"build:tts": "ts-node --project ttsBuild/tsconfig.json ttsBuild/buildTTS.ts",
"build": "concurrently \"yarn build:react\" \"yarn build:functions\" \"yarn build:tts\"",
"updateSaveFile": "if [[ \"$(grep \"microsoft\" /proc/version)\" == \"\" ]]; then yarn updateSaveFile:linux; else yarn updateSaveFile:windows; fi",
"updateSaveFile:linux": "ts-node --project ttsBuild/tsconfig.json ttsBuild/updateSaveFile.ts \"$(readlink -f ~)/.local/share/Tabletop Simulator/Saves/9999.json\"",
"updateSaveFile:windows": "ts-node --project ttsBuild/tsconfig.json ttsBuild/updateSaveFile.ts \"$(wslpath $(powershell.exe '$env:UserProfile') | tr -d '\\r')/Documents/My Games/Tabletop Simulator/Saves/9999.json\"",
"createConfigFile": "ts-node --project ttsBuild/tsconfig.json ttsBuild/createConfigFile.ts",
"downloadWiki": "gsutil -m rsync -d -r -x firebase-export-metadata.json gs://adventurecard-game.appspot.com/firebase-export/ ./firebase-export",
"exportWiki": "gcloud firestore export --project adventurecard-game gs://adventurecard-game.appspot.com/firebase-export --collection-ids=wiki,wiki_character,deck,card",
"importWiki": "gcloud firestore import --project test-pacs-player-site gs://adventurecard-game.appspot.com/firebase-export --collection-ids=wiki,wiki_character,deck,card",
"importOldCards": "set TS_NODE_PROJECT=dbUtil/tsconfig.json&& node -r ts-node/register --max-old-space-size=10240 dbUtil/importOldCards.ts",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@firebase/rules-unit-testing": "^1.2.0",
"@types/deep-equal": "^1.0.1",
"@types/luxon": "^1.24.0",
"@types/react-router-dom": "^5.1.5",
"bson": "^4.0.4",
"concurrently": "^5.2.0",
"cross-env": "^7.0.2",
"firestore-export-import": "^0.10.0",
"husky": "^5.0.9",
"jimp": "^0.16.1",
"lint-staged": "^10.2.11",
"prettier": "^2.0.5",
"ts-node": "^9.1.1",
"ttstk-channels": "^0.3.0",
"wait-port": "^0.2.9"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"src/**/*.{js,jsx,ts,tsx,json,css,scss,md}": [
"prettier --write"
]
}
}