create-packer 1.13.2 → 1.13.4

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 (89) 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/models/index.ts +1 -0
  65. package/template/react/src/{providers → models}/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/models/index.ts +2 -0
  77. package/template/vue/src/models/useList.ts +112 -0
  78. package/template/vue/src/providers/createModalVNode.ts +34 -0
  79. package/template/vue/src/providers/index.ts +1 -2
  80. package/template/vue/tailwind.config.cjs +8 -8
  81. package/template/vue/tsconfig.json +22 -22
  82. package/template/vue/tsconfig.node.json +9 -9
  83. package/template/nest/.husky/_/.gitignore +0 -1
  84. package/template/react/.husky/_/.gitignore +0 -1
  85. package/template/react/stats.html +0 -4044
  86. package/template/vue/.husky/_/.gitignore +0 -1
  87. package/template/vue/src/providers/createApiComponent.ts +0 -22
  88. /package/template/react/src/{app.store.ts → app.model.ts} +0 -0
  89. /package/template/vue/src/{providers → models}/useVisible.ts +0 -0
@@ -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,54 +1,54 @@
1
- {
2
- "name": "docusaurus-temp",
3
- "version": "0.0.0",
4
- "private": true,
5
- "scripts": {
6
- "docusaurus": "docusaurus",
7
- "start": "docusaurus start",
8
- "build": "docusaurus build",
9
- "swizzle": "docusaurus swizzle",
10
- "deploy": "docusaurus deploy",
11
- "clear": "docusaurus clear",
12
- "serve": "docusaurus serve",
13
- "write-translations": "docusaurus write-translations",
14
- "write-heading-ids": "docusaurus write-heading-ids",
15
- "upgrade:docusaurus": "yarn upgrade -L -S @docusaurus",
16
- "format": "prettier --write \"src/**/*.{ts,js,tsx,jsx,css,scss,less}\" \"./package.json\""
17
- },
18
- "dependencies": {
19
- "@docusaurus/core": "2.0.0-beta.9",
20
- "@docusaurus/preset-classic": "2.0.0-beta.9",
21
- "@docusaurus/theme-live-codeblock": "2.0.0-beta.9",
22
- "@easyops-cn/docusaurus-search-local": "0.19.1",
23
- "@mdx-js/react": "1.6.21",
24
- "@svgr/webpack": "5.5.0",
25
- "clsx": "1.1.1",
26
- "file-loader": "6.2.0",
27
- "nodejieba": "2.5.2",
28
- "prism-react-renderer": "1.2.1",
29
- "react": "17.0.1",
30
- "react-dom": "17.0.1",
31
- "url-loader": "4.1.1"
32
- },
33
- "browserslist": {
34
- "production": [
35
- ">0.5%",
36
- "not dead",
37
- "not op_mini all"
38
- ],
39
- "development": [
40
- "last 1 chrome version",
41
- "last 1 firefox version",
42
- "last 1 safari version"
43
- ]
44
- },
45
- "devDependencies": {
46
- "@docusaurus/module-type-aliases": "2.0.0-beta.9",
47
- "@tsconfig/docusaurus": "1.0.4",
48
- "@types/react": "17.0.19",
49
- "@types/react-helmet": "6.1.2",
50
- "@types/react-router-dom": "5.1.8",
51
- "prettier": "2.3.2",
52
- "typescript": "4.3.5"
53
- }
54
- }
1
+ {
2
+ "name": "docusaurus-temp",
3
+ "version": "0.0.0",
4
+ "private": true,
5
+ "scripts": {
6
+ "docusaurus": "docusaurus",
7
+ "start": "docusaurus start",
8
+ "build": "docusaurus build",
9
+ "swizzle": "docusaurus swizzle",
10
+ "deploy": "docusaurus deploy",
11
+ "clear": "docusaurus clear",
12
+ "serve": "docusaurus serve",
13
+ "write-translations": "docusaurus write-translations",
14
+ "write-heading-ids": "docusaurus write-heading-ids",
15
+ "upgrade:docusaurus": "yarn upgrade -L -S @docusaurus",
16
+ "format": "prettier --write \"src/**/*.{ts,js,tsx,jsx,css,scss,less}\" \"./package.json\""
17
+ },
18
+ "dependencies": {
19
+ "@docusaurus/core": "2.0.0-beta.9",
20
+ "@docusaurus/preset-classic": "2.0.0-beta.9",
21
+ "@docusaurus/theme-live-codeblock": "2.0.0-beta.9",
22
+ "@easyops-cn/docusaurus-search-local": "0.19.1",
23
+ "@mdx-js/react": "1.6.21",
24
+ "@svgr/webpack": "5.5.0",
25
+ "clsx": "1.1.1",
26
+ "file-loader": "6.2.0",
27
+ "nodejieba": "2.5.2",
28
+ "prism-react-renderer": "1.2.1",
29
+ "react": "17.0.1",
30
+ "react-dom": "17.0.1",
31
+ "url-loader": "4.1.1"
32
+ },
33
+ "browserslist": {
34
+ "production": [
35
+ ">0.5%",
36
+ "not dead",
37
+ "not op_mini all"
38
+ ],
39
+ "development": [
40
+ "last 1 chrome version",
41
+ "last 1 firefox version",
42
+ "last 1 safari version"
43
+ ]
44
+ },
45
+ "devDependencies": {
46
+ "@docusaurus/module-type-aliases": "2.0.0-beta.9",
47
+ "@tsconfig/docusaurus": "1.0.4",
48
+ "@types/react": "17.0.19",
49
+ "@types/react-helmet": "6.1.2",
50
+ "@types/react-router-dom": "5.1.8",
51
+ "prettier": "2.3.2",
52
+ "typescript": "4.3.5"
53
+ }
54
+ }
@@ -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
+ }
@@ -1,33 +1,33 @@
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
- /**
11
- * Any CSS included here will be global. The classic template
12
- * bundles Infima by default. Infima is a CSS framework designed to
13
- * work well for content-centric websites.
14
- */
15
-
16
- /* You can override the default Infima variables here. */
17
- :root {
18
- --ifm-color-primary: #25c2a0;
19
- --ifm-color-primary-dark: rgb(33, 175, 144);
20
- --ifm-color-primary-darker: rgb(31, 165, 136);
21
- --ifm-color-primary-darkest: rgb(26, 136, 112);
22
- --ifm-color-primary-light: rgb(70, 203, 174);
23
- --ifm-color-primary-lighter: rgb(102, 212, 189);
24
- --ifm-color-primary-lightest: rgb(146, 224, 208);
25
- --ifm-code-font-size: 95%;
26
- }
27
-
28
- .docusaurus-highlight-code-line {
29
- background-color: rgb(72, 77, 91);
30
- display: block;
31
- margin: 0 calc(-1 * var(--ifm-pre-padding));
32
- padding: 0 var(--ifm-pre-padding);
33
- }
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
+ /**
11
+ * Any CSS included here will be global. The classic template
12
+ * bundles Infima by default. Infima is a CSS framework designed to
13
+ * work well for content-centric websites.
14
+ */
15
+
16
+ /* You can override the default Infima variables here. */
17
+ :root {
18
+ --ifm-color-primary: #25c2a0;
19
+ --ifm-color-primary-dark: rgb(33, 175, 144);
20
+ --ifm-color-primary-darker: rgb(31, 165, 136);
21
+ --ifm-color-primary-darkest: rgb(26, 136, 112);
22
+ --ifm-color-primary-light: rgb(70, 203, 174);
23
+ --ifm-color-primary-lighter: rgb(102, 212, 189);
24
+ --ifm-color-primary-lightest: rgb(146, 224, 208);
25
+ --ifm-code-font-size: 95%;
26
+ }
27
+
28
+ .docusaurus-highlight-code-line {
29
+ background-color: rgb(72, 77, 91);
30
+ display: block;
31
+ margin: 0 calc(-1 * var(--ifm-pre-padding));
32
+ padding: 0 var(--ifm-pre-padding);
33
+ }
@@ -1,18 +1,18 @@
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
- import React from 'react'
11
- import { Redirect } from '@docusaurus/router'
12
- import styles from './styles.module.css'
13
-
14
- function Home() {
15
- return <Redirect to={'docs/doc1/doc1'} />
16
- }
17
-
18
- export default Home
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
+ import React from 'react'
11
+ import { Redirect } from '@docusaurus/router'
12
+ import styles from './styles.module.css'
13
+
14
+ function Home() {
15
+ return <Redirect to={'docs/doc1/doc1'} />
16
+ }
17
+
18
+ export default Home