forked from w3f/polkadot-wiki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
85 lines (85 loc) · 4.33 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
{
"scripts": {
"kusama:clean": "shx rm -rf node_modules/.cache; docusaurus clear kusama-guide",
"kusama:test": "jest --env=jsdom",
"kusama:start": "docusaurus start kusama-guide",
"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:test": "jest --env=jsdom",
"polkadot:start": "docusaurus start polkadot-wiki",
"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",
"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\"",
"crowdin": "crowdin",
"docusaurus": "docusaurus",
"prepare": "husky install",
"audit:links": "python ./scripts/auditLinks.py",
"audit:images": "python ./scripts/auditImages.py",
"prettier:all": "npx prettier --write ."
},
"devDependencies": {
"@actions/core": "^1.10.0",
"@actions/github": "^5.1.1",
"@crowdin/cli": "^3.14.0",
"@docusaurus/core": "^2.4.1",
"@docusaurus/module-type-aliases": "^2.4.1",
"@docusaurus/plugin-client-redirects": "^2.4.1",
"@docusaurus/preset-classic": "^2.4.1",
"@octokit/rest": "^20.0.1",
"@polkadot/api": "^10.9.1",
"@testing-library/jest-dom": "^6.1.3",
"@testing-library/react": "^12.0.4",
"axios": "^1.5.0",
"cloudflare": "^2.9.1",
"cross-env": "^7.0.3",
"fs-extra": "^11.1.1",
"husky": "^8.0.3",
"jest": "^29.6.4",
"jest-environment-jsdom": "^29.6.4",
"lint-staged": "^14.0.1",
"loud-rejection": "^2.2.0",
"mr-pdf": "^1.1.0",
"prettier": "^3.0.3",
"react": "^17.0.2",
"react-bootstrap": "^2.8.0",
"react-dom": "^17.0.2",
"shx": "^0.3.4",
"unist-util-visit": "2.0.1",
"yargs": "^17.7.2"
},
"dependencies": {
"@algolia/client-search": "^4.19.1",
"@apollo/client": "^3.8.3",
"@docusaurus/theme-mermaid": "^2.4.1",
"chart.js": "^4.4.0",
"crowdin-cli": "^0.3.0",
"graphql": "^16.8.0",
"graphql-ws": "^5.13.1",
"react-chartjs-2": "^5.2.0",
"react-treebeard": "^3.2.4",
"remark-docusaurus-tabs": "^0.2.0"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
}
}