-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
65 lines (65 loc) · 2.1 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
{
"name": "solidity-by-example",
"version": "0.1.0",
"private": true,
"homepage": "https://solidity-by-example.org",
"scripts": {
"start": "vite",
"preview": "vite preview",
"clean": "rm -rf build",
"prebuild": "npm run clean",
"build": "tsc && vite build",
"postbuild": "npm run lint && npm run copy-index && npm run copy-index-to-404",
"copy-index": "ts-node scripts/build.ts",
"copy-index-to-404": "cp build/index.html build/404.html",
"predeploy": "npm run build",
"deploy": "gh-pages -b master -d build",
"md-to-react": "node scripts/md-to-react.js",
"lint": "prettier --write src",
"reactify": "find src/pages -type d -not -path \"*/__snapshots__\" -exec npx ts-node --project ./scripts/tsconfig.json scripts/md-to-react.ts {} \\;",
"routes": "npx ts-node --project ./scripts/tsconfig.json scripts/build-routes.ts",
"search-index": "npx ts-node --project ./scripts/tsconfig.json scripts/build-search-index.ts",
"generate": "npm run reactify && npm run routes && npm run search-index"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": [
">0.2%",
"not dead",
"not ie <= 11",
"not op_mini all"
],
"dependencies": {
"@vercel/analytics": "^1.1.1",
"highlight.js": "^11.8.0",
"lodash.debounce": "^4.0.8",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.15.0",
"typescript": "^5.1.6"
},
"devDependencies": {
"@types/highlight.js": "^9.12.4",
"@types/lodash.debounce": "^4.0.7",
"@types/marked": "^5.0.1",
"@types/mustache": "^4.2.2",
"@types/node": "^20.5.1",
"@types/react": "^18.2.20",
"@types/react-dom": "^18.2.7",
"@types/react-router-dom": "^5.3.3",
"@vitejs/plugin-react": "^4.0.4",
"gh-pages": "^6.0.0",
"highlightjs-solidity": "^2.0.6",
"marked": "^7.0.4",
"marked-highlight": "^2.0.4",
"mustache": "^4.2.0",
"prettier": "^3.0.2",
"prettier-plugin-solidity": "^1.1.3",
"ts-node": "^10.9.1",
"typescript": "^5.1.6",
"vite": "^4.4.9",
"vite-tsconfig-paths": "^4.2.0",
"yaml": "^2.3.1"
}
}