create-packer 1.13.0 → 1.13.2

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 (91) 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/.prettierrc.js +20 -20
  13. package/template/docusaurus/README.md +33 -33
  14. package/template/docusaurus/babel.config.js +3 -3
  15. package/template/docusaurus/blog/2019-05-28-hola.md +11 -11
  16. package/template/docusaurus/blog/2019-05-29-hello-world.md +17 -17
  17. package/template/docusaurus/blog/2019-05-30-welcome.md +13 -13
  18. package/template/docusaurus/docs/doc1/doc1.mdx +201 -201
  19. package/template/docusaurus/docs/doc1/doc2.mdx +5 -5
  20. package/template/docusaurus/docs/doc1/doc3.mdx +13 -13
  21. package/template/docusaurus/docs/doc1/doc4.mdx +23 -23
  22. package/template/docusaurus/docs/doc2/doc1.mdx +200 -200
  23. package/template/docusaurus/docs/doc2/doc2.mdx +5 -5
  24. package/template/docusaurus/docs/doc2/doc3.mdx +13 -13
  25. package/template/docusaurus/docs/doc2/mdx4.mdx +23 -23
  26. package/template/docusaurus/docusaurus.config.js +134 -134
  27. package/template/docusaurus/package.json +54 -54
  28. package/template/docusaurus/sidebars.js +14 -14
  29. package/template/docusaurus/src/css/custom.css +33 -33
  30. package/template/docusaurus/src/pages/index.tsx +18 -18
  31. package/template/docusaurus/static/img/undraw_docusaurus_mountain.svg +170 -170
  32. package/template/docusaurus/static/img/undraw_docusaurus_react.svg +169 -169
  33. package/template/docusaurus/tsconfig.json +4 -4
  34. package/template/lib/.changeset/README.md +8 -8
  35. package/template/lib/.changeset/config.json +11 -11
  36. package/template/lib/.gitignore +35 -35
  37. package/template/lib/package.json +30 -30
  38. package/template/lib/packages/test/.gitignore +35 -35
  39. package/template/lib/packages/test/package.json +13 -13
  40. package/template/lib/packages/test/src/index.ts +5 -5
  41. package/template/lib/packages/test/tsconfig.json +17 -17
  42. package/template/lib/pnpm-lock.yaml +2386 -2386
  43. package/template/lib/pnpm-workspace.yaml +2 -2
  44. package/template/nest/.eslintrc.js +25 -25
  45. package/template/nest/.gitignore +34 -34
  46. package/template/nest/.husky/_/.gitignore +1 -0
  47. package/template/nest/.husky/pre-commit +4 -4
  48. package/template/nest/.prettierrc +6 -6
  49. package/template/nest/README.md +73 -73
  50. package/template/nest/nest-cli.json +5 -5
  51. package/template/nest/src/app.controller.spec.ts +22 -22
  52. package/template/nest/src/app.controller.ts +12 -12
  53. package/template/nest/src/app.module.ts +10 -10
  54. package/template/nest/src/app.service.ts +8 -8
  55. package/template/nest/src/main.ts +10 -10
  56. package/template/nest/src/utils/transform.interceptor.ts +26 -26
  57. package/template/nest/test/app.e2e-spec.ts +24 -24
  58. package/template/nest/test/jest-e2e.json +9 -9
  59. package/template/nest/tsconfig.build.json +5 -5
  60. package/template/nest/tsconfig.json +21 -21
  61. package/template/react/.eslintrc +26 -1
  62. package/template/react/.gitignore +25 -25
  63. package/template/react/.husky/_/.gitignore +1 -0
  64. package/template/react/.husky/commit-msg +4 -4
  65. package/template/react/.husky/pre-commit +4 -4
  66. package/template/react/.prettierignore +4 -4
  67. package/template/react/.prettierrc +18 -18
  68. package/template/react/.stylelintrc +2 -2
  69. package/template/react/commitlint.config.cjs +1 -1
  70. package/template/react/index.html +13 -13
  71. package/template/react/jest.config.cjs +55 -55
  72. package/template/react/jest.setup.ts +5 -5
  73. package/template/react/package.json +2 -0
  74. package/template/react/postcss.config.cjs +9 -9
  75. package/template/react/stats.html +4044 -4044
  76. package/template/react/tailwind.config.cjs +8 -8
  77. package/template/react/tsconfig.json +25 -25
  78. package/template/react/tsconfig.node.json +9 -9
  79. package/template/vue/.eslintrc +26 -2
  80. package/template/vue/.husky/_/.gitignore +1 -0
  81. package/template/vue/.husky/commit-msg +4 -4
  82. package/template/vue/.husky/pre-commit +4 -4
  83. package/template/vue/.prettierignore +4 -4
  84. package/template/vue/.stylelintrc +2 -2
  85. package/template/vue/commitlint.config.cjs +1 -1
  86. package/template/vue/index.html +13 -13
  87. package/template/vue/package.json +2 -0
  88. package/template/vue/postcss.config.cjs +9 -9
  89. package/template/vue/tailwind.config.cjs +8 -8
  90. package/template/vue/tsconfig.json +22 -22
  91. package/template/vue/tsconfig.node.json +9 -9
@@ -1,8 +1,8 @@
1
- /** @type {import('tailwindcss').Config} */
2
- module.exports = {
3
- content: ['./index.html', './src/**/*.{ts,tsx}'],
4
- theme: {
5
- extend: {}
6
- },
7
- plugins: []
8
- }
1
+ /** @type {import('tailwindcss').Config} */
2
+ module.exports = {
3
+ content: ['./index.html', './src/**/*.{ts,tsx}'],
4
+ theme: {
5
+ extend: {}
6
+ },
7
+ plugins: []
8
+ }
@@ -1,25 +1,25 @@
1
- {
2
- "compilerOptions": {
3
- "baseUrl": ".",
4
- "target": "ESNext",
5
- "useDefineForClassFields": true,
6
- "lib": ["DOM", "DOM.Iterable", "ESNext"],
7
- "allowJs": false,
8
- "skipLibCheck": true,
9
- "esModuleInterop": false,
10
- "allowSyntheticDefaultImports": true,
11
- "strict": true,
12
- "forceConsistentCasingInFileNames": true,
13
- "module": "ESNext",
14
- "moduleResolution": "Node",
15
- "resolveJsonModule": true,
16
- "isolatedModules": true,
17
- "noEmit": true,
18
- "jsx": "react-jsx",
19
- "paths": {
20
- "@/*": ["src/*"]
21
- }
22
- },
23
- "include": ["src"],
24
- "references": [{ "path": "./tsconfig.node.json" }]
25
- }
1
+ {
2
+ "compilerOptions": {
3
+ "baseUrl": ".",
4
+ "target": "ESNext",
5
+ "useDefineForClassFields": true,
6
+ "lib": ["DOM", "DOM.Iterable", "ESNext"],
7
+ "allowJs": false,
8
+ "skipLibCheck": true,
9
+ "esModuleInterop": false,
10
+ "allowSyntheticDefaultImports": true,
11
+ "strict": true,
12
+ "forceConsistentCasingInFileNames": true,
13
+ "module": "ESNext",
14
+ "moduleResolution": "Node",
15
+ "resolveJsonModule": true,
16
+ "isolatedModules": true,
17
+ "noEmit": true,
18
+ "jsx": "react-jsx",
19
+ "paths": {
20
+ "@/*": ["src/*"]
21
+ }
22
+ },
23
+ "include": ["src"],
24
+ "references": [{ "path": "./tsconfig.node.json" }]
25
+ }
@@ -1,9 +1,9 @@
1
- {
2
- "compilerOptions": {
3
- "composite": true,
4
- "module": "ESNext",
5
- "moduleResolution": "Node",
6
- "allowSyntheticDefaultImports": true
7
- },
8
- "include": ["vite.config.ts"]
9
- }
1
+ {
2
+ "compilerOptions": {
3
+ "composite": true,
4
+ "module": "ESNext",
5
+ "moduleResolution": "Node",
6
+ "allowSyntheticDefaultImports": true
7
+ },
8
+ "include": ["vite.config.ts"]
9
+ }
@@ -16,17 +16,40 @@
16
16
  "extends": [
17
17
  "eslint:recommended",
18
18
  "plugin:@typescript-eslint/recommended",
19
- "plugin:vue/vue3-recommended"
19
+ "plugin:vue/vue3-recommended",
20
+ "plugin:import/recommended",
21
+ "plugin:import/typescript"
20
22
  ],
23
+ "settings": {
24
+ "import/resolver": {
25
+ "typescript": true,
26
+ "node": true
27
+ }
28
+ },
21
29
  "parser": "vue-eslint-parser",
22
30
  "parserOptions": {
23
31
  "parser": "@typescript-eslint/parser",
24
- "ecmaVersion": 2021,
32
+ "ecmaVersion": "latest",
25
33
  "ecmaFeatures": {
26
34
  "jsx": true
27
35
  }
28
36
  },
29
37
  "rules": {
38
+ "import/order": [
39
+ "error",
40
+ {
41
+ "groups": [
42
+ "builtin",
43
+ "external",
44
+ "internal",
45
+ "parent",
46
+ "sibling",
47
+ "index",
48
+ "object",
49
+ "type"
50
+ ]
51
+ }
52
+ ],
30
53
  "@typescript-eslint/no-var-requires": 0,
31
54
  "@typescript-eslint/explicit-function-return-type": "off",
32
55
  "@typescript-eslint/no-explicit-any": 0,
@@ -51,6 +74,7 @@
51
74
  ],
52
75
  "vue/multi-word-component-names": 0,
53
76
  "vue/html-indent": ["error", 4],
77
+ "vue/require-default-prop": "off",
54
78
  "vue/html-self-closing": [
55
79
  "error",
56
80
  {
@@ -0,0 +1 @@
1
+ *
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env sh
2
- . "$(dirname -- "$0")/_/husky.sh"
3
-
4
- npx --no -- commitlint --edit
1
+ #!/usr/bin/env sh
2
+ . "$(dirname -- "$0")/_/husky.sh"
3
+
4
+ npx --no -- commitlint --edit
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env sh
2
- . "$(dirname -- "$0")/_/husky.sh"
3
-
4
- npm run lint
1
+ #!/usr/bin/env sh
2
+ . "$(dirname -- "$0")/_/husky.sh"
3
+
4
+ npm run lint
@@ -1,4 +1,4 @@
1
- **/*.md
2
- **/*.svg
3
- **/*.ejs
4
- **/*.html
1
+ **/*.md
2
+ **/*.svg
3
+ **/*.ejs
4
+ **/*.html
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "extends": "stylelint-config-standard",
3
3
  "rules": {
4
- "indentation": 4,
5
4
  "comment-empty-line-before": "never",
6
5
  "no-empty-source": null,
6
+ "alpha-value-notation": null,
7
+ "color-function-notation": null,
7
8
  "no-descending-specificity": null,
8
- "string-quotes": "single",
9
9
  "at-rule-no-unknown": [
10
10
  true,
11
11
  {
@@ -1 +1 @@
1
- module.exports = { extends: ['@commitlint/config-conventional'] }
1
+ module.exports = { extends: ['@commitlint/config-conventional'] }
@@ -1,13 +1,13 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
- <title>Vite + Vue + TS</title>
8
- </head>
9
- <body>
10
- <div id="app"></div>
11
- <script type="module" src="/src/main.ts"></script>
12
- </body>
13
- </html>
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>Vite + Vue + TS</title>
8
+ </head>
9
+ <body>
10
+ <div id="app"></div>
11
+ <script type="module" src="/src/main.ts"></script>
12
+ </body>
13
+ </html>
@@ -35,6 +35,8 @@
35
35
  "commitizen": "4.3.0",
36
36
  "cssnano": "5.1.14",
37
37
  "eslint": "8.34.0",
38
+ "eslint-import-resolver-typescript": "^3.5.3",
39
+ "eslint-plugin-import": "^2.27.5",
38
40
  "eslint-plugin-prettier": "4.2.1",
39
41
  "eslint-plugin-vue": "9.9.0",
40
42
  "husky": "8.0.3",
@@ -1,9 +1,9 @@
1
- module.exports = {
2
- plugins: {
3
- 'postcss-import': {},
4
- 'tailwindcss/nesting': 'postcss-nesting',
5
- tailwindcss: {},
6
- autoprefixer: {},
7
- ...(process.env.NODE_ENV === 'production' ? { cssnano: {} } : {})
8
- }
9
- }
1
+ module.exports = {
2
+ plugins: {
3
+ 'postcss-import': {},
4
+ 'tailwindcss/nesting': 'postcss-nesting',
5
+ tailwindcss: {},
6
+ autoprefixer: {},
7
+ ...(process.env.NODE_ENV === 'production' ? { cssnano: {} } : {})
8
+ }
9
+ }
@@ -1,8 +1,8 @@
1
- /** @type {import('tailwindcss').Config} */
2
- module.exports = {
3
- content: ['./index.html', './src/**/*.{vue,ts,tsx}'],
4
- theme: {
5
- extend: {}
6
- },
7
- plugins: []
8
- }
1
+ /** @type {import('tailwindcss').Config} */
2
+ module.exports = {
3
+ content: ['./index.html', './src/**/*.{vue,ts,tsx}'],
4
+ theme: {
5
+ extend: {}
6
+ },
7
+ plugins: []
8
+ }
@@ -1,22 +1,22 @@
1
- {
2
- "compilerOptions": {
3
- "baseUrl": ".",
4
- "target": "ESNext",
5
- "useDefineForClassFields": true,
6
- "module": "ESNext",
7
- "moduleResolution": "Node",
8
- "strict": true,
9
- "jsx": "preserve",
10
- "sourceMap": true,
11
- "resolveJsonModule": true,
12
- "isolatedModules": true,
13
- "esModuleInterop": true,
14
- "lib": ["ESNext", "DOM"],
15
- "skipLibCheck": true,
16
- "paths": {
17
- "@/*": ["src/*"]
18
- }
19
- },
20
- "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
21
- "references": [{ "path": "./tsconfig.node.json" }]
22
- }
1
+ {
2
+ "compilerOptions": {
3
+ "baseUrl": ".",
4
+ "target": "ESNext",
5
+ "useDefineForClassFields": true,
6
+ "module": "ESNext",
7
+ "moduleResolution": "Node",
8
+ "strict": true,
9
+ "jsx": "preserve",
10
+ "sourceMap": true,
11
+ "resolveJsonModule": true,
12
+ "isolatedModules": true,
13
+ "esModuleInterop": true,
14
+ "lib": ["ESNext", "DOM"],
15
+ "skipLibCheck": true,
16
+ "paths": {
17
+ "@/*": ["src/*"]
18
+ }
19
+ },
20
+ "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
21
+ "references": [{ "path": "./tsconfig.node.json" }]
22
+ }
@@ -1,9 +1,9 @@
1
- {
2
- "compilerOptions": {
3
- "composite": true,
4
- "module": "ESNext",
5
- "moduleResolution": "Node",
6
- "allowSyntheticDefaultImports": true
7
- },
8
- "include": ["vite.config.ts"]
9
- }
1
+ {
2
+ "compilerOptions": {
3
+ "composite": true,
4
+ "module": "ESNext",
5
+ "moduleResolution": "Node",
6
+ "allowSyntheticDefaultImports": true
7
+ },
8
+ "include": ["vite.config.ts"]
9
+ }