forked from w3f/polkadot-wiki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
99 lines (99 loc) · 5.04 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
{
"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: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: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 scripts/fetch.mjs --isPolkadot",
"mirror": "node --experimental-json-modules scripts/mirror.mjs",
"crowdin": "crowdin",
"docusaurus": "docusaurus",
"prepare": "husky install"
},
"devDependencies": {
"@actions/core": "^1.9.0",
"@actions/github": "^5.0.3",
"@crowdin/cli": "^3.7.9",
"@docusaurus/core": "^2.0.0-beta.18",
"@docusaurus/module-type-aliases": "^2.0.0-beta.22",
"@docusaurus/plugin-client-redirects": "^2.0.0-beta.21",
"@docusaurus/preset-classic": "^2.0.0-beta.21",
"@octokit/rest": "^19.0.3",
"@polkadot/api": "^8.12.2",
"@polkadot/keyring": "^9.7.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": "^57.0.3",
"katex": "^0.16.0",
"loud-rejection": "^2.2.0",
"mr-pdf": "^1.1.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.7.1",
"pretty-quick": "^3.1.3",
"react": "^17.0.2",
"react-bootstrap": "^2.4.0",
"react-dom": "^17.0.2",
"remarkable-katex": "^1.2.1",
"shx": "^0.3.4",
"unist-util-visit": "2.0.1",
"yargs": "^17.5.1"
},
"dependencies": {
"@algolia/client-search": "^4.13.1",
"@mdx-js/runtime": "^1.6.22",
"@polkadot/util": "^9.6.2",
"@polkadot/util-crypto": "^9.6.2",
"@polkadot/wasm-crypto": "^6.2.3",
"@polkadot/x-randomvalues": "*",
"@types/react": "^18.0.9",
"ansi-html": "^0.0.9",
"ansi-regex": "^6.0.1",
"browserslist": "^4.21.1",
"check-peer-dependencies": "^4.1.0",
"crowdin-cli": "^0.3.0",
"css-what": "^6.1.0",
"glob-parent": "^6.0.2",
"immer": "^9.0.15",
"node-fetch": "^3.2.7",
"node-forge": "^1.3.1",
"nth-check": "^2.1.1",
"remark-docusaurus-tabs": "^0.2.0",
"set-value": "^4.1.0",
"trim": "^1.0.1",
"typescript": "^4.7.4"
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged"
}
}
}