create-packer 1.34.4 → 1.34.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (458) hide show
  1. package/.gitignore +30 -30
  2. package/LICENSE +21 -21
  3. package/README.md +22 -22
  4. package/package.json +1 -1
  5. package/template/cli/.eslintrc +35 -35
  6. package/template/cli/.gitignore +29 -29
  7. package/template/cli/.prettierignore +6 -6
  8. package/template/cli/.prettierrc.js +20 -20
  9. package/template/cli/LICENSE +21 -21
  10. package/template/cli/README.md +13 -13
  11. package/template/cli/commitlint.config.cjs +1 -1
  12. package/template/cli/package.json +50 -50
  13. package/template/cli/pnpm-workspace.yaml +2 -2
  14. package/template/cli/src/createTemp.ts +63 -63
  15. package/template/cli/src/index.ts +5 -5
  16. package/template/cli/src/utils/index.ts +49 -49
  17. package/template/cli/template/template-1/index.ts +1 -1
  18. package/template/cli/tsconfig.json +20 -20
  19. package/template/cli/utils/pub.js +43 -43
  20. package/template/docusaurus/.gitignore +35 -35
  21. package/template/docusaurus/README.md +41 -41
  22. package/template/docusaurus/babel.config.js +3 -3
  23. package/template/docusaurus/blog/2019-05-28-first-blog-post.md +12 -12
  24. package/template/docusaurus/blog/2019-05-29-long-blog-post.md +44 -44
  25. package/template/docusaurus/blog/2021-08-01-mdx-blog-post.mdx +20 -20
  26. package/template/docusaurus/blog/2021-08-26-welcome/index.md +25 -25
  27. package/template/docusaurus/blog/authors.yml +17 -17
  28. package/template/docusaurus/docs/intro.mdx +47 -47
  29. package/template/docusaurus/docs/tutorial-basics/_category_.json +8 -8
  30. package/template/docusaurus/docs/tutorial-basics/congratulations.md +23 -23
  31. package/template/docusaurus/docs/tutorial-basics/create-a-blog-post.md +34 -34
  32. package/template/docusaurus/docs/tutorial-basics/create-a-document.md +57 -57
  33. package/template/docusaurus/docs/tutorial-basics/create-a-page.md +43 -43
  34. package/template/docusaurus/docs/tutorial-basics/deploy-your-site.md +31 -31
  35. package/template/docusaurus/docs/tutorial-basics/markdown-features.mdx +150 -150
  36. package/template/docusaurus/docs/tutorial-extras/_category_.json +7 -7
  37. package/template/docusaurus/docs/tutorial-extras/manage-docs-versions.md +55 -55
  38. package/template/docusaurus/docs/tutorial-extras/translate-your-site.md +88 -88
  39. package/template/docusaurus/docusaurus.config.js +116 -116
  40. package/template/docusaurus/package.json +52 -52
  41. package/template/docusaurus/sidebars.js +19 -19
  42. package/template/docusaurus/src/components/HomepageFeatures/index.tsx +70 -70
  43. package/template/docusaurus/src/components/HomepageFeatures/styles.module.css +11 -11
  44. package/template/docusaurus/src/css/custom.css +30 -30
  45. package/template/docusaurus/src/pages/index.module.css +23 -23
  46. package/template/docusaurus/src/pages/index.tsx +40 -40
  47. package/template/docusaurus/src/pages/markdown-page.md +7 -7
  48. package/template/docusaurus/static/img/undraw_docusaurus_mountain.svg +171 -171
  49. package/template/docusaurus/static/img/undraw_docusaurus_react.svg +170 -170
  50. package/template/docusaurus/static/img/undraw_docusaurus_tree.svg +40 -40
  51. package/template/docusaurus/tsconfig.json +7 -7
  52. package/template/lib/react/node_modules/.bin/acorn +17 -0
  53. package/template/lib/react/node_modules/.bin/acorn.CMD +12 -0
  54. package/template/lib/react/node_modules/.bin/acorn.ps1 +41 -0
  55. package/template/lib/react/node_modules/.bin/browserslist +17 -0
  56. package/template/lib/react/node_modules/.bin/browserslist.CMD +12 -0
  57. package/template/lib/react/node_modules/.bin/browserslist.ps1 +41 -0
  58. package/template/lib/react/node_modules/.bin/esbuild +17 -0
  59. package/template/lib/react/node_modules/.bin/esbuild.CMD +12 -0
  60. package/template/lib/react/node_modules/.bin/esbuild.ps1 +41 -0
  61. package/template/lib/react/node_modules/.bin/eslint +17 -0
  62. package/template/lib/react/node_modules/.bin/eslint.CMD +12 -0
  63. package/template/lib/react/node_modules/.bin/eslint.ps1 +41 -0
  64. package/template/lib/react/node_modules/.bin/prettier +17 -0
  65. package/template/lib/react/node_modules/.bin/prettier.CMD +12 -0
  66. package/template/lib/react/node_modules/.bin/prettier.ps1 +41 -0
  67. package/template/lib/react/node_modules/.bin/sb +17 -0
  68. package/template/lib/react/node_modules/.bin/sb.CMD +12 -0
  69. package/template/lib/react/node_modules/.bin/sb.ps1 +41 -0
  70. package/template/lib/react/node_modules/.bin/storybook +17 -0
  71. package/template/lib/react/node_modules/.bin/storybook.CMD +12 -0
  72. package/template/lib/react/node_modules/.bin/storybook.ps1 +41 -0
  73. package/template/lib/react/node_modules/.bin/stylelint +17 -0
  74. package/template/lib/react/node_modules/.bin/stylelint.CMD +12 -0
  75. package/template/lib/react/node_modules/.bin/stylelint.ps1 +41 -0
  76. package/template/lib/react/node_modules/.bin/tsc +17 -0
  77. package/template/lib/react/node_modules/.bin/tsc.CMD +12 -0
  78. package/template/lib/react/node_modules/.bin/tsc.ps1 +41 -0
  79. package/template/lib/react/node_modules/.bin/tsserver +17 -0
  80. package/template/lib/react/node_modules/.bin/tsserver.CMD +12 -0
  81. package/template/lib/react/node_modules/.bin/tsserver.ps1 +41 -0
  82. package/template/lib/react/node_modules/.bin/vite +17 -0
  83. package/template/lib/react/node_modules/.bin/vite.CMD +12 -0
  84. package/template/lib/react/node_modules/.bin/vite.ps1 +41 -0
  85. package/template/lib/ts/node_modules/.bin/acorn +17 -0
  86. package/template/lib/ts/node_modules/.bin/acorn.CMD +12 -0
  87. package/template/lib/ts/node_modules/.bin/acorn.ps1 +41 -0
  88. package/template/lib/ts/node_modules/.bin/eslint +17 -0
  89. package/template/lib/ts/node_modules/.bin/eslint.CMD +12 -0
  90. package/template/lib/ts/node_modules/.bin/eslint.ps1 +41 -0
  91. package/template/lib/ts/node_modules/.bin/prettier +17 -0
  92. package/template/lib/ts/node_modules/.bin/prettier.CMD +12 -0
  93. package/template/lib/ts/node_modules/.bin/prettier.ps1 +41 -0
  94. package/template/lib/ts/node_modules/.bin/stylelint +17 -0
  95. package/template/lib/ts/node_modules/.bin/stylelint.CMD +12 -0
  96. package/template/lib/ts/node_modules/.bin/stylelint.ps1 +41 -0
  97. package/template/lib/ts/node_modules/.bin/tsc +17 -0
  98. package/template/lib/ts/node_modules/.bin/tsc.CMD +12 -0
  99. package/template/lib/ts/node_modules/.bin/tsc.ps1 +41 -0
  100. package/template/lib/ts/node_modules/.bin/tsserver +17 -0
  101. package/template/lib/ts/node_modules/.bin/tsserver.CMD +12 -0
  102. package/template/lib/ts/node_modules/.bin/tsserver.ps1 +41 -0
  103. package/template/lib/ts/node_modules/.bin/vitest +17 -0
  104. package/template/lib/ts/node_modules/.bin/vitest.CMD +12 -0
  105. package/template/lib/ts/node_modules/.bin/vitest.ps1 +41 -0
  106. package/template/lib/workspace/.changeset/README.md +8 -8
  107. package/template/lib/workspace/.changeset/config.json +11 -11
  108. package/template/lib/workspace/.editorconfig +13 -13
  109. package/template/lib/workspace/.eslintrc +118 -118
  110. package/template/lib/workspace/.gitignore +36 -36
  111. package/template/lib/workspace/.prettierignore +4 -4
  112. package/template/lib/workspace/.prettierrc +18 -18
  113. package/template/lib/workspace/.storybook/main.ts +32 -32
  114. package/template/lib/workspace/.storybook/preview.tsx +17 -17
  115. package/template/lib/workspace/.stylelintrc +29 -29
  116. package/template/lib/workspace/commitlint.config.cjs +1 -1
  117. package/template/lib/workspace/package.json +73 -73
  118. package/template/lib/workspace/packages/react/.editorconfig +13 -13
  119. package/template/lib/workspace/packages/react/.eslintrc +118 -118
  120. package/template/lib/workspace/packages/react/.gitignore +26 -26
  121. package/template/lib/workspace/packages/react/.prettierignore +4 -4
  122. package/template/lib/workspace/packages/react/.prettierrc +18 -18
  123. package/template/lib/workspace/packages/react/.stylelintrc +29 -29
  124. package/template/lib/workspace/packages/react/global.d.ts +18 -18
  125. package/template/lib/workspace/packages/react/package.json +42 -42
  126. package/template/lib/workspace/packages/react/src/Introduction.mdx +3 -3
  127. package/template/lib/workspace/packages/react/src/button/button.css +30 -30
  128. package/template/lib/workspace/packages/react/src/button/button.stories.ts +43 -43
  129. package/template/lib/workspace/packages/react/src/button/button.tsx +50 -50
  130. package/template/lib/workspace/packages/react/src/button/index.ts +1 -1
  131. package/template/lib/workspace/packages/react/src/index.ts +1 -1
  132. package/template/lib/workspace/packages/react/tsconfig.json +29 -29
  133. package/template/lib/workspace/packages/ts/.eslintrc +79 -79
  134. package/template/lib/workspace/packages/ts/.gitignore +25 -25
  135. package/template/lib/workspace/packages/ts/.prettierrc +12 -12
  136. package/template/lib/workspace/packages/ts/package.json +30 -30
  137. package/template/lib/workspace/packages/ts/src/index.ts +1 -1
  138. package/template/lib/workspace/packages/ts/src/sum.test.ts +6 -6
  139. package/template/lib/workspace/packages/ts/src/sum.ts +3 -3
  140. package/template/lib/workspace/packages/ts/tsconfig.json +24 -24
  141. package/template/lib/workspace/packages/ts/vite.config.ts +5 -5
  142. package/template/lib/workspace/pnpm-workspace.yaml +2 -2
  143. package/template/lib/workspace/postcss.config.cjs +7 -7
  144. package/template/lib/workspace/scripts/build.ts +22 -22
  145. package/template/lib/workspace/tsconfig.json +34 -34
  146. package/template/lib/workspace/tsconfig.node.json +22 -22
  147. package/template/nest/.eslintrc.js +25 -25
  148. package/template/nest/.gitignore +34 -34
  149. package/template/nest/.husky/pre-commit +4 -4
  150. package/template/nest/.prettierrc +6 -6
  151. package/template/nest/README.md +73 -73
  152. package/template/nest/nest-cli.json +5 -5
  153. package/template/nest/package.json +84 -84
  154. package/template/nest/src/app.controller.spec.ts +22 -22
  155. package/template/nest/src/app.controller.ts +12 -12
  156. package/template/nest/src/app.module.ts +10 -10
  157. package/template/nest/src/app.service.ts +8 -8
  158. package/template/nest/src/main.ts +10 -10
  159. package/template/nest/src/utils/transform.interceptor.ts +26 -26
  160. package/template/nest/test/app.e2e-spec.ts +24 -24
  161. package/template/nest/test/jest-e2e.json +9 -9
  162. package/template/nest/tsconfig.build.json +5 -5
  163. package/template/nest/tsconfig.json +21 -21
  164. package/template/web-app/next/.eslintrc.json +8 -8
  165. package/template/web-app/next/.gitignore +36 -36
  166. package/template/web-app/next/.husky/commit-msg +4 -4
  167. package/template/web-app/next/.husky/pre-commit +4 -4
  168. package/template/web-app/next/.stylelintrc +29 -29
  169. package/template/web-app/next/README.md +34 -34
  170. package/template/web-app/next/app/globals.css +22 -22
  171. package/template/web-app/next/app/layout.tsx +18 -18
  172. package/template/web-app/next/app/page.tsx +113 -113
  173. package/template/web-app/next/commitlint.config.cjs +1 -1
  174. package/template/web-app/next/next-env.d.ts +5 -5
  175. package/template/web-app/next/next.config.js +5 -5
  176. package/template/web-app/next/package.json +47 -47
  177. package/template/web-app/next/postcss.config.js +6 -6
  178. package/template/web-app/next/tailwind.config.js +20 -20
  179. package/template/web-app/next/tsconfig.json +21 -21
  180. package/template/web-app/react/.env +2 -2
  181. package/template/web-app/react/.env.development +2 -2
  182. package/template/web-app/react/.eslintignore +4 -4
  183. package/template/web-app/react/.eslintrc +118 -118
  184. package/template/web-app/react/.gitignore +28 -28
  185. package/template/web-app/react/.husky/commit-msg +4 -4
  186. package/template/web-app/react/.husky/pre-commit +4 -4
  187. package/template/web-app/react/.prettierignore +6 -6
  188. package/template/web-app/react/.stylelintignore +4 -4
  189. package/template/web-app/react/.stylelintrc +25 -25
  190. package/template/web-app/react/.vscode/settings.json +17 -17
  191. package/template/web-app/react/README.md +14 -14
  192. package/template/web-app/react/commitlint.config.cjs +1 -1
  193. package/template/web-app/react/domain/app/app.model.ts +7 -7
  194. package/template/web-app/react/domain/app/app.styled.ts +3 -3
  195. package/template/web-app/react/domain/app/components/app-context.tsx +17 -17
  196. package/template/web-app/react/domain/app/components/app.tsx +24 -24
  197. package/template/web-app/react/domain/app/components/index.ts +1 -1
  198. package/template/web-app/react/domain/app/index.ts +2 -2
  199. package/template/web-app/react/domain/router/home/ids.ts +3 -3
  200. package/template/web-app/react/domain/router/home/index.ts +2 -2
  201. package/template/web-app/react/domain/router/home/routes.tsx +13 -13
  202. package/template/web-app/react/domain/router/ids.ts +6 -6
  203. package/template/web-app/react/domain/router/index.ts +3 -3
  204. package/template/web-app/react/domain/router/router.tsx +28 -28
  205. package/template/web-app/react/domain/router/router.types.ts +3 -3
  206. package/template/web-app/react/index.html +13 -13
  207. package/template/web-app/react/main.tsx +4 -4
  208. package/template/web-app/react/mockUtils.ts +6 -6
  209. package/template/web-app/react/package.json +81 -81
  210. package/template/web-app/react/pages/home/home.mock.ts +19 -19
  211. package/template/web-app/react/pages/home/home.styled.ts +7 -7
  212. package/template/web-app/react/pages/home/home.tsx +10 -10
  213. package/template/web-app/react/pages/home/index.ts +1 -1
  214. package/template/web-app/react/pages/index.tsx +18 -18
  215. package/template/web-app/react/pages/not-found.tsx +3 -3
  216. package/template/web-app/react/postcss.config.cjs +7 -7
  217. package/template/web-app/react/scripts/createChunks.ts +26 -26
  218. package/template/web-app/react/scripts/index.ts +1 -1
  219. package/template/web-app/react/shared/hooks/defineRouter/defineRouter.types.ts +33 -33
  220. package/template/web-app/react/shared/hooks/defineRouter/index.ts +2 -2
  221. package/template/web-app/react/shared/hooks/index.ts +6 -6
  222. package/template/web-app/react/shared/hooks/useInterval.ts +26 -26
  223. package/template/web-app/react/shared/hooks/useLoadingAction.ts +27 -27
  224. package/template/web-app/react/shared/hooks/useLowPriorityState.ts +26 -26
  225. package/template/web-app/react/shared/hooks/useSyncState.ts +15 -15
  226. package/template/web-app/react/shared/hooks/useVisible.ts +27 -27
  227. package/template/web-app/react/shared/service/api.ts +1 -1
  228. package/template/web-app/react/shared/service/home.ts +10 -10
  229. package/template/web-app/react/shared/service/index.ts +3 -3
  230. package/template/web-app/react/shared/service/request.ts +5 -5
  231. package/template/web-app/react/shared/theme/index.ts +1 -1
  232. package/template/web-app/react/shared/theme/theme.styled.ts +56 -56
  233. package/template/web-app/react/shared/tools/componentInstance.tsx +80 -80
  234. package/template/web-app/react/shared/tools/index.ts +1 -1
  235. package/template/web-app/react/shared/types/index.ts +1 -1
  236. package/template/web-app/react/shared/types/utils.ts +2 -2
  237. package/template/web-app/react/tsconfig.json +43 -43
  238. package/template/web-app/react/tsconfig.node.json +10 -10
  239. package/template/web-app/react/vite-env.d.ts +18 -18
  240. package/template/web-app/react/vite.config.ts +76 -76
  241. package/template/web-app/react-webpack/.editorconfig +13 -13
  242. package/template/web-app/react-webpack/.env +2 -2
  243. package/template/web-app/react-webpack/.env.dev +2 -2
  244. package/template/web-app/react-webpack/.eslintignore +4 -4
  245. package/template/web-app/react-webpack/.eslintrc +118 -118
  246. package/template/web-app/react-webpack/.gitignore +27 -27
  247. package/template/web-app/react-webpack/.husky/commit-msg +4 -4
  248. package/template/web-app/react-webpack/.husky/pre-commit +4 -4
  249. package/template/web-app/react-webpack/.prettierignore +6 -6
  250. package/template/web-app/react-webpack/.stylelintignore +4 -4
  251. package/template/web-app/react-webpack/.stylelintrc +25 -25
  252. package/template/web-app/react-webpack/.vscode/settings.json +17 -17
  253. package/template/web-app/react-webpack/README.md +13 -13
  254. package/template/web-app/react-webpack/commitlint.config.js +1 -1
  255. package/template/web-app/react-webpack/domain/app/app.model.ts +7 -7
  256. package/template/web-app/react-webpack/domain/app/app.styled.ts +3 -3
  257. package/template/web-app/react-webpack/domain/app/components/app-context.tsx +17 -17
  258. package/template/web-app/react-webpack/domain/app/components/app.tsx +24 -24
  259. package/template/web-app/react-webpack/domain/app/components/index.ts +1 -1
  260. package/template/web-app/react-webpack/domain/app/index.ts +2 -2
  261. package/template/web-app/react-webpack/domain/router/home/ids.ts +3 -3
  262. package/template/web-app/react-webpack/domain/router/home/index.ts +2 -2
  263. package/template/web-app/react-webpack/domain/router/home/routes.tsx +13 -13
  264. package/template/web-app/react-webpack/domain/router/ids.ts +6 -6
  265. package/template/web-app/react-webpack/domain/router/index.ts +3 -3
  266. package/template/web-app/react-webpack/domain/router/router.tsx +28 -28
  267. package/template/web-app/react-webpack/domain/router/router.types.ts +3 -3
  268. package/template/web-app/react-webpack/global.d.ts +26 -26
  269. package/template/web-app/react-webpack/index.css +3 -3
  270. package/template/web-app/react-webpack/index.html +12 -12
  271. package/template/web-app/react-webpack/main.tsx +4 -4
  272. package/template/web-app/react-webpack/package.json +88 -88
  273. package/template/web-app/react-webpack/pages/home/home.styled.ts +7 -7
  274. package/template/web-app/react-webpack/pages/home/home.tsx +10 -10
  275. package/template/web-app/react-webpack/pages/home/index.ts +1 -1
  276. package/template/web-app/react-webpack/pages/index.tsx +18 -18
  277. package/template/web-app/react-webpack/pages/not-found.tsx +3 -3
  278. package/template/web-app/react-webpack/postcss.config.js +7 -7
  279. package/template/web-app/react-webpack/shared/hooks/defineRouter/defineRouter.types.ts +33 -33
  280. package/template/web-app/react-webpack/shared/hooks/defineRouter/index.ts +2 -2
  281. package/template/web-app/react-webpack/shared/hooks/index.ts +6 -6
  282. package/template/web-app/react-webpack/shared/hooks/useInterval.ts +26 -26
  283. package/template/web-app/react-webpack/shared/hooks/useLoadingAction.ts +27 -27
  284. package/template/web-app/react-webpack/shared/hooks/useLowPriorityState.ts +26 -26
  285. package/template/web-app/react-webpack/shared/hooks/useSyncState.ts +15 -15
  286. package/template/web-app/react-webpack/shared/hooks/useVisible.ts +27 -27
  287. package/template/web-app/react-webpack/shared/service/home.ts +8 -8
  288. package/template/web-app/react-webpack/shared/service/index.ts +2 -2
  289. package/template/web-app/react-webpack/shared/service/request.ts +5 -5
  290. package/template/web-app/react-webpack/shared/theme/index.ts +1 -1
  291. package/template/web-app/react-webpack/shared/theme/theme.styled.ts +56 -56
  292. package/template/web-app/react-webpack/shared/tools/componentInstance.tsx +78 -78
  293. package/template/web-app/react-webpack/shared/tools/index.ts +1 -1
  294. package/template/web-app/react-webpack/shared/types/index.ts +1 -1
  295. package/template/web-app/react-webpack/shared/types/utils.ts +2 -2
  296. package/template/web-app/react-webpack/tsconfig.json +37 -37
  297. package/template/web-app/react-webpack/tsconfig.node.json +9 -9
  298. package/template/web-app/react-webpack/webpack.config.mjs +162 -162
  299. package/template/web-app/react-webpack/webpack_config/constant.mjs +5 -5
  300. package/template/web-app/solid/.gitignore +1 -1
  301. package/template/web-app/solid/.stylelintrc +29 -29
  302. package/template/web-app/solid/README.md +34 -34
  303. package/template/web-app/solid/index.html +16 -16
  304. package/template/web-app/solid/package.json +51 -51
  305. package/template/web-app/solid/src/app.container.tsx +12 -12
  306. package/template/web-app/solid/src/index.css +15 -15
  307. package/template/web-app/solid/src/index.tsx +15 -15
  308. package/template/web-app/solid/src/layout/index.ts +1 -1
  309. package/template/web-app/solid/src/layout/layout.container.tsx +5 -5
  310. package/template/web-app/solid/src/pages/home/home.container.tsx +5 -5
  311. package/template/web-app/solid/src/pages/home/index.ts +1 -1
  312. package/template/web-app/solid/src/pages/notFound/index.ts +1 -1
  313. package/template/web-app/solid/src/pages/notFound/notFound.container.tsx +3 -3
  314. package/template/web-app/solid/src/router/home/index.ts +2 -2
  315. package/template/web-app/solid/src/router/home/paths.ts +3 -3
  316. package/template/web-app/solid/src/router/home/routes.tsx +12 -12
  317. package/template/web-app/solid/src/router/index.ts +2 -2
  318. package/template/web-app/solid/src/router/paths.ts +5 -5
  319. package/template/web-app/solid/src/router/routes.ts +16 -16
  320. package/template/web-app/solid/tsconfig.json +20 -20
  321. package/template/web-app/solid/vite.config.ts +23 -23
  322. package/template/web-app/svelte/.env +2 -2
  323. package/template/web-app/svelte/.env.development +2 -2
  324. package/template/web-app/svelte/.eslintignore +13 -13
  325. package/template/web-app/svelte/.eslintrc +76 -76
  326. package/template/web-app/svelte/.gitignore +27 -27
  327. package/template/web-app/svelte/.husky/commit-msg +4 -4
  328. package/template/web-app/svelte/.husky/pre-commit +4 -4
  329. package/template/web-app/svelte/.prettierignore +6 -6
  330. package/template/web-app/svelte/.prettierrc +14 -14
  331. package/template/web-app/svelte/.svelte-kit/ambient.d.ts +153 -153
  332. package/template/web-app/svelte/.svelte-kit/generated/client/app.js +18 -18
  333. package/template/web-app/svelte/.svelte-kit/generated/root.svelte +55 -55
  334. package/template/web-app/svelte/.svelte-kit/generated/server/internal.js +30 -30
  335. package/template/web-app/svelte/.svelte-kit/tsconfig.json +38 -38
  336. package/template/web-app/svelte/.svelte-kit/types/route_meta_data.json +2 -2
  337. package/template/web-app/svelte/.svelte-kit/types/src/routes/$types.d.ts +19 -19
  338. package/template/web-app/svelte/README.md +38 -38
  339. package/template/web-app/svelte/commitlint.config.cjs +1 -1
  340. package/template/web-app/svelte/package.json +55 -55
  341. package/template/web-app/svelte/scripts/createChunks.ts +26 -26
  342. package/template/web-app/svelte/scripts/index.ts +1 -1
  343. package/template/web-app/svelte/src/app.d.ts +12 -12
  344. package/template/web-app/svelte/src/app.html +12 -12
  345. package/template/web-app/svelte/src/routes/+page.svelte +2 -2
  346. package/template/web-app/svelte/svelte.config.js +17 -17
  347. package/template/web-app/svelte/tsconfig.json +21 -21
  348. package/template/web-app/svelte/vite-env.d.ts +11 -11
  349. package/template/web-app/svelte/vite.config.ts +55 -55
  350. package/template/web-app/vue/.env +2 -2
  351. package/template/web-app/vue/.env.development +2 -2
  352. package/template/web-app/vue/.eslintignore +4 -4
  353. package/template/web-app/vue/.eslintrc +104 -104
  354. package/template/web-app/vue/.gitignore +27 -27
  355. package/template/web-app/vue/.prettierignore +6 -6
  356. package/template/web-app/vue/.stylelintignore +4 -4
  357. package/template/web-app/vue/.stylelintrc +29 -29
  358. package/template/web-app/vue/README.md +14 -14
  359. package/template/web-app/vue/domain/app/app.ts +4 -4
  360. package/template/web-app/vue/domain/app/components/app.vue +18 -18
  361. package/template/web-app/vue/domain/app/components/index.ts +1 -1
  362. package/template/web-app/vue/domain/app/createComponentInstance.ts +44 -44
  363. package/template/web-app/vue/main.ts +7 -7
  364. package/template/web-app/vue/mockUtils.ts +6 -6
  365. package/template/web-app/vue/pages/home/home.mock.ts +19 -19
  366. package/template/web-app/vue/pages/home/home.vue +16 -16
  367. package/template/web-app/vue/pages/home/index.ts +1 -1
  368. package/template/web-app/vue/pages/index.ts +1 -1
  369. package/template/web-app/vue/pages/index.vue +3 -3
  370. package/template/web-app/vue/pages/not-found.vue +3 -3
  371. package/template/web-app/vue/router/home/index.ts +2 -2
  372. package/template/web-app/vue/router/home/names.ts +3 -3
  373. package/template/web-app/vue/router/home/routes.ts +8 -8
  374. package/template/web-app/vue/router/index.ts +26 -26
  375. package/template/web-app/vue/router/names.ts +5 -5
  376. package/template/web-app/vue/scripts/createChunks.ts +26 -26
  377. package/template/web-app/vue/scripts/index.ts +1 -1
  378. package/template/web-app/vue/shared/hooks/index.ts +2 -2
  379. package/template/web-app/vue/shared/hooks/useList.ts +104 -104
  380. package/template/web-app/vue/shared/hooks/useVisible.ts +27 -27
  381. package/template/web-app/vue/shared/service/api.ts +1 -1
  382. package/template/web-app/vue/shared/service/home.ts +10 -10
  383. package/template/web-app/vue/shared/service/index.ts +3 -3
  384. package/template/web-app/vue/shared/service/request.ts +5 -5
  385. package/template/web-app/vue/style.css +3 -3
  386. package/template/web-app/vue/tailwind.config.cjs +18 -18
  387. package/template/web-app/vue/tsconfig.json +24 -24
  388. package/template/web-app/vue/vite-env.d.ts +18 -18
  389. package/template/web-app/vue/vite.config.ts +65 -65
  390. package/template/web-extension/.env +2 -2
  391. package/template/web-extension/.env.development +1 -1
  392. package/template/web-extension/.eslintignore +4 -4
  393. package/template/web-extension/.eslintrc +119 -119
  394. package/template/web-extension/.gitignore +27 -27
  395. package/template/web-extension/.husky/commit-msg +4 -4
  396. package/template/web-extension/.husky/pre-commit +4 -4
  397. package/template/web-extension/.prettierignore +6 -6
  398. package/template/web-extension/.stylelintignore +4 -4
  399. package/template/web-extension/.stylelintrc +25 -25
  400. package/template/web-extension/.vscode/extensions.json +7 -7
  401. package/template/web-extension/.vscode/settings.json +17 -17
  402. package/template/web-extension/README.md +13 -13
  403. package/template/web-extension/commitlint.config.cjs +1 -1
  404. package/template/web-extension/content_script/constants/base.ts +1 -1
  405. package/template/web-extension/content_script/constants/index.ts +1 -1
  406. package/template/web-extension/content_script/domain/app/index.ts +1 -1
  407. package/template/web-extension/content_script/domain/app/tools/index.ts +1 -1
  408. package/template/web-extension/content_script/domain/app/tools/insertApp.tsx +55 -55
  409. package/template/web-extension/content_script/index.tsx +3 -3
  410. package/template/web-extension/content_script/modules/common/common.tsx +10 -10
  411. package/template/web-extension/content_script/modules/common/index.ts +2 -2
  412. package/template/web-extension/content_script/modules/common/insert.tsx +9 -9
  413. package/template/web-extension/content_script/modules/index.ts +1 -1
  414. package/template/web-extension/defineManifest.ts +32 -32
  415. package/template/web-extension/package.json +79 -79
  416. package/template/web-extension/pnpm-lock.yaml +6220 -6220
  417. package/template/web-extension/popup/index.tsx +14 -14
  418. package/template/web-extension/popup/popup.container.tsx +3 -3
  419. package/template/web-extension/popup/popup.html +13 -13
  420. package/template/web-extension/postcss.config.cjs +7 -7
  421. package/template/web-extension/shared/background/index.ts +1 -1
  422. package/template/web-extension/shared/background/message.ts +11 -11
  423. package/template/web-extension/shared/components/app-context.tsx +14 -14
  424. package/template/web-extension/shared/components/index.ts +1 -1
  425. package/template/web-extension/shared/content/index.ts +1 -1
  426. package/template/web-extension/shared/content/message.ts +15 -15
  427. package/template/web-extension/shared/hooks/index.ts +2 -2
  428. package/template/web-extension/shared/hooks/useSyncState.ts +15 -15
  429. package/template/web-extension/shared/hooks/useVisible.ts +27 -27
  430. package/template/web-extension/shared/popup/index.ts +1 -1
  431. package/template/web-extension/shared/popup/message.ts +12 -12
  432. package/template/web-extension/shared/service/index.ts +1 -1
  433. package/template/web-extension/shared/service/request.ts +5 -5
  434. package/template/web-extension/shared/styles/global.styled.ts +8 -8
  435. package/template/web-extension/shared/styles/index.ts +2 -2
  436. package/template/web-extension/shared/styles/theme.styled.ts +56 -56
  437. package/template/web-extension/shared/tools/index.ts +1 -1
  438. package/template/web-extension/shared/tools/message.ts +80 -80
  439. package/template/web-extension/shared/types/index.ts +1 -1
  440. package/template/web-extension/shared/types/utils.ts +3 -3
  441. package/template/web-extension/tsconfig.json +44 -44
  442. package/template/web-extension/tsconfig.node.json +10 -10
  443. package/template/web-extension/vite-env.d.ts +17 -17
  444. package/template/web-extension/vite.config.ts +46 -46
  445. package/template/lib/workspace/node_modules/.pnpm/node_modules/react-lib/.gitignore +0 -26
  446. package/template/lib/workspace/node_modules/.pnpm/node_modules/ts-lib/.gitignore +0 -25
  447. package/template/lib/workspace/packages/ts/coverage/base.css +0 -224
  448. package/template/lib/workspace/packages/ts/coverage/block-navigation.js +0 -87
  449. package/template/lib/workspace/packages/ts/coverage/clover.xml +0 -16
  450. package/template/lib/workspace/packages/ts/coverage/coverage-final.json +0 -3
  451. package/template/lib/workspace/packages/ts/coverage/favicon.png +0 -0
  452. package/template/lib/workspace/packages/ts/coverage/index.html +0 -131
  453. package/template/lib/workspace/packages/ts/coverage/index.ts.html +0 -88
  454. package/template/lib/workspace/packages/ts/coverage/prettify.css +0 -1
  455. package/template/lib/workspace/packages/ts/coverage/prettify.js +0 -2
  456. package/template/lib/workspace/packages/ts/coverage/sort-arrow-sprite.png +0 -0
  457. package/template/lib/workspace/packages/ts/coverage/sorter.js +0 -196
  458. package/template/lib/workspace/packages/ts/coverage/sum.ts.html +0 -94
@@ -1,150 +1,150 @@
1
- ---
2
- sidebar_position: 4
3
- ---
4
-
5
- # Markdown Features
6
-
7
- Docusaurus supports **[Markdown](https://daringfireball.net/projects/markdown/syntax)** and a few **additional features**.
8
-
9
- ## Front Matter
10
-
11
- Markdown documents have metadata at the top called [Front Matter](https://jekyllrb.com/docs/front-matter/):
12
-
13
- ```text title="my-doc.md"
14
- // highlight-start
15
- ---
16
- id: my-doc-id
17
- title: My document title
18
- description: My document description
19
- slug: /my-custom-url
20
- ---
21
- // highlight-end
22
-
23
- ## Markdown heading
24
-
25
- Markdown text with [links](./hello.md)
26
- ```
27
-
28
- ## Links
29
-
30
- Regular Markdown links are supported, using url paths or relative file paths.
31
-
32
- ```md
33
- Let's see how to [Create a page](/create-a-page).
34
- ```
35
-
36
- ```md
37
- Let's see how to [Create a page](./create-a-page.md).
38
- ```
39
-
40
- **Result:** Let's see how to [Create a page](./create-a-page.md).
41
-
42
- ## Images
43
-
44
- Regular Markdown images are supported.
45
-
46
- You can use absolute paths to reference images in the static directory (`static/img/docusaurus.png`):
47
-
48
- ```md
49
- ![Docusaurus logo](/img/docusaurus.png)
50
- ```
51
-
52
- ![Docusaurus logo](/img/docusaurus.png)
53
-
54
- You can reference images relative to the current file as well. This is particularly useful to colocate images close to the Markdown files using them:
55
-
56
- ```md
57
- ![Docusaurus logo](./img/docusaurus.png)
58
- ```
59
-
60
- ## Code Blocks
61
-
62
- Markdown code blocks are supported with Syntax highlighting.
63
-
64
- ```jsx title="src/components/HelloDocusaurus.js"
65
- function HelloDocusaurus() {
66
- return (
67
- <h1>Hello, Docusaurus!</h1>
68
- )
69
- }
70
- ```
71
-
72
- ```jsx title="src/components/HelloDocusaurus.js"
73
- function HelloDocusaurus() {
74
- return <h1>Hello, Docusaurus!</h1>;
75
- }
76
- ```
77
-
78
- ## Admonitions
79
-
80
- Docusaurus has a special syntax to create admonitions and callouts:
81
-
82
- :::tip My tip
83
-
84
- Use this awesome feature option
85
-
86
- :::
87
-
88
- :::danger Take care
89
-
90
- This action is dangerous
91
-
92
- :::
93
-
94
- :::tip My tip
95
-
96
- Use this awesome feature option
97
-
98
- :::
99
-
100
- :::danger Take care
101
-
102
- This action is dangerous
103
-
104
- :::
105
-
106
- ## MDX and React Components
107
-
108
- [MDX](https://mdxjs.com/) can make your documentation more **interactive** and allows using any **React components inside Markdown**:
109
-
110
- ```jsx
111
- export const Highlight = ({children, color}) => (
112
- <span
113
- style={{
114
- backgroundColor: color,
115
- borderRadius: '20px',
116
- color: '#fff',
117
- padding: '10px',
118
- cursor: 'pointer',
119
- }}
120
- onClick={() => {
121
- alert(`You clicked the color ${color} with label ${children}`)
122
- }}>
123
- {children}
124
- </span>
125
- );
126
-
127
- This is <Highlight color="#25c2a0">Docusaurus green</Highlight> !
128
-
129
- This is <Highlight color="#1877F2">Facebook blue</Highlight> !
130
- ```
131
-
132
- export const Highlight = ({children, color}) => (
133
- <span
134
- style={{
135
- backgroundColor: color,
136
- borderRadius: '20px',
137
- color: '#fff',
138
- padding: '10px',
139
- cursor: 'pointer',
140
- }}
141
- onClick={() => {
142
- alert(`You clicked the color ${color} with label ${children}`);
143
- }}>
144
- {children}
145
- </span>
146
- );
147
-
148
- This is <Highlight color="#25c2a0">Docusaurus green</Highlight> !
149
-
150
- This is <Highlight color="#1877F2">Facebook blue</Highlight> !
1
+ ---
2
+ sidebar_position: 4
3
+ ---
4
+
5
+ # Markdown Features
6
+
7
+ Docusaurus supports **[Markdown](https://daringfireball.net/projects/markdown/syntax)** and a few **additional features**.
8
+
9
+ ## Front Matter
10
+
11
+ Markdown documents have metadata at the top called [Front Matter](https://jekyllrb.com/docs/front-matter/):
12
+
13
+ ```text title="my-doc.md"
14
+ // highlight-start
15
+ ---
16
+ id: my-doc-id
17
+ title: My document title
18
+ description: My document description
19
+ slug: /my-custom-url
20
+ ---
21
+ // highlight-end
22
+
23
+ ## Markdown heading
24
+
25
+ Markdown text with [links](./hello.md)
26
+ ```
27
+
28
+ ## Links
29
+
30
+ Regular Markdown links are supported, using url paths or relative file paths.
31
+
32
+ ```md
33
+ Let's see how to [Create a page](/create-a-page).
34
+ ```
35
+
36
+ ```md
37
+ Let's see how to [Create a page](./create-a-page.md).
38
+ ```
39
+
40
+ **Result:** Let's see how to [Create a page](./create-a-page.md).
41
+
42
+ ## Images
43
+
44
+ Regular Markdown images are supported.
45
+
46
+ You can use absolute paths to reference images in the static directory (`static/img/docusaurus.png`):
47
+
48
+ ```md
49
+ ![Docusaurus logo](/img/docusaurus.png)
50
+ ```
51
+
52
+ ![Docusaurus logo](/img/docusaurus.png)
53
+
54
+ You can reference images relative to the current file as well. This is particularly useful to colocate images close to the Markdown files using them:
55
+
56
+ ```md
57
+ ![Docusaurus logo](./img/docusaurus.png)
58
+ ```
59
+
60
+ ## Code Blocks
61
+
62
+ Markdown code blocks are supported with Syntax highlighting.
63
+
64
+ ```jsx title="src/components/HelloDocusaurus.js"
65
+ function HelloDocusaurus() {
66
+ return (
67
+ <h1>Hello, Docusaurus!</h1>
68
+ )
69
+ }
70
+ ```
71
+
72
+ ```jsx title="src/components/HelloDocusaurus.js"
73
+ function HelloDocusaurus() {
74
+ return <h1>Hello, Docusaurus!</h1>;
75
+ }
76
+ ```
77
+
78
+ ## Admonitions
79
+
80
+ Docusaurus has a special syntax to create admonitions and callouts:
81
+
82
+ :::tip My tip
83
+
84
+ Use this awesome feature option
85
+
86
+ :::
87
+
88
+ :::danger Take care
89
+
90
+ This action is dangerous
91
+
92
+ :::
93
+
94
+ :::tip My tip
95
+
96
+ Use this awesome feature option
97
+
98
+ :::
99
+
100
+ :::danger Take care
101
+
102
+ This action is dangerous
103
+
104
+ :::
105
+
106
+ ## MDX and React Components
107
+
108
+ [MDX](https://mdxjs.com/) can make your documentation more **interactive** and allows using any **React components inside Markdown**:
109
+
110
+ ```jsx
111
+ export const Highlight = ({children, color}) => (
112
+ <span
113
+ style={{
114
+ backgroundColor: color,
115
+ borderRadius: '20px',
116
+ color: '#fff',
117
+ padding: '10px',
118
+ cursor: 'pointer',
119
+ }}
120
+ onClick={() => {
121
+ alert(`You clicked the color ${color} with label ${children}`)
122
+ }}>
123
+ {children}
124
+ </span>
125
+ );
126
+
127
+ This is <Highlight color="#25c2a0">Docusaurus green</Highlight> !
128
+
129
+ This is <Highlight color="#1877F2">Facebook blue</Highlight> !
130
+ ```
131
+
132
+ export const Highlight = ({children, color}) => (
133
+ <span
134
+ style={{
135
+ backgroundColor: color,
136
+ borderRadius: '20px',
137
+ color: '#fff',
138
+ padding: '10px',
139
+ cursor: 'pointer',
140
+ }}
141
+ onClick={() => {
142
+ alert(`You clicked the color ${color} with label ${children}`);
143
+ }}>
144
+ {children}
145
+ </span>
146
+ );
147
+
148
+ This is <Highlight color="#25c2a0">Docusaurus green</Highlight> !
149
+
150
+ This is <Highlight color="#1877F2">Facebook blue</Highlight> !
@@ -1,7 +1,7 @@
1
- {
2
- "label": "Tutorial - Extras",
3
- "position": 3,
4
- "link": {
5
- "type": "generated-index"
6
- }
7
- }
1
+ {
2
+ "label": "Tutorial - Extras",
3
+ "position": 3,
4
+ "link": {
5
+ "type": "generated-index"
6
+ }
7
+ }
@@ -1,55 +1,55 @@
1
- ---
2
- sidebar_position: 1
3
- ---
4
-
5
- # Manage Docs Versions
6
-
7
- Docusaurus can manage multiple versions of your docs.
8
-
9
- ## Create a docs version
10
-
11
- Release a version 1.0 of your project:
12
-
13
- ```bash
14
- npm run docusaurus docs:version 1.0
15
- ```
16
-
17
- The `docs` folder is copied into `versioned_docs/version-1.0` and `versions.json` is created.
18
-
19
- Your docs now have 2 versions:
20
-
21
- - `1.0` at `http://localhost:3000/docs/` for the version 1.0 docs
22
- - `current` at `http://localhost:3000/docs/next/` for the **upcoming, unreleased docs**
23
-
24
- ## Add a Version Dropdown
25
-
26
- To navigate seamlessly across versions, add a version dropdown.
27
-
28
- Modify the `docusaurus.config.js` file:
29
-
30
- ```js title="docusaurus.config.js"
31
- module.exports = {
32
- themeConfig: {
33
- navbar: {
34
- items: [
35
- // highlight-start
36
- {
37
- type: 'docsVersionDropdown',
38
- },
39
- // highlight-end
40
- ],
41
- },
42
- },
43
- };
44
- ```
45
-
46
- The docs version dropdown appears in your navbar:
47
-
48
- ![Docs Version Dropdown](./img/docsVersionDropdown.png)
49
-
50
- ## Update an existing version
51
-
52
- It is possible to edit versioned docs in their respective folder:
53
-
54
- - `versioned_docs/version-1.0/hello.md` updates `http://localhost:3000/docs/hello`
55
- - `docs/hello.md` updates `http://localhost:3000/docs/next/hello`
1
+ ---
2
+ sidebar_position: 1
3
+ ---
4
+
5
+ # Manage Docs Versions
6
+
7
+ Docusaurus can manage multiple versions of your docs.
8
+
9
+ ## Create a docs version
10
+
11
+ Release a version 1.0 of your project:
12
+
13
+ ```bash
14
+ npm run docusaurus docs:version 1.0
15
+ ```
16
+
17
+ The `docs` folder is copied into `versioned_docs/version-1.0` and `versions.json` is created.
18
+
19
+ Your docs now have 2 versions:
20
+
21
+ - `1.0` at `http://localhost:3000/docs/` for the version 1.0 docs
22
+ - `current` at `http://localhost:3000/docs/next/` for the **upcoming, unreleased docs**
23
+
24
+ ## Add a Version Dropdown
25
+
26
+ To navigate seamlessly across versions, add a version dropdown.
27
+
28
+ Modify the `docusaurus.config.js` file:
29
+
30
+ ```js title="docusaurus.config.js"
31
+ module.exports = {
32
+ themeConfig: {
33
+ navbar: {
34
+ items: [
35
+ // highlight-start
36
+ {
37
+ type: 'docsVersionDropdown',
38
+ },
39
+ // highlight-end
40
+ ],
41
+ },
42
+ },
43
+ };
44
+ ```
45
+
46
+ The docs version dropdown appears in your navbar:
47
+
48
+ ![Docs Version Dropdown](./img/docsVersionDropdown.png)
49
+
50
+ ## Update an existing version
51
+
52
+ It is possible to edit versioned docs in their respective folder:
53
+
54
+ - `versioned_docs/version-1.0/hello.md` updates `http://localhost:3000/docs/hello`
55
+ - `docs/hello.md` updates `http://localhost:3000/docs/next/hello`
@@ -1,88 +1,88 @@
1
- ---
2
- sidebar_position: 2
3
- ---
4
-
5
- # Translate your site
6
-
7
- Let's translate `docs/intro.md` to French.
8
-
9
- ## Configure i18n
10
-
11
- Modify `docusaurus.config.js` to add support for the `fr` locale:
12
-
13
- ```js title="docusaurus.config.js"
14
- module.exports = {
15
- i18n: {
16
- defaultLocale: 'en',
17
- locales: ['en', 'fr'],
18
- },
19
- };
20
- ```
21
-
22
- ## Translate a doc
23
-
24
- Copy the `docs/intro.md` file to the `i18n/fr` folder:
25
-
26
- ```bash
27
- mkdir -p i18n/fr/docusaurus-plugin-content-docs/current/
28
-
29
- cp docs/intro.md i18n/fr/docusaurus-plugin-content-docs/current/intro.md
30
- ```
31
-
32
- Translate `i18n/fr/docusaurus-plugin-content-docs/current/intro.md` in French.
33
-
34
- ## Start your localized site
35
-
36
- Start your site on the French locale:
37
-
38
- ```bash
39
- npm run start -- --locale fr
40
- ```
41
-
42
- Your localized site is accessible at [http://localhost:3000/fr/](http://localhost:3000/fr/) and the `Getting Started` page is translated.
43
-
44
- :::caution
45
-
46
- In development, you can only use one locale at a same time.
47
-
48
- :::
49
-
50
- ## Add a Locale Dropdown
51
-
52
- To navigate seamlessly across languages, add a locale dropdown.
53
-
54
- Modify the `docusaurus.config.js` file:
55
-
56
- ```js title="docusaurus.config.js"
57
- module.exports = {
58
- themeConfig: {
59
- navbar: {
60
- items: [
61
- // highlight-start
62
- {
63
- type: 'localeDropdown',
64
- },
65
- // highlight-end
66
- ],
67
- },
68
- },
69
- };
70
- ```
71
-
72
- The locale dropdown now appears in your navbar:
73
-
74
- ![Locale Dropdown](./img/localeDropdown.png)
75
-
76
- ## Build your localized site
77
-
78
- Build your site for a specific locale:
79
-
80
- ```bash
81
- npm run build -- --locale fr
82
- ```
83
-
84
- Or build your site to include all the locales at once:
85
-
86
- ```bash
87
- npm run build
88
- ```
1
+ ---
2
+ sidebar_position: 2
3
+ ---
4
+
5
+ # Translate your site
6
+
7
+ Let's translate `docs/intro.md` to French.
8
+
9
+ ## Configure i18n
10
+
11
+ Modify `docusaurus.config.js` to add support for the `fr` locale:
12
+
13
+ ```js title="docusaurus.config.js"
14
+ module.exports = {
15
+ i18n: {
16
+ defaultLocale: 'en',
17
+ locales: ['en', 'fr'],
18
+ },
19
+ };
20
+ ```
21
+
22
+ ## Translate a doc
23
+
24
+ Copy the `docs/intro.md` file to the `i18n/fr` folder:
25
+
26
+ ```bash
27
+ mkdir -p i18n/fr/docusaurus-plugin-content-docs/current/
28
+
29
+ cp docs/intro.md i18n/fr/docusaurus-plugin-content-docs/current/intro.md
30
+ ```
31
+
32
+ Translate `i18n/fr/docusaurus-plugin-content-docs/current/intro.md` in French.
33
+
34
+ ## Start your localized site
35
+
36
+ Start your site on the French locale:
37
+
38
+ ```bash
39
+ npm run start -- --locale fr
40
+ ```
41
+
42
+ Your localized site is accessible at [http://localhost:3000/fr/](http://localhost:3000/fr/) and the `Getting Started` page is translated.
43
+
44
+ :::caution
45
+
46
+ In development, you can only use one locale at a same time.
47
+
48
+ :::
49
+
50
+ ## Add a Locale Dropdown
51
+
52
+ To navigate seamlessly across languages, add a locale dropdown.
53
+
54
+ Modify the `docusaurus.config.js` file:
55
+
56
+ ```js title="docusaurus.config.js"
57
+ module.exports = {
58
+ themeConfig: {
59
+ navbar: {
60
+ items: [
61
+ // highlight-start
62
+ {
63
+ type: 'localeDropdown',
64
+ },
65
+ // highlight-end
66
+ ],
67
+ },
68
+ },
69
+ };
70
+ ```
71
+
72
+ The locale dropdown now appears in your navbar:
73
+
74
+ ![Locale Dropdown](./img/localeDropdown.png)
75
+
76
+ ## Build your localized site
77
+
78
+ Build your site for a specific locale:
79
+
80
+ ```bash
81
+ npm run build -- --locale fr
82
+ ```
83
+
84
+ Or build your site to include all the locales at once:
85
+
86
+ ```bash
87
+ npm run build
88
+ ```