forked from w3f/polkadot-wiki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
102 lines (102 loc) · 5.37 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
{
"scripts": {
"kusama:clean": "shx rm -rf node_modules/.cache; docusaurus clear kusama-guide",
"kusama:start": "yarn fetch --isPolkadot=false; docusaurus start kusama-guide",
"prekusama:build": "npm-run-all -ln kusama:clean -p \"fetch --isPolkadot=false\" mirror kusama:copy-assets --aggregate-output",
"kusama:build": "cross-env BUILDING=true docusaurus build kusama-guide; node kusama-guide/postprocess",
"kusama:inject": "node --experimental-json-modules scripts/inject.mjs --rootDir kusama-guide/build/kusama-guide-hosting",
"kusama:publish-gh-pages": "cross-env PUBLISHING=true docusaurus deploy kusama-guide",
"kusama:copy-assets": "shx mkdir -p kusama-guide/i18n/zh-CN/docusaurus-plugin-content-docs/current",
"kusama:i18n:download": "yarn polkadot:crowdin:download:zh-CN",
"kusama:i18n:copy-translations": "cp -R polkadot-wiki/i18n/zh-CN/docusaurus-plugin-content-docs/current kusama-guide/i18n/zh-CN/docusaurus-plugin-content-docs/current",
"kusama:pdf": "yarn pdf --initialDocURLs \"http://localhost:3000/docs/kusama-index\" --outputPDFFilename=\"kusama-guide/static/kusama-wiki.pdf\" --coverTitle=\"KUSAMA GUIDE\"",
"polkadot:clean": "shx rm -rf node_modules/.cache; docusaurus clear polkadot-wiki",
"polkadot:start": "yarn fetch; docusaurus start polkadot-wiki",
"prepolkadot:build": "npm-run-all -ln polkadot:clean -p fetch mirror polkadot:copy-assets:* --aggregate-output",
"polkadot:build": "cross-env BUILDING=true docusaurus build polkadot-wiki; node polkadot-wiki/postprocess",
"polkadot:inject": "node --experimental-json-modules scripts/inject.mjs --rootDir polkadot-wiki/build/polkadot-wiki --node wss://rpc.polkadot.io",
"polkadot:publish-gh-pages": "cross-env PUBLISHING=true docusaurus deploy polkadot-wiki",
"polkadot:pdf": "yarn pdf --initialDocURLs \"http://localhost:3000/docs/getting-started\" --outputPDFFilename=\"polkadot-wiki/static/polkadot-wiki.pdf\" --coverTitle=\"POLKADOT WIKI\"",
"copy:translations": "cp -R polkadot-wiki/translated_docs kusama-guide ",
"publish-gh-pages": "cd polkadot-wiki; docusaurus-publish",
"write-translations": "docusaurus-write-translations",
"version": "docusaurus-version",
"rename-version": "docusaurus-rename-version",
"crowdin-upload": "crowdin --config ../crowdin-docs-v1.yaml upload sources --auto-update -b master",
"crowdin-download": "crowdin --config ../crowdin-docs-v1.yaml download -b master",
"generateErrorTable": "node --experimental-json-modules scripts/generateErrorTable.mjs >> docs/maintain-errors.md",
"polkadot:crowdin:upload:source": "crowdin upload sources --config ./crowdin.yaml -b master",
"polkadot:crowdin:download:ru": "crowdin download --config ./crowdin.yaml -b master -l ru",
"polkadot:crowdin:download:zh-CN": "crowdin download --config ./crowdin.yaml -b master -l zh-CN",
"polkadot:copy-assets:ru": "shx mkdir -p polkadot-wiki/i18n/ru-RU/docusaurus-plugin-content-docs/current; shx cp -R docs/assets polkadot-wiki/i18n/ru-RU/docusaurus-plugin-content-docs/current",
"polkadot:copy-assets:zh-CN": "shx mkdir -p polkadot-wiki/i18n/zh-CN/docusaurus-plugin-content-docs/current; shx cp -R docs/assets polkadot-wiki/i18n/zh-CN/docusaurus-plugin-content-docs/current",
"pdf": "npx mr-pdf --contentSelector=\"article\" --paginationSelector=\".pagination-nav__item--next > a\" --pdfFormat=\"A4\" --pdfMargin=\"90,60,80,60\"",
"fetch": "node --experimental-json-modules scripts/fetch.mjs --isPolkadot",
"mirror": "node --experimental-json-modules scripts/mirror.mjs",
"crowdin": "crowdin",
"docusaurus": "docusaurus",
"prepare": "husky install"
},
"devDependencies": {
"@actions/core": "^1.8.0",
"@actions/github": "^5.0.1",
"@crowdin/cli": "^3.7.8",
"@docusaurus/core": "^2.0.0-beta.18",
"@docusaurus/module-type-aliases": "^2.0.0-beta.20",
"@docusaurus/plugin-client-redirects": "^2.0.0-beta.20",
"@docusaurus/preset-classic": "^2.0.0-beta.20",
"@octokit/rest": "^18.12.0",
"@polkadot/api": "^8.3.2",
"@polkadot/keyring": "^8.2.2",
"axios": "^0.27.2",
"chalk": "^4.1.2",
"cloudflare": "^2.9.1",
"cross-env": "^7.0.3",
"fs-extra": "^10.1.0",
"husky": "^8.0.1",
"ipfs-http-client": "^55.0.0",
"katex": "^0.15.3",
"loud-rejection": "^2.2.0",
"mr-pdf": "^1.0.8",
"npm-run-all": "^4.1.5",
"prettier": "^2.6.2",
"pretty-quick": "^3.1.3",
"react": "^17.0.2",
"react-bootstrap": "^2.3.1",
"react-dom": "^17.0.2",
"remarkable-katex": "^1.2.1",
"shx": "^0.3.4",
"unist-util-visit": "2.0.1",
"yargs": "^17.5.0"
},
"dependencies": {
"@algolia/client-search": "^4.13.0",
"@mdx-js/runtime": "^1.6.22",
"@polkadot/util": "^8.2.2",
"@polkadot/util-crypto": "^8.2.2",
"@polkadot/wasm-crypto": "^5.1.1",
"@polkadot/x-randomvalues": "*",
"@types/react": "^18.0.9",
"ansi-html": "^0.0.9",
"ansi-regex": "^6.0.1",
"browserslist": "^4.20.2",
"check-peer-dependencies": "^4.1.0",
"crowdin-cli": "^0.3.0",
"css-what": "^6.1.0",
"glob-parent": "^6.0.2",
"immer": "^9.0.12",
"node-fetch": "^3.2.4",
"node-forge": "^1.3.1",
"nth-check": "^2.0.1",
"remark-docusaurus-tabs": "^0.2.0",
"replace-in-file": "^6.3.2",
"set-value": "^4.1.0",
"trim": "^1.0.1",
"typescript": "^4.6.4"
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged"
}
}
}