create-packer 1.26.4 → 1.28.0

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 (420) hide show
  1. package/.gitignore +30 -30
  2. package/LICENSE +21 -21
  3. package/README.md +22 -22
  4. package/package.json +4 -4
  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/.eslintrc +84 -84
  53. package/template/lib/react/.storybook/main.ts +23 -23
  54. package/template/lib/react/.storybook/preview.ts +16 -16
  55. package/template/lib/react/.stylelintrc +29 -23
  56. package/template/lib/react/global.d.ts +18 -18
  57. package/template/lib/react/package.json +51 -51
  58. package/template/lib/react/postcss.config.cjs +9 -9
  59. package/template/lib/react/src/Introduction.mdx +3 -3
  60. package/template/lib/react/src/button/button.css +30 -30
  61. package/template/lib/react/src/button/button.stories.ts +43 -43
  62. package/template/lib/react/src/button/button.tsx +50 -50
  63. package/template/lib/react/src/button/index.ts +1 -1
  64. package/template/lib/react/src/index.ts +1 -1
  65. package/template/lib/react/tailwind.config.cjs +11 -11
  66. package/template/lib/react/tsconfig.json +26 -26
  67. package/template/lib/ts/.eslintrc +73 -73
  68. package/template/lib/ts/package.json +29 -29
  69. package/template/lib/ts/src/index.ts +5 -5
  70. package/template/lib/ts/tsconfig.json +19 -19
  71. package/template/nest/.eslintrc.js +25 -25
  72. package/template/nest/.gitignore +34 -34
  73. package/template/nest/.husky/pre-commit +4 -4
  74. package/template/nest/.prettierrc +6 -6
  75. package/template/nest/README.md +73 -73
  76. package/template/nest/nest-cli.json +5 -5
  77. package/template/nest/package.json +84 -84
  78. package/template/nest/src/app.controller.spec.ts +22 -22
  79. package/template/nest/src/app.controller.ts +12 -12
  80. package/template/nest/src/app.module.ts +10 -10
  81. package/template/nest/src/app.service.ts +8 -8
  82. package/template/nest/src/main.ts +10 -10
  83. package/template/nest/src/utils/transform.interceptor.ts +26 -26
  84. package/template/nest/test/app.e2e-spec.ts +24 -24
  85. package/template/nest/test/jest-e2e.json +9 -9
  86. package/template/nest/tsconfig.build.json +5 -5
  87. package/template/nest/tsconfig.json +21 -21
  88. package/template/web-app/next/.eslintrc.json +8 -8
  89. package/template/web-app/next/.gitignore +36 -36
  90. package/template/web-app/next/.husky/commit-msg +4 -4
  91. package/template/web-app/next/.husky/pre-commit +4 -4
  92. package/template/web-app/next/.stylelintrc +29 -23
  93. package/template/web-app/next/README.md +34 -34
  94. package/template/web-app/next/app/globals.css +22 -22
  95. package/template/web-app/next/app/layout.tsx +18 -18
  96. package/template/web-app/next/app/page.tsx +113 -113
  97. package/template/web-app/next/commitlint.config.cjs +1 -1
  98. package/template/web-app/next/next-env.d.ts +5 -5
  99. package/template/web-app/next/next.config.js +5 -5
  100. package/template/web-app/next/package.json +47 -47
  101. package/template/web-app/next/postcss.config.js +6 -6
  102. package/template/web-app/next/tailwind.config.js +20 -20
  103. package/template/web-app/next/tsconfig.json +21 -21
  104. package/template/web-app/react/.env +2 -2
  105. package/template/web-app/react/.env.development +2 -2
  106. package/template/web-app/react/.eslintignore +4 -4
  107. package/template/web-app/react/.eslintrc +92 -92
  108. package/template/web-app/react/.gitignore +27 -27
  109. package/template/web-app/react/.husky/commit-msg +4 -4
  110. package/template/web-app/react/.husky/pre-commit +4 -4
  111. package/template/web-app/react/.prettierignore +6 -6
  112. package/template/web-app/react/.stylelintignore +4 -4
  113. package/template/web-app/react/.stylelintrc +29 -23
  114. package/template/web-app/react/README.md +14 -14
  115. package/template/web-app/react/commitlint.config.cjs +1 -1
  116. package/template/web-app/react/domain/app/app.model.ts +7 -7
  117. package/template/web-app/react/domain/app/components/app.tsx +23 -17
  118. package/template/web-app/react/domain/app/components/index.ts +1 -1
  119. package/template/web-app/react/domain/app/index.ts +2 -2
  120. package/template/web-app/react/{router → domain/router}/home/ids.ts +3 -3
  121. package/template/web-app/react/{router → domain/router}/home/index.ts +2 -2
  122. package/template/web-app/{react-webpack → react/domain}/router/home/routes.tsx +13 -13
  123. package/template/web-app/{react-webpack → react/domain}/router/ids.ts +6 -6
  124. package/template/web-app/react/{router → domain/router}/index.ts +3 -4
  125. package/template/web-app/react/domain/router/router.tsx +28 -0
  126. package/template/web-app/react/domain/router/router.types.ts +3 -0
  127. package/template/web-app/react/index.css +3 -3
  128. package/template/web-app/react/index.html +13 -13
  129. package/template/web-app/react/main.tsx +5 -11
  130. package/template/web-app/react/mockUtils.ts +6 -6
  131. package/template/web-app/react/package.json +78 -77
  132. package/template/web-app/react/pages/home/home.css +1 -1
  133. package/template/web-app/react/pages/home/home.mock.ts +16 -16
  134. package/template/web-app/react/pages/home/home.tsx +13 -13
  135. package/template/web-app/react/pages/home/index.ts +1 -1
  136. package/template/web-app/react/pages/index.tsx +22 -21
  137. package/template/web-app/react/pages/not-found.tsx +3 -3
  138. package/template/web-app/react/postcss.config.cjs +9 -9
  139. package/template/web-app/react/scripts/createChunks.ts +26 -26
  140. package/template/web-app/react/scripts/index.ts +1 -1
  141. package/template/web-app/react/shared/hooks/defineRouter/defineRouter.types.ts +30 -0
  142. package/template/web-app/react/shared/hooks/defineRouter/deineRouter.tsx +160 -0
  143. package/template/web-app/react/shared/hooks/defineRouter/index.ts +2 -0
  144. package/template/web-app/react/shared/hooks/index.ts +6 -5
  145. package/template/web-app/react/shared/hooks/useInterval.ts +26 -26
  146. package/template/web-app/react/shared/hooks/useLoadingAction.ts +27 -27
  147. package/template/web-app/react/shared/hooks/useLowPriorityState.ts +26 -26
  148. package/template/web-app/react/shared/hooks/useSyncState.ts +15 -15
  149. package/template/web-app/react/shared/hooks/useVisible.ts +27 -27
  150. package/template/web-app/react/shared/service/api.ts +1 -1
  151. package/template/web-app/react/shared/service/index.ts +2 -2
  152. package/template/web-app/react/shared/service/request.ts +7 -7
  153. package/template/web-app/react/shared/tools/componentInstance.tsx +80 -78
  154. package/template/web-app/react/shared/tools/index.ts +1 -1
  155. package/template/web-app/react/shared/types/index.ts +1 -1
  156. package/template/web-app/react/shared/types/utils.ts +2 -2
  157. package/template/web-app/react/tailwind.config.cjs +17 -17
  158. package/template/web-app/react/tsconfig.json +28 -27
  159. package/template/web-app/react/tsconfig.node.json +10 -10
  160. package/template/web-app/react/vite-env.d.ts +12 -12
  161. package/template/web-app/react/vite.config.ts +65 -76
  162. package/template/web-app/react-webpack/.editorconfig +13 -13
  163. package/template/web-app/react-webpack/.env +2 -2
  164. package/template/web-app/react-webpack/.env.dev +2 -2
  165. package/template/web-app/react-webpack/.eslintignore +4 -4
  166. package/template/web-app/react-webpack/.eslintrc +119 -91
  167. package/template/web-app/react-webpack/.gitignore +26 -26
  168. package/template/web-app/react-webpack/.husky/commit-msg +4 -4
  169. package/template/web-app/react-webpack/.husky/pre-commit +4 -4
  170. package/template/web-app/react-webpack/.prettierignore +6 -6
  171. package/template/web-app/react-webpack/.stylelintignore +4 -4
  172. package/template/web-app/react-webpack/.stylelintrc +29 -23
  173. package/template/web-app/react-webpack/README.md +13 -13
  174. package/template/web-app/react-webpack/commitlint.config.js +1 -1
  175. package/template/web-app/react-webpack/domain/app/app.model.ts +7 -7
  176. package/template/web-app/react-webpack/domain/app/components/app.tsx +23 -17
  177. package/template/web-app/react-webpack/domain/app/components/index.ts +1 -1
  178. package/template/web-app/react-webpack/domain/app/index.ts +2 -2
  179. package/template/web-app/react-webpack/{router → domain/router}/home/ids.ts +3 -3
  180. package/template/web-app/react-webpack/{router → domain/router}/home/index.ts +2 -2
  181. package/template/web-app/{react → react-webpack/domain}/router/home/routes.tsx +13 -13
  182. package/template/web-app/{react → react-webpack/domain}/router/ids.ts +6 -6
  183. package/template/web-app/react-webpack/{router → domain/router}/index.ts +3 -4
  184. package/template/web-app/react-webpack/domain/router/router.tsx +28 -0
  185. package/template/web-app/react-webpack/domain/router/router.types.ts +3 -0
  186. package/template/web-app/react-webpack/global.d.ts +17 -17
  187. package/template/web-app/react-webpack/index.css +3 -3
  188. package/template/web-app/react-webpack/index.html +12 -12
  189. package/template/web-app/react-webpack/main.tsx +5 -11
  190. package/template/web-app/react-webpack/package.json +86 -89
  191. package/template/web-app/react-webpack/pages/home/home.tsx +6 -6
  192. package/template/web-app/react-webpack/pages/home/index.ts +1 -1
  193. package/template/web-app/react-webpack/pages/index.tsx +22 -21
  194. package/template/web-app/react-webpack/pages/not-found.tsx +3 -3
  195. package/template/web-app/react-webpack/postcss.config.js +9 -9
  196. package/template/web-app/react-webpack/shared/hooks/defineRouter/defineRouter.types.ts +30 -0
  197. package/template/web-app/react-webpack/shared/hooks/defineRouter/deineRouter.tsx +160 -0
  198. package/template/web-app/react-webpack/shared/hooks/defineRouter/index.ts +2 -0
  199. package/template/web-app/react-webpack/shared/hooks/index.ts +6 -5
  200. package/template/web-app/react-webpack/shared/hooks/useInterval.ts +26 -26
  201. package/template/web-app/react-webpack/shared/hooks/useLoadingAction.ts +27 -27
  202. package/template/web-app/react-webpack/shared/hooks/useLowPriorityState.ts +26 -26
  203. package/template/web-app/react-webpack/shared/hooks/useSyncState.ts +15 -15
  204. package/template/web-app/react-webpack/shared/hooks/useVisible.ts +27 -27
  205. package/template/web-app/react-webpack/shared/service/index.ts +1 -1
  206. package/template/web-app/react-webpack/shared/service/request.ts +7 -7
  207. package/template/web-app/react-webpack/shared/tools/componentInstance.tsx +78 -78
  208. package/template/web-app/react-webpack/shared/tools/index.ts +1 -1
  209. package/template/web-app/react-webpack/shared/types/index.ts +1 -1
  210. package/template/web-app/react-webpack/shared/types/utils.ts +2 -2
  211. package/template/web-app/react-webpack/tailwind.config.js +17 -17
  212. package/template/web-app/react-webpack/tsconfig.json +38 -27
  213. package/template/web-app/react-webpack/tsconfig.node.json +9 -9
  214. package/template/web-app/react-webpack/webpack.config.mjs +162 -163
  215. package/template/web-app/react-webpack/webpack_config/constant.mjs +5 -5
  216. package/template/web-app/solid/.gitignore +1 -1
  217. package/template/web-app/solid/.stylelintrc +29 -23
  218. package/template/web-app/solid/README.md +34 -34
  219. package/template/web-app/solid/index.html +16 -16
  220. package/template/web-app/solid/package.json +51 -51
  221. package/template/web-app/solid/src/app.container.tsx +12 -12
  222. package/template/web-app/solid/src/index.css +15 -15
  223. package/template/web-app/solid/src/index.tsx +15 -15
  224. package/template/web-app/solid/src/layout/index.ts +1 -1
  225. package/template/web-app/solid/src/layout/layout.container.tsx +5 -5
  226. package/template/web-app/solid/src/pages/home/home.container.tsx +5 -5
  227. package/template/web-app/solid/src/pages/home/index.ts +1 -1
  228. package/template/web-app/solid/src/pages/notFound/index.ts +1 -1
  229. package/template/web-app/solid/src/pages/notFound/notFound.container.tsx +3 -3
  230. package/template/web-app/solid/src/router/home/index.ts +2 -2
  231. package/template/web-app/solid/src/router/home/paths.ts +3 -3
  232. package/template/web-app/solid/src/router/home/routes.tsx +12 -12
  233. package/template/web-app/solid/src/router/index.ts +2 -2
  234. package/template/web-app/solid/src/router/paths.ts +5 -5
  235. package/template/web-app/solid/src/router/routes.ts +16 -16
  236. package/template/web-app/solid/tsconfig.json +20 -20
  237. package/template/web-app/solid/vite.config.ts +23 -23
  238. package/template/web-app/svelte/.env +2 -2
  239. package/template/web-app/svelte/.env.development +2 -2
  240. package/template/web-app/svelte/.eslintignore +13 -13
  241. package/template/web-app/svelte/.eslintrc +76 -76
  242. package/template/web-app/svelte/.gitignore +27 -27
  243. package/template/web-app/svelte/.husky/commit-msg +4 -4
  244. package/template/web-app/svelte/.husky/pre-commit +4 -4
  245. package/template/web-app/svelte/.prettierignore +6 -6
  246. package/template/web-app/svelte/.prettierrc +14 -14
  247. package/template/web-app/svelte/.svelte-kit/ambient.d.ts +153 -153
  248. package/template/web-app/svelte/.svelte-kit/generated/client/app.js +18 -18
  249. package/template/web-app/svelte/.svelte-kit/generated/root.svelte +55 -55
  250. package/template/web-app/svelte/.svelte-kit/generated/server/internal.js +30 -30
  251. package/template/web-app/svelte/.svelte-kit/tsconfig.json +38 -38
  252. package/template/web-app/svelte/.svelte-kit/types/route_meta_data.json +2 -2
  253. package/template/web-app/svelte/.svelte-kit/types/src/routes/$types.d.ts +19 -19
  254. package/template/web-app/svelte/README.md +38 -38
  255. package/template/web-app/svelte/commitlint.config.cjs +1 -1
  256. package/template/web-app/svelte/package.json +51 -51
  257. package/template/web-app/svelte/scripts/createChunks.ts +26 -26
  258. package/template/web-app/svelte/scripts/index.ts +1 -1
  259. package/template/web-app/svelte/src/app.d.ts +12 -12
  260. package/template/web-app/svelte/src/app.html +12 -12
  261. package/template/web-app/svelte/src/routes/+page.svelte +2 -2
  262. package/template/web-app/svelte/svelte.config.js +18 -18
  263. package/template/web-app/svelte/tsconfig.json +21 -21
  264. package/template/web-app/svelte/vite-env.d.ts +12 -12
  265. package/template/web-app/svelte/vite.config.ts +49 -49
  266. package/template/web-app/vue/.env +2 -2
  267. package/template/web-app/vue/.env.development +2 -2
  268. package/template/web-app/vue/.eslintignore +4 -4
  269. package/template/web-app/vue/.eslintrc +104 -104
  270. package/template/web-app/vue/.gitignore +27 -27
  271. package/template/web-app/vue/.prettierignore +6 -6
  272. package/template/web-app/vue/.stylelintignore +4 -4
  273. package/template/web-app/vue/.stylelintrc +29 -23
  274. package/template/web-app/vue/README.md +13 -13
  275. package/template/web-app/vue/domain/app/app.ts +4 -4
  276. package/template/web-app/vue/domain/app/components/app.vue +18 -18
  277. package/template/web-app/vue/domain/app/components/index.ts +1 -1
  278. package/template/web-app/vue/domain/app/createComponentInstance.ts +44 -44
  279. package/template/web-app/vue/main.ts +6 -6
  280. package/template/web-app/vue/mockUtils.ts +6 -6
  281. package/template/web-app/vue/package.json +70 -68
  282. package/template/web-app/vue/pages/home/home.mock.ts +16 -16
  283. package/template/web-app/vue/pages/home/home.vue +13 -13
  284. package/template/web-app/vue/pages/home/index.ts +1 -1
  285. package/template/web-app/vue/pages/index.ts +1 -1
  286. package/template/web-app/vue/pages/index.vue +3 -3
  287. package/template/web-app/vue/pages/not-found.vue +3 -3
  288. package/template/web-app/vue/router/home/index.ts +2 -2
  289. package/template/web-app/vue/router/home/names.ts +3 -3
  290. package/template/web-app/vue/router/home/routes.ts +8 -8
  291. package/template/web-app/vue/router/index.ts +26 -26
  292. package/template/web-app/vue/router/names.ts +5 -5
  293. package/template/web-app/vue/scripts/createChunks.ts +26 -26
  294. package/template/web-app/vue/scripts/index.ts +1 -1
  295. package/template/web-app/vue/shared/hooks/index.ts +2 -2
  296. package/template/web-app/vue/shared/hooks/useList.ts +104 -104
  297. package/template/web-app/vue/shared/hooks/useVisible.ts +27 -27
  298. package/template/web-app/vue/shared/service/api.ts +1 -1
  299. package/template/web-app/vue/shared/service/index.ts +2 -2
  300. package/template/web-app/vue/shared/service/request.ts +7 -7
  301. package/template/web-app/vue/style.css +3 -3
  302. package/template/web-app/vue/tailwind.config.cjs +18 -18
  303. package/template/web-app/vue/tsconfig.json +24 -24
  304. package/template/web-app/vue/vite-env.d.ts +18 -18
  305. package/template/web-app/vue/vite.config.ts +68 -83
  306. package/template/web-extension/.env +1 -1
  307. package/template/web-extension/.env.development +1 -1
  308. package/template/web-extension/.eslintignore +4 -4
  309. package/template/web-extension/.eslintrc +94 -83
  310. package/template/web-extension/.gitignore +26 -26
  311. package/template/web-extension/.husky/commit-msg +4 -4
  312. package/template/web-extension/.husky/pre-commit +4 -4
  313. package/template/web-extension/.prettierignore +6 -6
  314. package/template/web-extension/.stylelintignore +4 -4
  315. package/template/web-extension/.stylelintrc +29 -23
  316. package/template/web-extension/.vscode/extensions.json +7 -7
  317. package/template/web-extension/README.md +14 -14
  318. package/template/web-extension/background/index.ts +0 -0
  319. package/template/web-extension/commitlint.config.cjs +1 -1
  320. package/template/web-extension/content_script/content.css +3 -3
  321. package/template/web-extension/content_script/content.tsx +5 -5
  322. package/template/web-extension/content_script/index.tsx +12 -12
  323. package/template/web-extension/defineManifest.ts +32 -27
  324. package/template/web-extension/package.json +76 -71
  325. package/template/web-extension/pnpm-lock.yaml +6220 -0
  326. package/template/web-extension/popup/index.tsx +9 -9
  327. package/template/web-extension/popup/popup.container.tsx +5 -5
  328. package/template/web-extension/popup/popup.css +3 -3
  329. package/template/web-extension/popup/popup.html +13 -13
  330. package/template/web-extension/postcss.config.cjs +9 -9
  331. package/template/web-extension/shared/background/index.ts +1 -0
  332. package/template/web-extension/shared/background/message.ts +11 -0
  333. package/template/web-extension/shared/constant/index.ts +0 -0
  334. package/template/web-extension/shared/content/index.ts +1 -0
  335. package/template/web-extension/shared/content/message.ts +15 -0
  336. package/template/web-extension/shared/hooks/index.ts +2 -2
  337. package/template/web-extension/shared/hooks/useSyncState.ts +15 -15
  338. package/template/web-extension/shared/hooks/useVisible.ts +27 -27
  339. package/template/web-extension/shared/popup/index.ts +1 -0
  340. package/template/web-extension/shared/popup/message.ts +12 -0
  341. package/template/web-extension/shared/service/index.ts +1 -1
  342. package/template/web-extension/shared/service/request.ts +5 -5
  343. package/template/web-extension/shared/service/tools/base.ts +33 -33
  344. package/template/web-extension/shared/service/tools/createRequestActions.ts +80 -58
  345. package/template/web-extension/shared/service/tools/createService.ts +45 -46
  346. package/template/web-extension/shared/service/tools/{createServiceHooks.ts → hooks.ts} +28 -26
  347. package/template/web-extension/shared/service/tools/index.ts +4 -4
  348. package/template/web-extension/shared/service/types.ts +46 -40
  349. package/template/web-extension/shared/tools/index.ts +1 -0
  350. package/template/web-extension/shared/tools/message.ts +80 -0
  351. package/template/web-extension/shared/types/index.ts +1 -1
  352. package/template/web-extension/shared/types/utils.ts +3 -19
  353. package/template/web-extension/tailwind.config.cjs +13 -13
  354. package/template/web-extension/tsconfig.json +28 -28
  355. package/template/web-extension/tsconfig.node.json +10 -10
  356. package/template/web-extension/vite-env.d.ts +10 -10
  357. package/template/web-extension/vite.config.ts +35 -40
  358. package/template/workspace/nx/.editorconfig +13 -13
  359. package/template/workspace/nx/.eslintignore +1 -1
  360. package/template/workspace/nx/.eslintrc.json +35 -35
  361. package/template/workspace/nx/.gitignore +41 -41
  362. package/template/workspace/nx/.husky/commit-msg +4 -4
  363. package/template/workspace/nx/.husky/pre-commit +4 -4
  364. package/template/workspace/nx/.prettierignore +2 -2
  365. package/template/workspace/nx/.prettierrc +18 -18
  366. package/template/workspace/nx/.stylelintrc.json +11 -11
  367. package/template/workspace/nx/.vscode/extensions.json +9 -9
  368. package/template/workspace/nx/README.md +17 -17
  369. package/template/workspace/nx/commitlint.config.cjs +1 -1
  370. package/template/workspace/nx/jest.config.ts +5 -5
  371. package/template/workspace/nx/jest.preset.js +3 -3
  372. package/template/workspace/nx/lerna.json +10 -10
  373. package/template/workspace/nx/nx.json +53 -53
  374. package/template/workspace/nx/package.json +130 -130
  375. package/template/workspace/nx/packages/vue-lib/.eslintrc.json +21 -21
  376. package/template/workspace/nx/packages/vue-lib/README.md +3 -3
  377. package/template/workspace/nx/packages/vue-lib/jest.config.ts +20 -20
  378. package/template/workspace/nx/packages/vue-lib/package.json +12 -12
  379. package/template/workspace/nx/packages/vue-lib/project.json +40 -40
  380. package/template/workspace/nx/packages/vue-lib/src/index.ts +2 -2
  381. package/template/workspace/nx/packages/vue-lib/src/lib/HelloWorld.vue +11 -11
  382. package/template/workspace/nx/packages/vue-lib/src/shims-vue.d.ts +6 -6
  383. package/template/workspace/nx/packages/vue-lib/tests/unit/example.spec.ts +9 -9
  384. package/template/workspace/nx/packages/vue-lib/tsconfig.json +20 -20
  385. package/template/workspace/nx/packages/vue-lib/tsconfig.lib.json +22 -22
  386. package/template/workspace/nx/packages/vue-lib/tsconfig.spec.json +19 -19
  387. package/template/workspace/nx/packages/vue-lib/vite.config.ts +49 -49
  388. package/template/workspace/nx/pnpm-workspace.yaml +2 -2
  389. package/template/workspace/nx/scripts/patch-nx-dep-graph.js +40 -40
  390. package/template/workspace/nx/tools/tsconfig.tools.json +12 -12
  391. package/template/workspace/nx/tsconfig.base.json +22 -22
  392. package/template/workspace/pnpm/.changeset/README.md +8 -8
  393. package/template/workspace/pnpm/.changeset/config.json +11 -11
  394. package/template/workspace/pnpm/.gitignore +36 -36
  395. package/template/workspace/pnpm/.prettierrc.js +21 -21
  396. package/template/workspace/pnpm/commitlint.config.cjs +1 -1
  397. package/template/workspace/pnpm/package.json +40 -40
  398. package/template/workspace/pnpm/packages/test/.eslintrc +73 -73
  399. package/template/workspace/pnpm/packages/test/package.json +23 -23
  400. package/template/workspace/pnpm/packages/test/src/index.ts +5 -5
  401. package/template/workspace/pnpm/packages/test/tsconfig.json +18 -18
  402. package/template/workspace/pnpm/pnpm-workspace.yaml +2 -2
  403. package/template/workspace/pnpm/scripts/build.ts +7 -7
  404. package/template/workspace/pnpm/tsconfig.json +18 -18
  405. package/template/web-app/react/router/router.controller.ts +0 -18
  406. package/template/web-app/react/router/router.tool.ts +0 -41
  407. package/template/web-app/react/router/router.tsx +0 -43
  408. package/template/web-app/react/router/router.types.ts +0 -6
  409. package/template/web-app/react-webpack/router/router.controller.ts +0 -18
  410. package/template/web-app/react-webpack/router/router.tool.ts +0 -41
  411. package/template/web-app/react-webpack/router/router.tsx +0 -43
  412. package/template/web-app/react-webpack/router/router.types.ts +0 -6
  413. package/template/web-extension/content_script/content.spec.tsx +0 -15
  414. package/template/workspace/nx/node_modules/.pnpm/minipass-fetch@3.0.3/node_modules/minipass-sized/.gitignore +0 -22
  415. package/template/workspace/nx/node_modules/.pnpm/minipass-sized@1.0.3/node_modules/minipass-sized/.gitignore +0 -22
  416. package/template/workspace/nx/node_modules/.pnpm/node_modules/minipass-sized/.gitignore +0 -22
  417. package/template/workspace/nx/node_modules/.pnpm/node_modules/npm-normalize-package-bin/.gitignore +0 -24
  418. package/template/workspace/nx/node_modules/.pnpm/npm-bundled@1.1.2/node_modules/npm-normalize-package-bin/.gitignore +0 -24
  419. package/template/workspace/nx/node_modules/.pnpm/npm-normalize-package-bin@1.0.1/node_modules/npm-normalize-package-bin/.gitignore +0 -24
  420. package/template/workspace/nx/node_modules/.pnpm/npm-packlist@5.1.1/node_modules/npm-normalize-package-bin/.gitignore +0 -24
@@ -1,20 +1,20 @@
1
- ---
2
- slug: mdx-blog-post
3
- title: MDX Blog Post
4
- authors: [slorber]
5
- tags: [docusaurus]
6
- ---
7
-
8
- Blog posts support [Docusaurus Markdown features](https://docusaurus.io/docs/markdown-features), such as [MDX](https://mdxjs.com/).
9
-
10
- :::tip
11
-
12
- Use the power of React to create interactive blog posts.
13
-
14
- ```js
15
- <button onClick={() => alert('button clicked!')}>Click me!</button>
16
- ```
17
-
18
- <button onClick={() => alert('button clicked!')}>Click me!</button>
19
-
20
- :::
1
+ ---
2
+ slug: mdx-blog-post
3
+ title: MDX Blog Post
4
+ authors: [slorber]
5
+ tags: [docusaurus]
6
+ ---
7
+
8
+ Blog posts support [Docusaurus Markdown features](https://docusaurus.io/docs/markdown-features), such as [MDX](https://mdxjs.com/).
9
+
10
+ :::tip
11
+
12
+ Use the power of React to create interactive blog posts.
13
+
14
+ ```js
15
+ <button onClick={() => alert('button clicked!')}>Click me!</button>
16
+ ```
17
+
18
+ <button onClick={() => alert('button clicked!')}>Click me!</button>
19
+
20
+ :::
@@ -1,25 +1,25 @@
1
- ---
2
- slug: welcome
3
- title: Welcome
4
- authors: [slorber, yangshun]
5
- tags: [facebook, hello, docusaurus]
6
- ---
7
-
8
- [Docusaurus blogging features](https://docusaurus.io/docs/blog) are powered by the [blog plugin](https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-blog).
9
-
10
- Simply add Markdown files (or folders) to the `blog` directory.
11
-
12
- Regular blog authors can be added to `authors.yml`.
13
-
14
- The blog post date can be extracted from filenames, such as:
15
-
16
- - `2019-05-30-welcome.md`
17
- - `2019-05-30-welcome/index.md`
18
-
19
- A blog post folder can be convenient to co-locate blog post images:
20
-
21
- ![Docusaurus Plushie](./docusaurus-plushie-banner.jpeg)
22
-
23
- The blog supports tags as well!
24
-
25
- **And if you don't want a blog**: just delete this directory, and use `blog: false` in your Docusaurus config.
1
+ ---
2
+ slug: welcome
3
+ title: Welcome
4
+ authors: [slorber, yangshun]
5
+ tags: [facebook, hello, docusaurus]
6
+ ---
7
+
8
+ [Docusaurus blogging features](https://docusaurus.io/docs/blog) are powered by the [blog plugin](https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-blog).
9
+
10
+ Simply add Markdown files (or folders) to the `blog` directory.
11
+
12
+ Regular blog authors can be added to `authors.yml`.
13
+
14
+ The blog post date can be extracted from filenames, such as:
15
+
16
+ - `2019-05-30-welcome.md`
17
+ - `2019-05-30-welcome/index.md`
18
+
19
+ A blog post folder can be convenient to co-locate blog post images:
20
+
21
+ ![Docusaurus Plushie](./docusaurus-plushie-banner.jpeg)
22
+
23
+ The blog supports tags as well!
24
+
25
+ **And if you don't want a blog**: just delete this directory, and use `blog: false` in your Docusaurus config.
@@ -1,17 +1,17 @@
1
- endi:
2
- name: Endilie Yacop Sucipto
3
- title: Maintainer of Docusaurus
4
- url: https://github.com/endiliey
5
- image_url: https://github.com/endiliey.png
6
-
7
- yangshun:
8
- name: Yangshun Tay
9
- title: Front End Engineer @ Facebook
10
- url: https://github.com/yangshun
11
- image_url: https://github.com/yangshun.png
12
-
13
- slorber:
14
- name: Sébastien Lorber
15
- title: Docusaurus maintainer
16
- url: https://sebastienlorber.com
17
- image_url: https://github.com/slorber.png
1
+ endi:
2
+ name: Endilie Yacop Sucipto
3
+ title: Maintainer of Docusaurus
4
+ url: https://github.com/endiliey
5
+ image_url: https://github.com/endiliey.png
6
+
7
+ yangshun:
8
+ name: Yangshun Tay
9
+ title: Front End Engineer @ Facebook
10
+ url: https://github.com/yangshun
11
+ image_url: https://github.com/yangshun.png
12
+
13
+ slorber:
14
+ name: Sébastien Lorber
15
+ title: Docusaurus maintainer
16
+ url: https://sebastienlorber.com
17
+ image_url: https://github.com/slorber.png
@@ -1,47 +1,47 @@
1
- ---
2
- sidebar_position: 1
3
- ---
4
-
5
- # Tutorial Intro
6
-
7
- Let's discover **Docusaurus in less than 5 minutes**.
8
-
9
- ## Getting Started
10
-
11
- Get started by **creating a new site**.
12
-
13
- Or **try Docusaurus immediately** with **[docusaurus.new](https://docusaurus.new)**.
14
-
15
- ### What you'll need
16
-
17
- - [Node.js](https://nodejs.org/en/download/) version 16.14 or above:
18
- - When installing Node.js, you are recommended to check all checkboxes related to dependencies.
19
-
20
- ## Generate a new site
21
-
22
- Generate a new Docusaurus site using the **classic template**.
23
-
24
- The classic template will automatically be added to your project after you run the command:
25
-
26
- ```bash
27
- npm init docusaurus@latest my-website classic
28
- ```
29
-
30
- You can type this command into Command Prompt, Powershell, Terminal, or any other integrated terminal of your code editor.
31
-
32
- The command also installs all necessary dependencies you need to run Docusaurus.
33
-
34
- ## Start your site
35
-
36
- Run the development server:
37
-
38
- ```bash
39
- cd my-website
40
- npm run start
41
- ```
42
-
43
- The `cd` command changes the directory you're working with. In order to work with your newly created Docusaurus site, you'll need to navigate the terminal there.
44
-
45
- The `npm run start` command builds your website locally and serves it through a development server, ready for you to view at http://localhost:3000/.
46
-
47
- Open `docs/intro.md` (this page) and edit some lines: the site **reloads automatically** and displays your changes.
1
+ ---
2
+ sidebar_position: 1
3
+ ---
4
+
5
+ # Tutorial Intro
6
+
7
+ Let's discover **Docusaurus in less than 5 minutes**.
8
+
9
+ ## Getting Started
10
+
11
+ Get started by **creating a new site**.
12
+
13
+ Or **try Docusaurus immediately** with **[docusaurus.new](https://docusaurus.new)**.
14
+
15
+ ### What you'll need
16
+
17
+ - [Node.js](https://nodejs.org/en/download/) version 16.14 or above:
18
+ - When installing Node.js, you are recommended to check all checkboxes related to dependencies.
19
+
20
+ ## Generate a new site
21
+
22
+ Generate a new Docusaurus site using the **classic template**.
23
+
24
+ The classic template will automatically be added to your project after you run the command:
25
+
26
+ ```bash
27
+ npm init docusaurus@latest my-website classic
28
+ ```
29
+
30
+ You can type this command into Command Prompt, Powershell, Terminal, or any other integrated terminal of your code editor.
31
+
32
+ The command also installs all necessary dependencies you need to run Docusaurus.
33
+
34
+ ## Start your site
35
+
36
+ Run the development server:
37
+
38
+ ```bash
39
+ cd my-website
40
+ npm run start
41
+ ```
42
+
43
+ The `cd` command changes the directory you're working with. In order to work with your newly created Docusaurus site, you'll need to navigate the terminal there.
44
+
45
+ The `npm run start` command builds your website locally and serves it through a development server, ready for you to view at http://localhost:3000/.
46
+
47
+ Open `docs/intro.md` (this page) and edit some lines: the site **reloads automatically** and displays your changes.
@@ -1,8 +1,8 @@
1
- {
2
- "label": "Tutorial - Basics",
3
- "position": 2,
4
- "link": {
5
- "type": "generated-index",
6
- "description": "5 minutes to learn the most important Docusaurus concepts."
7
- }
8
- }
1
+ {
2
+ "label": "Tutorial - Basics",
3
+ "position": 2,
4
+ "link": {
5
+ "type": "generated-index",
6
+ "description": "5 minutes to learn the most important Docusaurus concepts."
7
+ }
8
+ }
@@ -1,23 +1,23 @@
1
- ---
2
- sidebar_position: 6
3
- ---
4
-
5
- # Congratulations!
6
-
7
- You have just learned the **basics of Docusaurus** and made some changes to the **initial template**.
8
-
9
- Docusaurus has **much more to offer**!
10
-
11
- Have **5 more minutes**? Take a look at **[versioning](../tutorial-extras/manage-docs-versions.md)** and **[i18n](../tutorial-extras/translate-your-site.md)**.
12
-
13
- Anything **unclear** or **buggy** in this tutorial? [Please report it!](https://github.com/facebook/docusaurus/discussions/4610)
14
-
15
- ## What's next?
16
-
17
- - Read the [official documentation](https://docusaurus.io/)
18
- - Modify your site configuration with [`docusaurus.config.js`](https://docusaurus.io/docs/api/docusaurus-config)
19
- - Add navbar and footer items with [`themeConfig`](https://docusaurus.io/docs/api/themes/configuration)
20
- - Add a custom [Design and Layout](https://docusaurus.io/docs/styling-layout)
21
- - Add a [search bar](https://docusaurus.io/docs/search)
22
- - Find inspirations in the [Docusaurus showcase](https://docusaurus.io/showcase)
23
- - Get involved in the [Docusaurus Community](https://docusaurus.io/community/support)
1
+ ---
2
+ sidebar_position: 6
3
+ ---
4
+
5
+ # Congratulations!
6
+
7
+ You have just learned the **basics of Docusaurus** and made some changes to the **initial template**.
8
+
9
+ Docusaurus has **much more to offer**!
10
+
11
+ Have **5 more minutes**? Take a look at **[versioning](../tutorial-extras/manage-docs-versions.md)** and **[i18n](../tutorial-extras/translate-your-site.md)**.
12
+
13
+ Anything **unclear** or **buggy** in this tutorial? [Please report it!](https://github.com/facebook/docusaurus/discussions/4610)
14
+
15
+ ## What's next?
16
+
17
+ - Read the [official documentation](https://docusaurus.io/)
18
+ - Modify your site configuration with [`docusaurus.config.js`](https://docusaurus.io/docs/api/docusaurus-config)
19
+ - Add navbar and footer items with [`themeConfig`](https://docusaurus.io/docs/api/themes/configuration)
20
+ - Add a custom [Design and Layout](https://docusaurus.io/docs/styling-layout)
21
+ - Add a [search bar](https://docusaurus.io/docs/search)
22
+ - Find inspirations in the [Docusaurus showcase](https://docusaurus.io/showcase)
23
+ - Get involved in the [Docusaurus Community](https://docusaurus.io/community/support)
@@ -1,34 +1,34 @@
1
- ---
2
- sidebar_position: 3
3
- ---
4
-
5
- # Create a Blog Post
6
-
7
- Docusaurus creates a **page for each blog post**, but also a **blog index page**, a **tag system**, an **RSS** feed...
8
-
9
- ## Create your first Post
10
-
11
- Create a file at `blog/2021-02-28-greetings.md`:
12
-
13
- ```md title="blog/2021-02-28-greetings.md"
14
- ---
15
- slug: greetings
16
- title: Greetings!
17
- authors:
18
- - name: Joel Marcey
19
- title: Co-creator of Docusaurus 1
20
- url: https://github.com/JoelMarcey
21
- image_url: https://github.com/JoelMarcey.png
22
- - name: Sébastien Lorber
23
- title: Docusaurus maintainer
24
- url: https://sebastienlorber.com
25
- image_url: https://github.com/slorber.png
26
- tags: [greetings]
27
- ---
28
-
29
- Congratulations, you have made your first post!
30
-
31
- Feel free to play around and edit this post as much you like.
32
- ```
33
-
34
- A new blog post is now available at [http://localhost:3000/blog/greetings](http://localhost:3000/blog/greetings).
1
+ ---
2
+ sidebar_position: 3
3
+ ---
4
+
5
+ # Create a Blog Post
6
+
7
+ Docusaurus creates a **page for each blog post**, but also a **blog index page**, a **tag system**, an **RSS** feed...
8
+
9
+ ## Create your first Post
10
+
11
+ Create a file at `blog/2021-02-28-greetings.md`:
12
+
13
+ ```md title="blog/2021-02-28-greetings.md"
14
+ ---
15
+ slug: greetings
16
+ title: Greetings!
17
+ authors:
18
+ - name: Joel Marcey
19
+ title: Co-creator of Docusaurus 1
20
+ url: https://github.com/JoelMarcey
21
+ image_url: https://github.com/JoelMarcey.png
22
+ - name: Sébastien Lorber
23
+ title: Docusaurus maintainer
24
+ url: https://sebastienlorber.com
25
+ image_url: https://github.com/slorber.png
26
+ tags: [greetings]
27
+ ---
28
+
29
+ Congratulations, you have made your first post!
30
+
31
+ Feel free to play around and edit this post as much you like.
32
+ ```
33
+
34
+ A new blog post is now available at [http://localhost:3000/blog/greetings](http://localhost:3000/blog/greetings).
@@ -1,57 +1,57 @@
1
- ---
2
- sidebar_position: 2
3
- ---
4
-
5
- # Create a Document
6
-
7
- Documents are **groups of pages** connected through:
8
-
9
- - a **sidebar**
10
- - **previous/next navigation**
11
- - **versioning**
12
-
13
- ## Create your first Doc
14
-
15
- Create a Markdown file at `docs/hello.md`:
16
-
17
- ```md title="docs/hello.md"
18
- # Hello
19
-
20
- This is my **first Docusaurus document**!
21
- ```
22
-
23
- A new document is now available at [http://localhost:3000/docs/hello](http://localhost:3000/docs/hello).
24
-
25
- ## Configure the Sidebar
26
-
27
- Docusaurus automatically **creates a sidebar** from the `docs` folder.
28
-
29
- Add metadata to customize the sidebar label and position:
30
-
31
- ```md title="docs/hello.md" {1-4}
32
- ---
33
- sidebar_label: 'Hi!'
34
- sidebar_position: 3
35
- ---
36
-
37
- # Hello
38
-
39
- This is my **first Docusaurus document**!
40
- ```
41
-
42
- It is also possible to create your sidebar explicitly in `sidebars.js`:
43
-
44
- ```js title="sidebars.js"
45
- module.exports = {
46
- tutorialSidebar: [
47
- 'intro',
48
- // highlight-next-line
49
- 'hello',
50
- {
51
- type: 'category',
52
- label: 'Tutorial',
53
- items: ['tutorial-basics/create-a-document'],
54
- },
55
- ],
56
- };
57
- ```
1
+ ---
2
+ sidebar_position: 2
3
+ ---
4
+
5
+ # Create a Document
6
+
7
+ Documents are **groups of pages** connected through:
8
+
9
+ - a **sidebar**
10
+ - **previous/next navigation**
11
+ - **versioning**
12
+
13
+ ## Create your first Doc
14
+
15
+ Create a Markdown file at `docs/hello.md`:
16
+
17
+ ```md title="docs/hello.md"
18
+ # Hello
19
+
20
+ This is my **first Docusaurus document**!
21
+ ```
22
+
23
+ A new document is now available at [http://localhost:3000/docs/hello](http://localhost:3000/docs/hello).
24
+
25
+ ## Configure the Sidebar
26
+
27
+ Docusaurus automatically **creates a sidebar** from the `docs` folder.
28
+
29
+ Add metadata to customize the sidebar label and position:
30
+
31
+ ```md title="docs/hello.md" {1-4}
32
+ ---
33
+ sidebar_label: 'Hi!'
34
+ sidebar_position: 3
35
+ ---
36
+
37
+ # Hello
38
+
39
+ This is my **first Docusaurus document**!
40
+ ```
41
+
42
+ It is also possible to create your sidebar explicitly in `sidebars.js`:
43
+
44
+ ```js title="sidebars.js"
45
+ module.exports = {
46
+ tutorialSidebar: [
47
+ 'intro',
48
+ // highlight-next-line
49
+ 'hello',
50
+ {
51
+ type: 'category',
52
+ label: 'Tutorial',
53
+ items: ['tutorial-basics/create-a-document'],
54
+ },
55
+ ],
56
+ };
57
+ ```
@@ -1,43 +1,43 @@
1
- ---
2
- sidebar_position: 1
3
- ---
4
-
5
- # Create a Page
6
-
7
- Add **Markdown or React** files to `src/pages` to create a **standalone page**:
8
-
9
- - `src/pages/index.js` → `localhost:3000/`
10
- - `src/pages/foo.md` → `localhost:3000/foo`
11
- - `src/pages/foo/bar.js` → `localhost:3000/foo/bar`
12
-
13
- ## Create your first React Page
14
-
15
- Create a file at `src/pages/my-react-page.js`:
16
-
17
- ```jsx title="src/pages/my-react-page.js"
18
- import React from 'react';
19
- import Layout from '@theme/Layout';
20
-
21
- export default function MyReactPage() {
22
- return (
23
- <Layout>
24
- <h1>My React page</h1>
25
- <p>This is a React page</p>
26
- </Layout>
27
- );
28
- }
29
- ```
30
-
31
- A new page is now available at [http://localhost:3000/my-react-page](http://localhost:3000/my-react-page).
32
-
33
- ## Create your first Markdown Page
34
-
35
- Create a file at `src/pages/my-markdown-page.md`:
36
-
37
- ```mdx title="src/pages/my-markdown-page.md"
38
- # My Markdown page
39
-
40
- This is a Markdown page
41
- ```
42
-
43
- A new page is now available at [http://localhost:3000/my-markdown-page](http://localhost:3000/my-markdown-page).
1
+ ---
2
+ sidebar_position: 1
3
+ ---
4
+
5
+ # Create a Page
6
+
7
+ Add **Markdown or React** files to `src/pages` to create a **standalone page**:
8
+
9
+ - `src/pages/index.js` → `localhost:3000/`
10
+ - `src/pages/foo.md` → `localhost:3000/foo`
11
+ - `src/pages/foo/bar.js` → `localhost:3000/foo/bar`
12
+
13
+ ## Create your first React Page
14
+
15
+ Create a file at `src/pages/my-react-page.js`:
16
+
17
+ ```jsx title="src/pages/my-react-page.js"
18
+ import React from 'react';
19
+ import Layout from '@theme/Layout';
20
+
21
+ export default function MyReactPage() {
22
+ return (
23
+ <Layout>
24
+ <h1>My React page</h1>
25
+ <p>This is a React page</p>
26
+ </Layout>
27
+ );
28
+ }
29
+ ```
30
+
31
+ A new page is now available at [http://localhost:3000/my-react-page](http://localhost:3000/my-react-page).
32
+
33
+ ## Create your first Markdown Page
34
+
35
+ Create a file at `src/pages/my-markdown-page.md`:
36
+
37
+ ```mdx title="src/pages/my-markdown-page.md"
38
+ # My Markdown page
39
+
40
+ This is a Markdown page
41
+ ```
42
+
43
+ A new page is now available at [http://localhost:3000/my-markdown-page](http://localhost:3000/my-markdown-page).
@@ -1,31 +1,31 @@
1
- ---
2
- sidebar_position: 5
3
- ---
4
-
5
- # Deploy your site
6
-
7
- Docusaurus is a **static-site-generator** (also called **[Jamstack](https://jamstack.org/)**).
8
-
9
- It builds your site as simple **static HTML, JavaScript and CSS files**.
10
-
11
- ## Build your site
12
-
13
- Build your site **for production**:
14
-
15
- ```bash
16
- npm run build
17
- ```
18
-
19
- The static files are generated in the `build` folder.
20
-
21
- ## Deploy your site
22
-
23
- Test your production build locally:
24
-
25
- ```bash
26
- npm run serve
27
- ```
28
-
29
- The `build` folder is now served at [http://localhost:3000/](http://localhost:3000/).
30
-
31
- You can now deploy the `build` folder **almost anywhere** easily, **for free** or very small cost (read the **[Deployment Guide](https://docusaurus.io/docs/deployment)**).
1
+ ---
2
+ sidebar_position: 5
3
+ ---
4
+
5
+ # Deploy your site
6
+
7
+ Docusaurus is a **static-site-generator** (also called **[Jamstack](https://jamstack.org/)**).
8
+
9
+ It builds your site as simple **static HTML, JavaScript and CSS files**.
10
+
11
+ ## Build your site
12
+
13
+ Build your site **for production**:
14
+
15
+ ```bash
16
+ npm run build
17
+ ```
18
+
19
+ The static files are generated in the `build` folder.
20
+
21
+ ## Deploy your site
22
+
23
+ Test your production build locally:
24
+
25
+ ```bash
26
+ npm run serve
27
+ ```
28
+
29
+ The `build` folder is now served at [http://localhost:3000/](http://localhost:3000/).
30
+
31
+ You can now deploy the `build` folder **almost anywhere** easily, **for free** or very small cost (read the **[Deployment Guide](https://docusaurus.io/docs/deployment)**).