@codigodoleo/wp-kit 3.2.0 → 3.4.0

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 (68) hide show
  1. package/README.md +73 -194
  2. package/lib/core/infer-ci-capabilities.js +17 -0
  3. package/lib/prompts/index.js +64 -4
  4. package/modules/blank-theme/index.js +71 -0
  5. package/modules/blank-theme/lint/.prettierrc.json +12 -0
  6. package/modules/blank-theme/lint/.stylelintrc.json +7 -0
  7. package/modules/{lint → blank-theme/lint}/eslint.config.mjs +2 -8
  8. package/modules/blank-theme/lint/pint.json +11 -0
  9. package/modules/blank-theme/prompts.js +33 -0
  10. package/modules/blank-theme/templates/.lando.yml.hbs +26 -0
  11. package/modules/blank-theme/templates/functions.php.hbs +46 -0
  12. package/modules/blank-theme/templates/package.json.hbs +16 -0
  13. package/modules/blank-theme/templates/style.css.hbs +7 -0
  14. package/modules/blank-theme/templates/vite.config.js.hbs +23 -0
  15. package/modules/deploy/.github/workflows/deploy-docker.yml +2 -0
  16. package/modules/deploy/.github/workflows/deploy-ssh.yml +2 -0
  17. package/modules/deploy/.github/workflows/release.yml +2 -0
  18. package/modules/deploy/index.js +38 -0
  19. package/modules/deploy/templates/.github/workflows/ci.yml.hbs +29 -1
  20. package/modules/deploy/templates/.gitlab/ci/lint-blank-theme.yml.hbs +35 -0
  21. package/modules/deploy/templates/.gitlab/ci/lint-mu-plugin.yml.hbs +19 -0
  22. package/modules/deploy/templates/.gitlab/ci/lint-plugin.yml.hbs +19 -0
  23. package/modules/deploy/templates/.gitlab/ci/lint-sage.yml.hbs +47 -0
  24. package/modules/git/templates/workspace.json.hbs +1 -1
  25. package/modules/lint/.commitlintrc.json +21 -0
  26. package/modules/lint/.prettierignore +15 -25
  27. package/modules/lint/.prettierrc.json +5 -16
  28. package/modules/lint/index.js +75 -8
  29. package/modules/lint/prompts.js +1 -8
  30. package/modules/lint/templates/.lando.yml.hbs +3 -8
  31. package/modules/lint/templates/workspace.json.hbs +3 -3
  32. package/modules/mu-plugin/index.js +49 -0
  33. package/modules/mu-plugin/lint/.prettierrc.json +7 -0
  34. package/modules/mu-plugin/lint/eslint.config.mjs +30 -0
  35. package/modules/mu-plugin/lint/pint.json +11 -0
  36. package/modules/mu-plugin/prompts.js +23 -0
  37. package/modules/mu-plugin/templates/.lando.yml.hbs +15 -0
  38. package/modules/mu-plugin/templates/composer.json.hbs +14 -0
  39. package/modules/mu-plugin/templates/plugin.php.hbs +15 -0
  40. package/modules/php/templates/composer.json.hbs +15 -1
  41. package/modules/plugin/index.js +45 -0
  42. package/modules/plugin/lint/.prettierrc.json +7 -0
  43. package/modules/plugin/lint/eslint.config.mjs +30 -0
  44. package/modules/plugin/lint/pint.json +11 -0
  45. package/modules/plugin/prompts.js +23 -0
  46. package/modules/plugin/templates/.lando.yml.hbs +15 -0
  47. package/modules/plugin/templates/composer.json.hbs +14 -0
  48. package/modules/plugin/templates/plugin.php.hbs +15 -0
  49. package/modules/sage/index.js +25 -0
  50. package/modules/sage/lint/.prettierrc.json +12 -0
  51. package/modules/sage/lint/.stylelintrc.json +7 -0
  52. package/modules/sage/lint/eslint.config.mjs +30 -0
  53. package/modules/sage/lint/pint.json +11 -0
  54. package/modules/sage/prompts.js +22 -7
  55. package/modules/sage/templates/.devcontainer/docker-compose.override.yml.hbs +1 -3
  56. package/modules/sage/templates/.lando.yml.hbs +17 -5
  57. package/modules/sage/templates/theme/vite.config.js.hbs +4 -4
  58. package/package.json +7 -1
  59. package/templates/.devcontainer/docker-compose.yml.hbs +3 -0
  60. package/templates/.gitignore.hbs +84 -13
  61. package/templates/.lando.yml.hbs +2 -0
  62. package/templates/composer.json.hbs +60 -13
  63. package/templates/workspace.json.hbs +1 -1
  64. package/modules/lint/.eslintignore +0 -36
  65. package/modules/lint/.eslintrc.json +0 -8
  66. package/modules/lint/.stylelintignore +0 -19
  67. package/modules/lint/.stylelintrc.json +0 -9
  68. package/modules/lint/pint.json +0 -26
@@ -1,13 +1,60 @@
1
- { "name": "{{projectName}}/wordpress", "type": "project", "description": "{{projectDescription}}",
2
- "authors": [ { "name": "{{author}}", "email": "{{authorEmail}}" } ], "repositories": { "wpackagist":
3
- { "type": "composer", "url": "https://wpackagist.org" } }, "license": "MIT", "require": { "php": ">={{phpVersion}}",
4
- "roots/wordpress": "{{wpCoreVersion}}", "roots/bedrock-autoloader": "^1.0",
5
- "inpsyde/wp-translation-downloader": "^2.5",
6
- "vlucas/phpdotenv": "^5.5" }, "config": { "allow-plugins": { "roots/wordpress-core-installer": true,
7
- "inpsyde/wp-translation-downloader": true, "composer/installers": true } }, "extra": {
8
- "wordpress-install-dir": "wp", "installer-paths": { "content/plugins/{$name}/": [
9
- "type:wordpress-plugin" ], "content/themes/{$name}/": [ "type:wordpress-theme" ],
10
- "content/mu-plugins/{$name}/": [ "type:wordpress-muplugin" ] }, "wp-translation-downloader": {
11
- "languages": [ "pt_BR", "en_US" ], "languageRootDir": "content/languages",
12
- "virtual-packages": [ { "name": "wordpress/wordpress", "type": "wordpress-core", "version": "{{wpCoreVersion}}"
13
- } ] } } }
1
+ {
2
+ "name": "{{projectName}}/wordpress",
3
+ "type": "project",
4
+ "description": "{{projectDescription}}",
5
+ "authors": [
6
+ {
7
+ "name": "{{author}}",
8
+ "email": "{{authorEmail}}"
9
+ }
10
+ ],
11
+ "repositories": {
12
+ "wpackagist": {
13
+ "type": "composer",
14
+ "url": "https://wpackagist.org"
15
+ }
16
+ },
17
+ "license": "MIT",
18
+ "require": {
19
+ "php": ">={{phpVersion}}",
20
+ "roots/wordpress": "{{wpCoreVersion}}",
21
+ "roots/bedrock-autoloader": "^1.0",
22
+ "inpsyde/wp-translation-downloader": "^2.5",
23
+ "vlucas/phpdotenv": "^5.5"
24
+ },
25
+ "config": {
26
+ "allow-plugins": {
27
+ "roots/wordpress-core-installer": true,
28
+ "inpsyde/wp-translation-downloader": true,
29
+ "composer/installers": true
30
+ }
31
+ },
32
+ "extra": {
33
+ "wordpress-install-dir": "wp",
34
+ "installer-paths": {
35
+ "content/plugins/{$name}/": [
36
+ "type:wordpress-plugin"
37
+ ],
38
+ "content/themes/{$name}/": [
39
+ "type:wordpress-theme"
40
+ ],
41
+ "content/mu-plugins/{$name}/": [
42
+ "type:wordpress-muplugin"
43
+ ]
44
+ },
45
+ "wp-translation-downloader": {
46
+ "languages": [
47
+ "pt_BR",
48
+ "en_US"
49
+ ],
50
+ "languageRootDir": "content/languages",
51
+ "virtual-packages": [
52
+ {
53
+ "name": "wordpress/wordpress",
54
+ "type": "wordpress-core",
55
+ "version": "{{wpCoreVersion}}"
56
+ }
57
+ ]
58
+ }
59
+ }
60
+ }
@@ -6,7 +6,7 @@
6
6
  }
7
7
  ],
8
8
  "settings": {
9
- "git.inputValidation": "always",
9
+ "git.inputValidation": true,
10
10
  "git.inputValidationLength": 100,
11
11
  "git.inputValidationSubjectLength": 100,
12
12
  "git.confirmSync": false,
@@ -1,36 +0,0 @@
1
- # Node and vendor
2
- node_modules/
3
- vendor/
4
- dist/
5
- build/
6
-
7
- # Tests
8
- __tests__/
9
- __test__/
10
- *.test.js
11
- *.spec.js
12
-
13
- # IDE and system
14
- .vscode/
15
- .idea/
16
- .history/
17
- .cursor/
18
-
19
- # WordPress and uploads
20
- wp/
21
- wp-content/uploads/
22
- wp-content/upgrade/
23
- wp-content/cache/
24
- wp-content/ai1wm-backups/
25
-
26
- # Misc
27
- *.min.js
28
- *.min.css
29
- *.log
30
- .cache/
31
- .next/
32
- out/
33
- coverage/
34
- .nyc_output/
35
- .env
36
- .env.*
@@ -1,8 +0,0 @@
1
- {
2
- "extends": ["eslint:recommended", "plugin:prettier/recommended"],
3
- "env": {
4
- "browser": true,
5
- "node": true,
6
- "es2021": true
7
- }
8
- }
@@ -1,19 +0,0 @@
1
- # Node and vendor
2
- node_modules/
3
- vendor/
4
- dist/
5
- build/
6
-
7
- # CSS / SCSS minified
8
- **/*.min.css
9
- **/*.min.scss
10
- **/vendor/**/*.css
11
-
12
- # WordPress and uploads
13
- wp/
14
- content/**/*
15
-
16
- # Misc
17
- out/
18
- coverage/
19
- **/.*
@@ -1,9 +0,0 @@
1
- {
2
- "extends": ["stylelint-config-standard"],
3
- "rules": {
4
- "indentation": 2,
5
- "number-leading-zero": "always",
6
- "string-quotes": "double",
7
- "color-hex-case": "lower"
8
- }
9
- }
@@ -1,26 +0,0 @@
1
- {
2
- "preset": "psr12",
3
- "rules": {
4
- "array_syntax": {
5
- "syntax": "short"
6
- },
7
- "binary_operator_spaces": {
8
- "default": "single_space"
9
- }
10
- },
11
- "exclude": [
12
- "wp",
13
- "content",
14
- "vendor",
15
- "node_modules",
16
- ".git",
17
- "storage",
18
- "bootstrap/cache",
19
- "public/build",
20
- "public/hot",
21
- "public/storage",
22
- "public/vendor",
23
- "tests/coverage",
24
- "tests/reports"
25
- ]
26
- }