-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
108 lines (108 loc) · 5.36 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
103
104
105
106
107
108
{
"name": "demo",
"version": "1.4.1",
"private": true,
"scripts": {
"docusaurus": "docusaurus",
"start": "yarn gen-all && docusaurus start",
"build": "yarn clean-all && yarn gen-all && docusaurus build",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"clear": "docusaurus clear",
"serve": "docusaurus serve",
"write-heading-ids": "docusaurus write-heading-ids",
"write-translations": "docusaurus write-translations",
"crowdin": "crowdin",
"precrowdin:upload": "find docs/vocdoni-api/ -type f -name '*.mdx' -exec sed -i -e 's/\\(^api:\\)/#\\1/g' {} \\;",
"crowdin:upload": "crowdin upload",
"postcrowdin:upload": "find docs/vocdoni-api/ -type f -name '*.mdx' -exec sed -i -e '/#api:/ s/^#//' {} \\; ",
"crowdin:download": "crowdin download",
"postcrowdin:download": "find ./i18n/**/docusaurus-plugin-content-docs/current/vocdoni-api/ -type f -name '*.mdx' -exec sed -i -e '/#api:/ s/^#//' {} \\;",
"gen-api-docs": "docusaurus gen-api-docs all && yarn gen-post",
"clean-api-docs": "docusaurus clean-api-docs all",
"gen-api-docs:version": "docusaurus gen-api-docs:version",
"clean-api-docs:version": "docusaurus clean-api-docs:version",
"gen-all": "docusaurus gen-api-docs all && yarn gen-post",
"gen-all-versioned": "docusaurus gen-api-docs all && docusaurus gen-api-docs:version petstore_versioned:all",
"clean-all": "docusaurus clean-api-docs all",
"clean-all-versioned": "docusaurus clean-api-docs all && docusaurus clean-api-docs:version petstore_versioned:all",
"re-gen": "yarn clean-all && yarn gen-all",
"re-gen-versioned": "yarn clean-all-versioned && yarn gen-all-versioned",
"gen-post": "if [ \"$(uname)\" = \"Darwin\" ]; then npm run gen-post:Darwin; else npm run gen-post:Linux; fi",
"gen-post:Darwin": "grep -L \"mdx-code-block\" docs/vocdoni-api/** | xargs -I {} sed -i '' -e $'/^\\(<\\)/i\\\n````mdx-code-block\n' -e $'/^\\(<\\)/a\\\n````' {}",
"gen-post:Linux": "grep -L \"mdx-code-block\" docs/vocdoni-api/** | xargs sed -i -e '/^\\(<\\)/i````mdx-code-block' -e '/^\\(<\\)/a````'",
"copy-sdk-docs": "rm -rf ./docs/sdk/reference && cp -R $VOCDONI_SDK_PATH/docs/temp_docs/ ./docs/sdk/reference && rm -rf $VOCDONI_SDK_PATH/docs/temp_docs && mv ./docs/sdk/reference/README.md ./docs/sdk/reference/sdk-reference.md && if [ \"$(uname)\" = \"Darwin\" ]; then npm run sdk-post:Darwin; else npm run sdk-post:Linux; fi",
"sdk-post:Darwin": "brew install gsed && find ./docs/sdk/reference -type f | xargs gsed -i -r -e 's/\\[\\@vocdoni\\/sdk\\]\\((\\.\\.\\/)*README\\.md\\)/\\[\\@vocdoni\\/sdk\\]\\(\\/sdk\\)/g' && find ./docs/sdk/reference -type f | xargs gsed -i -e 's/(\\(.*\\).md\\(#[a-zA-Z0-9]*\\)*)/(\\1\\2)/g' && gsed -i -z -r -e 's/^@vocdoni\\/sdk\\\n\\\n//g' ./docs/sdk/reference/sdk-reference.md && find ./docs/sdk/reference -type f | xargs gsed -i -e 's/README/sdk-reference/g'",
"sdk-post:Linux": "find ./docs/sdk/reference -type f | xargs sed -i -r -e 's/\\[\\@vocdoni\\/sdk\\]\\((\\.\\.\\/)*README\\.md\\)/\\[\\@vocdoni\\/sdk\\]\\(\\/sdk\\)/g' && find ./docs/sdk/reference -type f | xargs sed -i -e 's/(\\(.*\\).md\\(#[a-zA-Z0-9]*\\)*)/(\\1\\2)/g' && sed -i -z -r -e 's/^@vocdoni\\/sdk\\\n\\\n//g' ./docs/sdk/reference/sdk-reference.md && find ./docs/sdk/reference -type f | xargs sed -i -e 's/README/sdk-reference/g'"
},
"dependencies": {
"@aragon/ui-components": "0.1.3",
"@chakra-ui/react": "^2.7.0",
"@crowdin/cli": "3",
"@docusaurus/core": "2.2.0",
"@docusaurus/preset-classic": "2.2.0",
"@docusaurus/theme-live-codeblock": "2.2.0",
"@docusaurus/theme-mermaid": "2.2.0",
"@easyops-cn/docusaurus-search-local": "^0.33.6",
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@mantine/hooks": "^4.2.12",
"@mdx-js/react": "^1.6.22",
"@vocdoni/chakra-components": "0.7.17",
"@vocdoni/react-providers": "^0.3.11",
"@vocdoni/sdk": "^0.7.5",
"autoprefixer": "^10.4.13",
"clsx": "^1.1.1",
"docusaurus-plugin-openapi-docs": "^1.5.0",
"docusaurus-tailwindcss": "^0.1.0",
"docusaurus-theme-openapi-docs": "^1.5.0",
"ethers": "^5.7.2",
"framer-motion": "^10.12.16",
"hast-util-is-element": "1.1.0",
"msw": "^2.2.13",
"postcss": "^8.4.18",
"prism-react-renderer": "^1.3.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-icons": "^4.7.1",
"react-markdown": "^8.0.7",
"react-spinners": "^0.13.8",
"rehype-katex": "5",
"remark-gfm": "^3.0.1",
"remark-math": "3",
"styled-components": "^5.3.5",
"tailwindcss": "^3.2.2",
"webpack-loader": "./plugins/webpack-loader"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "^2.2.0",
"@tailwindcss/line-clamp": "^0.4.0",
"@tsconfig/docusaurus": "^1.0.6",
"@typescript-eslint/eslint-plugin": "^5.38.1",
"@typescript-eslint/parser": "^5.38.1",
"eslint": "^8.24.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.31.8",
"prettier": "^2.7.1",
"prettier-plugin-solidity": "^1.0.0-beta.24",
"typescript": "^4.8.4"
},
"browserslist": {
"production": [
">0.5%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"msw": {
"workerDirectory": [
"static/workers"
]
}
}