create-packer 1.13.2 → 1.13.3

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 (86) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +18 -18
  3. package/package.json +1 -1
  4. package/template/docusaurus/.gitignore +20 -20
  5. package/template/docusaurus/.prettierignore +6 -6
  6. package/template/docusaurus/.prettierrc.js +20 -20
  7. package/template/docusaurus/README.md +33 -33
  8. package/template/docusaurus/babel.config.js +3 -3
  9. package/template/docusaurus/blog/2019-05-28-hola.md +11 -11
  10. package/template/docusaurus/blog/2019-05-29-hello-world.md +17 -17
  11. package/template/docusaurus/blog/2019-05-30-welcome.md +13 -13
  12. package/template/docusaurus/docs/doc1/doc1.mdx +201 -201
  13. package/template/docusaurus/docs/doc1/doc2.mdx +5 -5
  14. package/template/docusaurus/docs/doc1/doc3.mdx +13 -13
  15. package/template/docusaurus/docs/doc1/doc4.mdx +23 -23
  16. package/template/docusaurus/docs/doc2/doc1.mdx +200 -200
  17. package/template/docusaurus/docs/doc2/doc2.mdx +5 -5
  18. package/template/docusaurus/docs/doc2/doc3.mdx +13 -13
  19. package/template/docusaurus/docs/doc2/mdx4.mdx +23 -23
  20. package/template/docusaurus/docusaurus.config.js +134 -134
  21. package/template/docusaurus/package.json +54 -54
  22. package/template/docusaurus/sidebars.js +14 -14
  23. package/template/docusaurus/src/css/custom.css +33 -33
  24. package/template/docusaurus/src/pages/index.tsx +18 -18
  25. package/template/docusaurus/static/img/undraw_docusaurus_mountain.svg +170 -170
  26. package/template/docusaurus/static/img/undraw_docusaurus_react.svg +169 -169
  27. package/template/docusaurus/tsconfig.json +4 -4
  28. package/template/lib/.changeset/README.md +8 -8
  29. package/template/lib/.changeset/config.json +11 -11
  30. package/template/lib/.gitignore +35 -35
  31. package/template/lib/package.json +30 -30
  32. package/template/lib/packages/test/.gitignore +35 -35
  33. package/template/lib/packages/test/package.json +13 -13
  34. package/template/lib/packages/test/src/index.ts +5 -5
  35. package/template/lib/packages/test/tsconfig.json +17 -17
  36. package/template/lib/pnpm-lock.yaml +2386 -2386
  37. package/template/lib/pnpm-workspace.yaml +2 -2
  38. package/template/nest/.eslintrc.js +25 -25
  39. package/template/nest/.gitignore +34 -34
  40. package/template/nest/.husky/pre-commit +4 -4
  41. package/template/nest/.prettierrc +6 -6
  42. package/template/nest/README.md +73 -73
  43. package/template/nest/nest-cli.json +5 -5
  44. package/template/nest/src/app.controller.spec.ts +22 -22
  45. package/template/nest/src/app.controller.ts +12 -12
  46. package/template/nest/src/app.module.ts +10 -10
  47. package/template/nest/src/app.service.ts +8 -8
  48. package/template/nest/src/main.ts +10 -10
  49. package/template/nest/src/utils/transform.interceptor.ts +26 -26
  50. package/template/nest/test/app.e2e-spec.ts +24 -24
  51. package/template/nest/test/jest-e2e.json +9 -9
  52. package/template/nest/tsconfig.build.json +5 -5
  53. package/template/nest/tsconfig.json +21 -21
  54. package/template/react/.gitignore +25 -25
  55. package/template/react/.husky/commit-msg +4 -4
  56. package/template/react/.husky/pre-commit +4 -4
  57. package/template/react/.prettierignore +4 -4
  58. package/template/react/.prettierrc +18 -18
  59. package/template/react/commitlint.config.cjs +1 -1
  60. package/template/react/index.html +13 -13
  61. package/template/react/jest.config.cjs +55 -55
  62. package/template/react/jest.setup.ts +5 -5
  63. package/template/react/postcss.config.cjs +9 -9
  64. package/template/react/src/controllers/index.ts +1 -0
  65. package/template/react/src/{providers → controllers}/useVisible.ts +2 -1
  66. package/template/react/src/providers/index.ts +0 -1
  67. package/template/react/tailwind.config.cjs +8 -8
  68. package/template/react/tsconfig.json +25 -25
  69. package/template/react/tsconfig.node.json +9 -9
  70. package/template/vue/.husky/commit-msg +4 -4
  71. package/template/vue/.husky/pre-commit +4 -4
  72. package/template/vue/.prettierignore +4 -4
  73. package/template/vue/commitlint.config.cjs +1 -1
  74. package/template/vue/index.html +13 -13
  75. package/template/vue/postcss.config.cjs +9 -9
  76. package/template/vue/src/controllers/index.ts +2 -0
  77. package/template/vue/src/controllers/useList.ts +107 -0
  78. package/template/vue/src/providers/index.ts +0 -1
  79. package/template/vue/tailwind.config.cjs +8 -8
  80. package/template/vue/tsconfig.json +22 -22
  81. package/template/vue/tsconfig.node.json +9 -9
  82. package/template/nest/.husky/_/.gitignore +0 -1
  83. package/template/react/.husky/_/.gitignore +0 -1
  84. package/template/react/stats.html +0 -4044
  85. package/template/vue/.husky/_/.gitignore +0 -1
  86. /package/template/vue/src/{providers → controllers}/useVisible.ts +0 -0
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2020 1k
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2020 1k
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,18 +1,18 @@
1
- # create-packer
2
-
3
- Quickly create project templates。
4
-
5
- ## QuicklyCreate
6
-
7
- ```shell
8
- npx create-packer -c <. || dirname>
9
- yarn create packer -c <. || dirname>
10
- pnpx create-packer -c <. || dirname>
11
- ```
12
-
13
- ## TempInfo
14
-
15
- - docusaurus: Based on [Docusaurus 2](https://v2.docusaurus.io/).
16
- - nest: Based on [nestjs](https://docs.nestjs.com/).
17
- - vue: Based on [vite(3.x)](https://cn.vitejs.dev/), [vue3](https://vuejs.org/).
18
- - react: Based on [vite(3.x)](https://cn.vitejs.dev/), [react18](https://reactjs.org/).
1
+ # create-packer
2
+
3
+ Quickly create project templates。
4
+
5
+ ## QuicklyCreate
6
+
7
+ ```shell
8
+ npx create-packer -c <. || dirname>
9
+ yarn create packer -c <. || dirname>
10
+ pnpx create-packer -c <. || dirname>
11
+ ```
12
+
13
+ ## TempInfo
14
+
15
+ - docusaurus: Based on [Docusaurus 2](https://v2.docusaurus.io/).
16
+ - nest: Based on [nestjs](https://docs.nestjs.com/).
17
+ - vue: Based on [vite(3.x)](https://cn.vitejs.dev/), [vue3](https://vuejs.org/).
18
+ - react: Based on [vite(3.x)](https://cn.vitejs.dev/), [react18](https://reactjs.org/).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-packer",
3
- "version": "1.13.2",
3
+ "version": "1.13.3",
4
4
  "main": "index.js",
5
5
  "repository": "https://github.com/kevily/create-packer",
6
6
  "author": "1k <bug_zero@163.com>",
@@ -1,20 +1,20 @@
1
- # Dependencies
2
- /node_modules
3
-
4
- # Production
5
- /build
6
-
7
- # Generated files
8
- .docusaurus
9
- .cache-loader
10
-
11
- # Misc
12
- .DS_Store
13
- .env.local
14
- .env.development.local
15
- .env.test.local
16
- .env.production.local
17
-
18
- npm-debug.log*
19
- yarn-debug.log*
20
- yarn-error.log*
1
+ # Dependencies
2
+ /node_modules
3
+
4
+ # Production
5
+ /build
6
+
7
+ # Generated files
8
+ .docusaurus
9
+ .cache-loader
10
+
11
+ # Misc
12
+ .DS_Store
13
+ .env.local
14
+ .env.development.local
15
+ .env.test.local
16
+ .env.production.local
17
+
18
+ npm-debug.log*
19
+ yarn-debug.log*
20
+ yarn-error.log*
@@ -1,6 +1,6 @@
1
- node_modules
2
- build
3
- .docusaurus
4
- **/*.svg
5
- **/*.ejs
6
- package.json
1
+ node_modules
2
+ build
3
+ .docusaurus
4
+ **/*.svg
5
+ **/*.ejs
6
+ package.json
@@ -1,20 +1,20 @@
1
- // 配置文档: https://prettier.io/docs/en/options.html
2
- // ----------------------------------------------------------------------
3
- module.exports = {
4
- overrides: [
5
- {
6
- files: '.prettierrc',
7
- options: { parser: 'json' }
8
- }
9
- ],
10
- printWidth: 100,
11
- tabWidth: 4,
12
- useTabs: false,
13
- semi: false,
14
- singleQuote: true,
15
- trailingComma: 'none',
16
- bracketSpacing: true,
17
- jsxBracketSameLine: true,
18
- arrowParens: 'avoid',
19
- rangeStart: 0
20
- }
1
+ // 配置文档: https://prettier.io/docs/en/options.html
2
+ // ----------------------------------------------------------------------
3
+ module.exports = {
4
+ overrides: [
5
+ {
6
+ files: '.prettierrc',
7
+ options: { parser: 'json' }
8
+ }
9
+ ],
10
+ printWidth: 100,
11
+ tabWidth: 4,
12
+ useTabs: false,
13
+ semi: false,
14
+ singleQuote: true,
15
+ trailingComma: 'none',
16
+ bracketSpacing: true,
17
+ jsxBracketSameLine: true,
18
+ arrowParens: 'avoid',
19
+ rangeStart: 0
20
+ }
@@ -1,33 +1,33 @@
1
- # Website
2
-
3
- This website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator.
4
-
5
- ## Installation
6
-
7
- ```console
8
- yarn install
9
- ```
10
-
11
- ## Local Development
12
-
13
- ```console
14
- yarn start
15
- ```
16
-
17
- This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
18
-
19
- ## Build
20
-
21
- ```console
22
- yarn build
23
- ```
24
-
25
- This command generates static content into the `build` directory and can be served using any static contents hosting service.
26
-
27
- ## Deployment
28
-
29
- ```console
30
- GIT_USER=<Your GitHub username> USE_SSH=true yarn deploy
31
- ```
32
-
33
- If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch.
1
+ # Website
2
+
3
+ This website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator.
4
+
5
+ ## Installation
6
+
7
+ ```console
8
+ yarn install
9
+ ```
10
+
11
+ ## Local Development
12
+
13
+ ```console
14
+ yarn start
15
+ ```
16
+
17
+ This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
18
+
19
+ ## Build
20
+
21
+ ```console
22
+ yarn build
23
+ ```
24
+
25
+ This command generates static content into the `build` directory and can be served using any static contents hosting service.
26
+
27
+ ## Deployment
28
+
29
+ ```console
30
+ GIT_USER=<Your GitHub username> USE_SSH=true yarn deploy
31
+ ```
32
+
33
+ If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch.
@@ -1,3 +1,3 @@
1
- module.exports = {
2
- presets: [require.resolve('@docusaurus/core/lib/babel/preset')]
3
- }
1
+ module.exports = {
2
+ presets: [require.resolve('@docusaurus/core/lib/babel/preset')]
3
+ }
@@ -1,11 +1,11 @@
1
- ---
2
- slug: hola
3
- title: Hola
4
- author: Gao Wei
5
- author_title: Docusaurus Core Team
6
- author_url: https://github.com/wgao19
7
- author_image_url: https://avatars1.githubusercontent.com/u/2055384?v=4
8
- tags: [hola, docusaurus]
9
- ---
10
-
11
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
1
+ ---
2
+ slug: hola
3
+ title: Hola
4
+ author: Gao Wei
5
+ author_title: Docusaurus Core Team
6
+ author_url: https://github.com/wgao19
7
+ author_image_url: https://avatars1.githubusercontent.com/u/2055384?v=4
8
+ tags: [hola, docusaurus]
9
+ ---
10
+
11
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
@@ -1,17 +1,17 @@
1
- ---
2
- slug: hello-world
3
- title: Hello
4
- author: Endilie Yacop Sucipto
5
- author_title: Maintainer of Docusaurus
6
- author_url: https://github.com/endiliey
7
- author_image_url: https://avatars1.githubusercontent.com/u/17883920?s=460&v=4
8
- tags: [hello, docusaurus]
9
- ---
10
-
11
- Welcome to this blog. This blog is created with [**Docusaurus 2**](https://docusaurus.io/).
12
-
13
- <!--truncate-->
14
-
15
- This is a test post.
16
-
17
- A whole bunch of other information.
1
+ ---
2
+ slug: hello-world
3
+ title: Hello
4
+ author: Endilie Yacop Sucipto
5
+ author_title: Maintainer of Docusaurus
6
+ author_url: https://github.com/endiliey
7
+ author_image_url: https://avatars1.githubusercontent.com/u/17883920?s=460&v=4
8
+ tags: [hello, docusaurus]
9
+ ---
10
+
11
+ Welcome to this blog. This blog is created with [**Docusaurus 2**](https://docusaurus.io/).
12
+
13
+ <!--truncate-->
14
+
15
+ This is a test post.
16
+
17
+ A whole bunch of other information.
@@ -1,13 +1,13 @@
1
- ---
2
- slug: welcome
3
- title: Welcome
4
- author: Yangshun Tay
5
- author_title: Front End Engineer @ Facebook
6
- author_url: https://github.com/yangshun
7
- author_image_url: https://avatars0.githubusercontent.com/u/1315101?s=400&v=4
8
- tags: [facebook, hello, docusaurus]
9
- ---
10
-
11
- Blog features are powered by the blog plugin. Simply add files to the `blog` directory. It supports tags as well!
12
-
13
- Delete the whole directory if you don't want the blog features. As simple as that!
1
+ ---
2
+ slug: welcome
3
+ title: Welcome
4
+ author: Yangshun Tay
5
+ author_title: Front End Engineer @ Facebook
6
+ author_url: https://github.com/yangshun
7
+ author_image_url: https://avatars0.githubusercontent.com/u/1315101?s=400&v=4
8
+ tags: [facebook, hello, docusaurus]
9
+ ---
10
+
11
+ Blog features are powered by the blog plugin. Simply add files to the `blog` directory. It supports tags as well!
12
+
13
+ Delete the whole directory if you don't want the blog features. As simple as that!