create-packer 1.16.1 → 1.16.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 (77) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +18 -18
  3. package/bin/clis/createTemp.d.ts +5 -5
  4. package/bin/clis/createTemp.js +58 -58
  5. package/bin/index.d.ts +2 -2
  6. package/bin/index.js +10 -10
  7. package/bin/utils/index.d.ts +4 -4
  8. package/bin/utils/index.js +45 -45
  9. package/package.json +1 -1
  10. package/template/docusaurus/.gitignore +20 -20
  11. package/template/docusaurus/.prettierignore +6 -6
  12. package/template/docusaurus/README.md +33 -33
  13. package/template/docusaurus/babel.config.js +3 -3
  14. package/template/docusaurus/blog/2019-05-28-hola.md +11 -11
  15. package/template/docusaurus/blog/2019-05-29-hello-world.md +17 -17
  16. package/template/docusaurus/blog/2019-05-30-welcome.md +13 -13
  17. package/template/docusaurus/docs/doc1/doc1.mdx +201 -201
  18. package/template/docusaurus/docs/doc1/doc2.mdx +5 -5
  19. package/template/docusaurus/docs/doc1/doc3.mdx +13 -13
  20. package/template/docusaurus/docs/doc1/doc4.mdx +23 -23
  21. package/template/docusaurus/docs/doc2/doc1.mdx +200 -200
  22. package/template/docusaurus/docs/doc2/doc2.mdx +5 -5
  23. package/template/docusaurus/docs/doc2/doc3.mdx +13 -13
  24. package/template/docusaurus/docs/doc2/mdx4.mdx +23 -23
  25. package/template/docusaurus/docusaurus.config.js +134 -134
  26. package/template/docusaurus/sidebars.js +14 -14
  27. package/template/docusaurus/static/img/undraw_docusaurus_mountain.svg +170 -170
  28. package/template/docusaurus/static/img/undraw_docusaurus_react.svg +169 -169
  29. package/template/docusaurus/tsconfig.json +4 -4
  30. package/template/lib/.changeset/README.md +8 -8
  31. package/template/lib/.changeset/config.json +11 -11
  32. package/template/lib/.gitignore +35 -35
  33. package/template/lib/packages/test/.gitignore +35 -35
  34. package/template/lib/packages/test/package.json +13 -13
  35. package/template/lib/packages/test/src/index.ts +5 -5
  36. package/template/lib/packages/test/tsconfig.json +17 -17
  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/commitlint.config.cjs +1 -1
  59. package/template/react/index.html +13 -13
  60. package/template/react/jest.config.cjs +55 -55
  61. package/template/react/jest.setup.ts +5 -5
  62. package/template/react/postcss.config.cjs +9 -9
  63. package/template/react/tailwind.config.cjs +8 -8
  64. package/template/react/tsconfig.json +25 -25
  65. package/template/react/tsconfig.node.json +9 -9
  66. package/template/vue/.husky/commit-msg +4 -4
  67. package/template/vue/.husky/pre-commit +4 -4
  68. package/template/vue/.prettierignore +4 -4
  69. package/template/vue/commitlint.config.cjs +1 -1
  70. package/template/vue/index.html +13 -13
  71. package/template/vue/package.json +2 -2
  72. package/template/vue/postcss.config.cjs +9 -9
  73. package/template/vue/src/models/useList.ts +1 -1
  74. package/template/vue/tailwind.config.cjs +8 -8
  75. package/template/vue/tsconfig.json +22 -22
  76. package/template/vue/tsconfig.node.json +9 -9
  77. package/template/vue/vite.config.ts +27 -19
@@ -1,134 +1,134 @@
1
- /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @format
8
- */
9
-
10
- const path = require('path')
11
-
12
- module.exports = {
13
- title: 'My Site',
14
- tagline: 'The tagline of my site',
15
- url: 'https://your-docusaurus-test-site.com',
16
- baseUrl: '/',
17
- onBrokenLinks: 'throw',
18
- favicon: 'img/favicon.ico',
19
- organizationName: 'facebook', // Usually your GitHub org/user name.
20
- projectName: 'docusaurus', // Usually your repo name.
21
- themeConfig: {
22
- navbar: {
23
- title: 'My Project',
24
- logo: {
25
- alt: 'My Project Logo',
26
- src: 'img/logo.svg'
27
- },
28
- items: [
29
- {
30
- type: 'doc',
31
- docId: 'doc1/doc1',
32
- label: 'doc1',
33
- position: 'left'
34
- },
35
- {
36
- type: 'doc',
37
- docId: 'doc2/doc1',
38
- label: 'doc2',
39
- position: 'left'
40
- }
41
- ]
42
- },
43
- footer: {
44
- style: 'dark',
45
- links: [
46
- {
47
- title: 'Community',
48
- items: [
49
- {
50
- label: 'Stack Overflow',
51
- href: 'https://stackoverflow.com/questions/tagged/docusaurus'
52
- },
53
- {
54
- label: 'Twitter',
55
- href: 'https://twitter.com/docusaurus'
56
- },
57
- {
58
- label: 'Discord',
59
- href: 'https://discordapp.com/invite/docusaurus'
60
- }
61
- ]
62
- },
63
- {
64
- title: 'More',
65
- items: [
66
- {
67
- label: 'Blog',
68
- to: 'blog'
69
- },
70
- {
71
- label: 'GitHub',
72
- href: 'https://github.com/facebook/docusaurus'
73
- }
74
- ]
75
- },
76
- {
77
- title: 'Legal',
78
- // Please do not remove the privacy and terms, it's a legal requirement.
79
- items: [
80
- {
81
- label: 'Privacy',
82
- href: 'https://opensource.facebook.com/legal/privacy/'
83
- },
84
- {
85
- label: 'Terms',
86
- href: 'https://opensource.facebook.com/legal/terms/'
87
- }
88
- ]
89
- }
90
- ],
91
- logo: {
92
- alt: 'Facebook Open Source Logo',
93
- src: 'img/logo.svg',
94
- href: 'https://opensource.facebook.com'
95
- },
96
- // Please do not remove the credits, help to publicize Docusaurus :)
97
- copyright: `Copyright © ${new Date().getFullYear()} Facebook, Inc. Built with Docusaurus.`
98
- }
99
- },
100
- plugins: [
101
- [
102
- require.resolve('@easyops-cn/docusaurus-search-local'),
103
- {
104
- // ... Your options.
105
- // `hashed` is recommended as long-term-cache of index file is possible.
106
- hashed: true,
107
- // For Docs using Chinese, The `language` is recommended to set to:
108
- // ```
109
- language: ['en', 'zh']
110
- // ```
111
- // When applying `zh` in language, please install `nodejieba` in your project.
112
- }
113
- ]
114
- ],
115
- presets: [
116
- [
117
- '@docusaurus/preset-classic',
118
- {
119
- docs: {
120
- sidebarPath: path.join(__dirname, './sidebars.js'),
121
- sidebarItemsGenerator: async function ({
122
- defaultSidebarItemsGenerator,
123
- ...args
124
- }) {
125
- return await defaultSidebarItemsGenerator(args)
126
- }
127
- },
128
- theme: {
129
- customCss: require.resolve('./src/css/custom.css')
130
- }
131
- }
132
- ]
133
- ]
134
- }
1
+ /**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @format
8
+ */
9
+
10
+ const path = require('path')
11
+
12
+ module.exports = {
13
+ title: 'My Site',
14
+ tagline: 'The tagline of my site',
15
+ url: 'https://your-docusaurus-test-site.com',
16
+ baseUrl: '/',
17
+ onBrokenLinks: 'throw',
18
+ favicon: 'img/favicon.ico',
19
+ organizationName: 'facebook', // Usually your GitHub org/user name.
20
+ projectName: 'docusaurus', // Usually your repo name.
21
+ themeConfig: {
22
+ navbar: {
23
+ title: 'My Project',
24
+ logo: {
25
+ alt: 'My Project Logo',
26
+ src: 'img/logo.svg'
27
+ },
28
+ items: [
29
+ {
30
+ type: 'doc',
31
+ docId: 'doc1/doc1',
32
+ label: 'doc1',
33
+ position: 'left'
34
+ },
35
+ {
36
+ type: 'doc',
37
+ docId: 'doc2/doc1',
38
+ label: 'doc2',
39
+ position: 'left'
40
+ }
41
+ ]
42
+ },
43
+ footer: {
44
+ style: 'dark',
45
+ links: [
46
+ {
47
+ title: 'Community',
48
+ items: [
49
+ {
50
+ label: 'Stack Overflow',
51
+ href: 'https://stackoverflow.com/questions/tagged/docusaurus'
52
+ },
53
+ {
54
+ label: 'Twitter',
55
+ href: 'https://twitter.com/docusaurus'
56
+ },
57
+ {
58
+ label: 'Discord',
59
+ href: 'https://discordapp.com/invite/docusaurus'
60
+ }
61
+ ]
62
+ },
63
+ {
64
+ title: 'More',
65
+ items: [
66
+ {
67
+ label: 'Blog',
68
+ to: 'blog'
69
+ },
70
+ {
71
+ label: 'GitHub',
72
+ href: 'https://github.com/facebook/docusaurus'
73
+ }
74
+ ]
75
+ },
76
+ {
77
+ title: 'Legal',
78
+ // Please do not remove the privacy and terms, it's a legal requirement.
79
+ items: [
80
+ {
81
+ label: 'Privacy',
82
+ href: 'https://opensource.facebook.com/legal/privacy/'
83
+ },
84
+ {
85
+ label: 'Terms',
86
+ href: 'https://opensource.facebook.com/legal/terms/'
87
+ }
88
+ ]
89
+ }
90
+ ],
91
+ logo: {
92
+ alt: 'Facebook Open Source Logo',
93
+ src: 'img/logo.svg',
94
+ href: 'https://opensource.facebook.com'
95
+ },
96
+ // Please do not remove the credits, help to publicize Docusaurus :)
97
+ copyright: `Copyright © ${new Date().getFullYear()} Facebook, Inc. Built with Docusaurus.`
98
+ }
99
+ },
100
+ plugins: [
101
+ [
102
+ require.resolve('@easyops-cn/docusaurus-search-local'),
103
+ {
104
+ // ... Your options.
105
+ // `hashed` is recommended as long-term-cache of index file is possible.
106
+ hashed: true,
107
+ // For Docs using Chinese, The `language` is recommended to set to:
108
+ // ```
109
+ language: ['en', 'zh']
110
+ // ```
111
+ // When applying `zh` in language, please install `nodejieba` in your project.
112
+ }
113
+ ]
114
+ ],
115
+ presets: [
116
+ [
117
+ '@docusaurus/preset-classic',
118
+ {
119
+ docs: {
120
+ sidebarPath: path.join(__dirname, './sidebars.js'),
121
+ sidebarItemsGenerator: async function ({
122
+ defaultSidebarItemsGenerator,
123
+ ...args
124
+ }) {
125
+ return await defaultSidebarItemsGenerator(args)
126
+ }
127
+ },
128
+ theme: {
129
+ customCss: require.resolve('./src/css/custom.css')
130
+ }
131
+ }
132
+ ]
133
+ ]
134
+ }
@@ -1,14 +1,14 @@
1
- module.exports = {
2
- doc1: [
3
- {
4
- type: 'autogenerated',
5
- dirName: 'doc1'
6
- }
7
- ],
8
- doc2: [
9
- {
10
- type: 'autogenerated',
11
- dirName: 'doc2'
12
- }
13
- ]
14
- }
1
+ module.exports = {
2
+ doc1: [
3
+ {
4
+ type: 'autogenerated',
5
+ dirName: 'doc1'
6
+ }
7
+ ],
8
+ doc2: [
9
+ {
10
+ type: 'autogenerated',
11
+ dirName: 'doc2'
12
+ }
13
+ ]
14
+ }