-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
77 lines (77 loc) · 2.47 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
{
"name": "discuz",
"version": "1.0.0",
"description": "discuz",
"main": "index.js",
"repository": "",
"author": "martinpham.com",
"license": "",
"private": true,
"workspaces": [
"packages/*"
],
"devDependencies": {
"@types/jest": "^27.0.1",
"@types/md5": "^2.3.1",
"@types/node": "^16.7.13",
"@types/react": "^17.0.20",
"@types/react-dom": "^17.0.9",
"@types/styled-components": "^5.1.19",
"@typescript-eslint/eslint-plugin": "^5.8.1",
"@typescript-eslint/parser": "^5.8.1",
"lerna": "^4.0.0",
"source-map-explorer": "^2.5.2",
"npm-run-all": "^4.1.5",
"react-scripts": "5.0.0",
"typescript": "^4.5.4"
},
"dependencies": {
"@discuzz/discuzz": "*",
"@discuzz/viewer-markdown": "*",
"@discuzz/composer-markdown": "*",
"@discuzz/locale-en": "*",
"@discuzz/locale-vi": "*",
"@discuzz/auth-firebase": "*",
"@discuzz/data-firestore": "*",
"firebase": "^9.6.1",
"date-fns": "^2.27.0",
"markdown-to-jsx": "^7.1.5",
"rich-markdown-editor": "^11.21.3",
"styled-components": "^5.3.3",
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"scripts": {
"lerna": "lerna",
"libbuild": "lerna run libbuild --stream",
"prelibstart": "lerna run libbuild --scope @discuzz/core --stream",
"libstart": "lerna run --parallel start --stream",
"appstart": "if [[ -f \"./.env\" ]]; then . ./.env; fi && react-scripts start",
"start": "run-p libstart appstart",
"build": "run-s libbuild && run-s appbuild",
"appbuild": "if [[ -f \"./.env\" ]]; then . ./.env; fi && GENERATE_SOURCEMAP=false react-scripts build && mv build/index.html build/tmp.html && envsubst < build/tmp.html > build/index.html && rm build/tmp.html && cp build/static/js/main.*.js build/static/js/main.js",
"deploy": "run-s build && firebase deploy",
"version:set": "lerna version",
"version:commit": "git add -A && git commit -m \"Automated commit version `node -p 'require(\"./lerna.json\").version'`\"",
"version:release": "lerna publish from-package",
"preanalyze": "run-s libbuild",
"analyze": "react-scripts build && source-map-explorer 'build/static/js/*.js'"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"prettier": {
"singleQuote": true,
"semi": false,
"trailingComma": "none"
}
}