@codigodoleo/wp-kit 2.0.4 → 3.0.1

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 (67) hide show
  1. package/.cspell.json +5 -25
  2. package/README.md +127 -2
  3. package/lib/cli.js +1 -0
  4. package/lib/commands/init.js +32 -10
  5. package/lib/config/versions.js +163 -0
  6. package/lib/core/generator.js +63 -46
  7. package/lib/core/hook-manager.js +2 -2
  8. package/lib/core/infer-ci-capabilities.js +13 -24
  9. package/lib/prompts/index.js +31 -19
  10. package/lib/prompts/loadModulePrompts.js +4 -2
  11. package/lib/utils/generate-from-template.js +1 -0
  12. package/modules/deploy/index.js +34 -7
  13. package/modules/deploy/prompts.js +5 -5
  14. package/modules/deploy/templates/.github/workflows/ci.yml.hbs +49 -103
  15. package/modules/deploy/templates/.gitlab/gitlab-ci.yml.hbs +45 -145
  16. package/modules/deploy/templates/bitbucket-pipelines.yml.hbs +46 -97
  17. package/modules/docs/prompts.js +2 -2
  18. package/modules/docs/templates/README.md.hbs +67 -160
  19. package/modules/docs/templates/docs/Arquitetura.md +113 -92
  20. package/modules/docs/templates/docs/Deploy-Pipeline.md +22 -8
  21. package/modules/docs/templates/docs/Desenvolvimento.md +187 -164
  22. package/modules/docs/templates/docs/Getting-Started.md +37 -7
  23. package/modules/docs/templates/docs/Infraestrutura.md +41 -12
  24. package/modules/docs/templates/docs/Monitoramento.md +83 -45
  25. package/modules/docs/templates/docs/Sync-the-Production-DB-with-the-Staging-DB.md +6 -7
  26. package/modules/docs/templates/docs/Troubleshooting.md +1 -1
  27. package/modules/git/.github/PULL_REQUEST_TEMPLATE.md +1 -0
  28. package/modules/git/.gitlab/merge_request_templates/default.md +1 -0
  29. package/modules/git/.vscode/commit-instructions.md +7 -0
  30. package/modules/git/.vscode/conventional-commits.code-snippets +13 -43
  31. package/modules/git/docs/CONVENTIONAL-COMMITS.md +14 -14
  32. package/modules/git/index.js +39 -34
  33. package/modules/git/prompts.js +4 -4
  34. package/modules/git/templates/.lando.yml.hbs +5 -13
  35. package/modules/git/templates/package.json.hbs +4 -15
  36. package/modules/git/templates/workspace.json.hbs +28 -114
  37. package/modules/lint/eslint.config.mjs +36 -0
  38. package/modules/lint/index.js +1 -2
  39. package/modules/lint/prompts.js +3 -3
  40. package/modules/lint/templates/.lando.yml.hbs +2 -10
  41. package/modules/lint/templates/package.json.hbs +4 -16
  42. package/modules/lint/templates/workspace.json.hbs +15 -56
  43. package/modules/php/prompts.js +2 -2
  44. package/modules/php/templates/.lando.yml.hbs +2 -11
  45. package/modules/php/templates/composer.json.hbs +1 -6
  46. package/modules/php/templates/workspace.json.hbs +15 -74
  47. package/modules/redis/prompts.js +2 -2
  48. package/modules/redis/templates/.lando.yml.hbs +1 -8
  49. package/modules/sage/index.js +115 -7
  50. package/modules/sage/prompts.js +3 -3
  51. package/modules/sage/templates/.lando.yml.hbs +20 -64
  52. package/modules/sage/templates/theme/composer.json.hbs +3 -18
  53. package/modules/sage/templates/theme/package.json.hbs +3 -11
  54. package/modules/sage/templates/theme/style.css.hbs +20 -13
  55. package/modules/sage/templates/theme/vite.config.js.hbs +13 -53
  56. package/modules/sage/templates/workspace.json.hbs +12 -67
  57. package/modules/test-directory/prompts.js +2 -2
  58. package/package.json +20 -1
  59. package/templates/.editorconfig.hbs +5 -39
  60. package/templates/.env.hbs +14 -35
  61. package/templates/.gitignore.hbs +13 -86
  62. package/templates/.lando.yml.hbs +11 -44
  63. package/templates/README.md.hbs +7 -8
  64. package/templates/composer.json.hbs +12 -60
  65. package/templates/server/cmd/install-wp.sh.hbs +43 -58
  66. package/templates/server/www/vhosts.conf.hbs +21 -71
  67. package/templates/workspace.json.hbs +40 -177
@@ -1,177 +1,40 @@
1
- {
2
- "folders": [
3
- {
4
- "name": "đŸŒŋ {{projectName}}",
5
- "path": "."
6
- }
7
- ],
8
- "settings": {
9
- "git.inputValidation": "always",
10
- "git.inputValidationLength": 100,
11
- "git.inputValidationSubjectLength": 100,
12
- "git.confirmSync": false,
13
- "git.autofetch": true,
14
- "git.enableSmartCommit": true,
15
- "git.suggestSmartCommit": true,
16
- "git.autoStash": true,
17
- "git.allowNoVerifyCommit": false,
18
- "editor.formatOnSave": false,
19
- "editor.codeActionsOnSave": {
20
- "source.fixAll.eslint": "explicit",
21
- "source.organizeImports": "explicit"
22
- },
23
- "editor.tabSize": 4,
24
- "editor.insertSpaces": true,
25
- "search.exclude": {
26
- "**/node_modules": true,
27
- "**/vendor": true,
28
- "**/.lando": true,
29
- "**/public/build": true,
30
- "**/dist": true,
31
- "**/.git": true,
32
- "**/wp": true
33
- },
34
- "files.exclude": {
35
- "**/node_modules": true,
36
- "**/vendor": true,
37
- "**/.git": true,
38
- "**/.DS_Store": true,
39
- "**/Thumbs.db": true
40
- },
41
- "extensions.ignoreRecommendations": false,
42
- "emmet.includeLanguages": {
43
- "blade": "html",
44
- "php": "html"
45
- },
46
- "files.autoSave": "onFocusChange",
47
- "files.trimTrailingWhitespace": true,
48
- "files.insertFinalNewline": true
49
- },
50
- "extensions": {
51
- "recommendations": [
52
- "eamodio.gitlens",
53
- "ms-vscode.vscode-json",
54
- "streetsidesoftware.code-spell-checker",
55
- "vivaxy.vscode-conventional-commits",
56
- "bmewburn.vscode-intelephense-client",
57
- "wordpresstoolbox.wordpress-toolbox",
58
- "tungvn.wordpress-snippet",
59
- "junstyle.php-cs-fixer",
60
- "felixfbecker.php-debug",
61
- "esbenp.prettier-vscode",
62
- "dbaeumer.vscode-eslint",
63
- "bradlc.vscode-tailwindcss",
64
- "ms-azuretools.vscode-docker",
65
- "ms-vscode-remote.remote-containers",
66
- "ms-vscode.vscode-typescript-next",
67
- "formulahendry.auto-rename-tag",
68
- "christian-kohler.path-intellisense",
69
- "ms-vscode.vscode-todo-highlight",
70
- "mhutchie.git-graph",
71
- "pkief.material-icon-theme",
72
- "zhuangtongfa.material-theme",
73
- "xdebug.php-debug",
74
- "yzhang.markdown-all-in-one",
75
- "davidanson.vscode-markdownlint",
76
- "editorconfig.editorconfig",
77
- "ms-vscode.js-debug",
78
- "johnbillion.vscode-wordpress-hooks",
79
- "valeryanm.vscode-phpsab",
80
- "GitHub.copilot",
81
- "GitHub.copilot-chat",
82
- "ms-vscode-remote.remote-wsl",
83
- "Catppuccin.catppuccin-vsc",
84
- "sainnhe.everforest"
85
- ]
86
- },
87
- "tasks": {
88
- "version": "2.0.0",
89
- "tasks": [
90
- {
91
- "label": "🚀 Lando: Start",
92
- "type": "shell",
93
- "command": "lando",
94
- "args": ["start"],
95
- "group": "build",
96
- "presentation": {
97
- "echo": true,
98
- "reveal": "always",
99
- "focus": false,
100
- "panel": "shared"
101
- },
102
- "isBackground": true,
103
- "problemMatcher": []
104
- },
105
- {
106
- "label": "🛑 Lando: Stop",
107
- "type": "shell",
108
- "command": "lando",
109
- "args": ["stop"],
110
- "group": "build",
111
- "presentation": {
112
- "echo": true,
113
- "reveal": "always",
114
- "focus": false,
115
- "panel": "shared"
116
- },
117
- "problemMatcher": []
118
- },
119
- {
120
- "label": "â„šī¸ Lando: Info",
121
- "type": "shell",
122
- "command": "lando",
123
- "args": ["info"],
124
- "group": "build",
125
- "presentation": {
126
- "echo": true,
127
- "reveal": "always",
128
- "focus": false,
129
- "panel": "shared"
130
- },
131
- "problemMatcher": []
132
- },
133
- {
134
- "label": "🌐 Yarn: Install (Node)",
135
- "type": "shell",
136
- "command": "lando",
137
- "args": ["yarn", "install"],
138
- "group": "build",
139
- "presentation": {
140
- "echo": true,
141
- "reveal": "always",
142
- "focus": false,
143
- "panel": "shared"
144
- },
145
- "problemMatcher": []
146
- },
147
- {
148
- "label": "đŸ“Ļ Composer: Install Dependencies",
149
- "type": "shell",
150
- "command": "lando",
151
- "args": ["composer", "install"],
152
- "group": "build",
153
- "presentation": {
154
- "echo": true,
155
- "reveal": "always",
156
- "focus": false,
157
- "panel": "shared"
158
- },
159
- "problemMatcher": []
160
- },
161
- {
162
- "label": "đŸ—„ī¸ Redis CLI",
163
- "type": "shell",
164
- "command": "lando",
165
- "args": ["redis-cli"],
166
- "group": "build",
167
- "presentation": {
168
- "echo": true,
169
- "reveal": "always",
170
- "focus": false,
171
- "panel": "shared"
172
- },
173
- "problemMatcher": []
174
- }
175
- ]
176
- }
177
- }
1
+ { "folders": [ { "name": "đŸŒŋ
2
+ {{projectName}}", "path": "." } ], "settings": { "git.inputValidation": "always",
3
+ "git.inputValidationLength": 100, "git.inputValidationSubjectLength": 100, "git.confirmSync": false,
4
+ "git.autofetch": true, "git.enableSmartCommit": true, "git.suggestSmartCommit": true,
5
+ "git.autoStash": true, "git.allowNoVerifyCommit": false, "editor.formatOnSave": false,
6
+ "editor.codeActionsOnSave": { "source.fixAll.eslint": "explicit", "source.organizeImports":
7
+ "explicit" }, "editor.tabSize": 4, "editor.insertSpaces": true, "search.exclude": {
8
+ "**/node_modules": true, "**/vendor": true, "**/.lando": true, "**/public/build": true, "**/dist":
9
+ true, "**/.git": true, "**/wp": true }, "files.exclude": { "**/node_modules": true, "**/vendor":
10
+ true, "**/.git": true, "**/.DS_Store": true, "**/Thumbs.db": true },
11
+ "extensions.ignoreRecommendations": false, "emmet.includeLanguages": { "blade": "html", "php":
12
+ "html" }, "files.autoSave": "onFocusChange", "files.trimTrailingWhitespace": true,
13
+ "files.insertFinalNewline": true }, "extensions": { "recommendations": [ "eamodio.gitlens",
14
+ "ms-vscode.vscode-json", "streetsidesoftware.code-spell-checker",
15
+ "vivaxy.vscode-conventional-commits", "bmewburn.vscode-intelephense-client",
16
+ "wordpresstoolbox.wordpress-toolbox", "tungvn.wordpress-snippet", "junstyle.php-cs-fixer",
17
+ "felixfbecker.php-debug", "esbenp.prettier-vscode", "dbaeumer.vscode-eslint",
18
+ "bradlc.vscode-tailwindcss", "ms-azuretools.vscode-docker", "ms-vscode-remote.remote-containers",
19
+ "ms-vscode.vscode-typescript-next", "formulahendry.auto-rename-tag",
20
+ "christian-kohler.path-intellisense", "ms-vscode.vscode-todo-highlight", "mhutchie.git-graph",
21
+ "pkief.material-icon-theme", "zhuangtongfa.material-theme", "xdebug.php-debug",
22
+ "yzhang.markdown-all-in-one", "davidanson.vscode-markdownlint", "editorconfig.editorconfig",
23
+ "ms-vscode.js-debug", "johnbillion.vscode-wordpress-hooks", "valeryanm.vscode-phpsab",
24
+ "GitHub.copilot", "GitHub.copilot-chat", "ms-vscode-remote.remote-wsl", "Catppuccin.catppuccin-vsc",
25
+ "sainnhe.everforest" ] }, "tasks": { "version": "2.0.0", "tasks": [ { "label": "🚀 Lando: Start",
26
+ "type": "shell", "command": "lando", "args": ["start"], "group": "build", "presentation": { "echo":
27
+ true, "reveal": "always", "focus": false, "panel": "shared" }, "isBackground": true,
28
+ "problemMatcher": [] }, { "label": "🛑 Lando: Stop", "type": "shell", "command": "lando", "args":
29
+ ["stop"], "group": "build", "presentation": { "echo": true, "reveal": "always", "focus": false,
30
+ "panel": "shared" }, "problemMatcher": [] }, { "label": "â„šī¸ Lando: Info", "type": "shell",
31
+ "command": "lando", "args": ["info"], "group": "build", "presentation": { "echo": true, "reveal":
32
+ "always", "focus": false, "panel": "shared" }, "problemMatcher": [] }, { "label": "🌐 Yarn: Install
33
+ (Node)", "type": "shell", "command": "lando", "args": ["yarn", "install"], "group": "build",
34
+ "presentation": { "echo": true, "reveal": "always", "focus": false, "panel": "shared" },
35
+ "problemMatcher": [] }, { "label": "đŸ“Ļ Composer: Install Dependencies", "type": "shell", "command":
36
+ "lando", "args": ["composer", "install"], "group": "build", "presentation": { "echo": true,
37
+ "reveal": "always", "focus": false, "panel": "shared" }, "problemMatcher": [] }, { "label": "đŸ—„ī¸
38
+ Redis CLI", "type": "shell", "command": "lando", "args": ["redis-cli"], "group": "build",
39
+ "presentation": { "echo": true, "reveal": "always", "focus": false, "panel": "shared" },
40
+ "problemMatcher": [] } ] } }