@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.
- package/.cspell.json +5 -25
- package/README.md +127 -2
- package/lib/cli.js +1 -0
- package/lib/commands/init.js +32 -10
- package/lib/config/versions.js +163 -0
- package/lib/core/generator.js +63 -46
- package/lib/core/hook-manager.js +2 -2
- package/lib/core/infer-ci-capabilities.js +13 -24
- package/lib/prompts/index.js +31 -19
- package/lib/prompts/loadModulePrompts.js +4 -2
- package/lib/utils/generate-from-template.js +1 -0
- package/modules/deploy/index.js +34 -7
- package/modules/deploy/prompts.js +5 -5
- package/modules/deploy/templates/.github/workflows/ci.yml.hbs +49 -103
- package/modules/deploy/templates/.gitlab/gitlab-ci.yml.hbs +45 -145
- package/modules/deploy/templates/bitbucket-pipelines.yml.hbs +46 -97
- package/modules/docs/prompts.js +2 -2
- package/modules/docs/templates/README.md.hbs +67 -160
- package/modules/docs/templates/docs/Arquitetura.md +113 -92
- package/modules/docs/templates/docs/Deploy-Pipeline.md +22 -8
- package/modules/docs/templates/docs/Desenvolvimento.md +187 -164
- package/modules/docs/templates/docs/Getting-Started.md +37 -7
- package/modules/docs/templates/docs/Infraestrutura.md +41 -12
- package/modules/docs/templates/docs/Monitoramento.md +83 -45
- package/modules/docs/templates/docs/Sync-the-Production-DB-with-the-Staging-DB.md +6 -7
- package/modules/docs/templates/docs/Troubleshooting.md +1 -1
- package/modules/git/.github/PULL_REQUEST_TEMPLATE.md +1 -0
- package/modules/git/.gitlab/merge_request_templates/default.md +1 -0
- package/modules/git/.vscode/commit-instructions.md +7 -0
- package/modules/git/.vscode/conventional-commits.code-snippets +13 -43
- package/modules/git/docs/CONVENTIONAL-COMMITS.md +14 -14
- package/modules/git/index.js +39 -34
- package/modules/git/prompts.js +4 -4
- package/modules/git/templates/.lando.yml.hbs +5 -13
- package/modules/git/templates/package.json.hbs +4 -15
- package/modules/git/templates/workspace.json.hbs +28 -114
- package/modules/lint/eslint.config.mjs +36 -0
- package/modules/lint/index.js +1 -2
- package/modules/lint/prompts.js +3 -3
- package/modules/lint/templates/.lando.yml.hbs +2 -10
- package/modules/lint/templates/package.json.hbs +4 -16
- package/modules/lint/templates/workspace.json.hbs +15 -56
- package/modules/php/prompts.js +2 -2
- package/modules/php/templates/.lando.yml.hbs +2 -11
- package/modules/php/templates/composer.json.hbs +1 -6
- package/modules/php/templates/workspace.json.hbs +15 -74
- package/modules/redis/prompts.js +2 -2
- package/modules/redis/templates/.lando.yml.hbs +1 -8
- package/modules/sage/index.js +115 -7
- package/modules/sage/prompts.js +3 -3
- package/modules/sage/templates/.lando.yml.hbs +20 -64
- package/modules/sage/templates/theme/composer.json.hbs +3 -18
- package/modules/sage/templates/theme/package.json.hbs +3 -11
- package/modules/sage/templates/theme/style.css.hbs +20 -13
- package/modules/sage/templates/theme/vite.config.js.hbs +13 -53
- package/modules/sage/templates/workspace.json.hbs +12 -67
- package/modules/test-directory/prompts.js +2 -2
- package/package.json +20 -1
- package/templates/.editorconfig.hbs +5 -39
- package/templates/.env.hbs +14 -35
- package/templates/.gitignore.hbs +13 -86
- package/templates/.lando.yml.hbs +11 -44
- package/templates/README.md.hbs +7 -8
- package/templates/composer.json.hbs +12 -60
- package/templates/server/cmd/install-wp.sh.hbs +43 -58
- package/templates/server/www/vhosts.conf.hbs +21 -71
- package/templates/workspace.json.hbs +40 -177
|
@@ -1,177 +1,40 @@
|
|
|
1
|
-
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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": [] } ] } }
|