@codigodoleo/wp-kit 5.0.2 → 5.1.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 (59) hide show
  1. package/lib/commands/init.js +87 -78
  2. package/lib/config/versions.js +45 -45
  3. package/lib/core/infer-ci-capabilities.js +39 -26
  4. package/lib/prompts/index.js +113 -92
  5. package/modules/blank-theme/index.js +23 -34
  6. package/modules/blank-theme/prompts.js +9 -25
  7. package/modules/blank-theme/templates/.lando.yml.hbs +5 -8
  8. package/modules/blank-theme/templates/package.json.hbs +1 -1
  9. package/modules/deploy/index.js +51 -61
  10. package/modules/deploy/prompts.js +36 -12
  11. package/modules/deploy/templates/.github/workflows/ci.yml.hbs +356 -63
  12. package/modules/deploy/templates/.gitlab/ci/lint-blank-theme.yml.hbs +4 -4
  13. package/modules/deploy/templates/.gitlab/ci/lint-mu-plugin.yml.hbs +3 -2
  14. package/modules/deploy/templates/.gitlab/ci/lint-plugin.yml.hbs +3 -2
  15. package/modules/deploy/templates/.gitlab/ci/lint-sage.yml.hbs +17 -14
  16. package/modules/git/.lintstagedrc.json +2 -5
  17. package/modules/lint/.oxlintrc.json +19 -0
  18. package/modules/lint/.prettierignore +16 -1
  19. package/modules/lint/index.js +32 -40
  20. package/modules/lint/templates/mago.toml.hbs +83 -0
  21. package/modules/lint/templates/package.json.hbs +6 -10
  22. package/modules/lint/templates/workspace.json.hbs +2 -36
  23. package/modules/mu-plugin/index.js +39 -51
  24. package/modules/mu-plugin/prompts.js +10 -28
  25. package/modules/mu-plugin/templates/.lando.yml.hbs +8 -10
  26. package/modules/mu-plugin/templates/acorn/composer.json.hbs +6 -5
  27. package/modules/mu-plugin/templates/composer.json.hbs +4 -2
  28. package/modules/php/templates/.lando.yml.hbs +13 -8
  29. package/modules/php/templates/composer.json.hbs +15 -7
  30. package/modules/php/templates/workspace.json.hbs +22 -19
  31. package/modules/plugin/index.js +10 -18
  32. package/modules/plugin/prompts.js +5 -19
  33. package/modules/plugin/templates/.lando.yml.hbs +8 -10
  34. package/modules/plugin/templates/composer.json.hbs +4 -2
  35. package/modules/sage/index.js +78 -88
  36. package/modules/sage/prompts.js +10 -24
  37. package/modules/sage/templates/.lando.yml.hbs +17 -7
  38. package/modules/sage/templates/theme/composer.json.hbs +36 -23
  39. package/modules/sage/templates/theme/package.json.hbs +24 -13
  40. package/modules/test/templates/composer.json.hbs +1 -1
  41. package/package.json +30 -35
  42. package/templates/.devcontainer/devcontainer.json.hbs +2 -2
  43. package/templates/.gitignore.hbs +1 -0
  44. package/templates/auth.json.hbs +8 -0
  45. package/templates/composer.json.hbs +13 -5
  46. package/templates/package.json.hbs +2 -4
  47. package/templates/workspace.json.hbs +3 -4
  48. package/wp-config.php +5 -0
  49. package/modules/blank-theme/lint/eslint.config.mjs +0 -30
  50. package/modules/blank-theme/lint/pint.json +0 -11
  51. package/modules/deploy/.github/workflows/deploy-docker.yml +0 -104
  52. package/modules/deploy/.github/workflows/deploy-ssh.yml +0 -128
  53. package/modules/deploy/.github/workflows/release.yml +0 -57
  54. package/modules/mu-plugin/lint/eslint.config.mjs +0 -30
  55. package/modules/mu-plugin/lint/pint.json +0 -11
  56. package/modules/plugin/lint/eslint.config.mjs +0 -30
  57. package/modules/plugin/lint/pint.json +0 -11
  58. package/modules/sage/lint/eslint.config.mjs +0 -30
  59. package/modules/sage/lint/pint.json +0 -11
@@ -1,11 +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
- }
@@ -1,30 +0,0 @@
1
- import js from '@eslint/js';
2
- import eslintConfigPrettier from 'eslint-config-prettier/flat';
3
- import prettierPlugin from 'eslint-plugin-prettier';
4
- import globals from 'globals';
5
-
6
- export default [
7
- {
8
- ignores: ['node_modules/**', 'vendor/**', 'public/build/**'],
9
- },
10
- js.configs.recommended,
11
- {
12
- files: ['resources/**/*.{js,mjs,ts,vue}'],
13
- languageOptions: {
14
- ecmaVersion: 2022,
15
- sourceType: 'module',
16
- globals: {
17
- ...globals.browser,
18
- ...globals.node,
19
- },
20
- },
21
- plugins: {
22
- prettier: prettierPlugin,
23
- },
24
- rules: {
25
- 'prettier/prettier': 'error',
26
- 'no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
27
- },
28
- },
29
- eslintConfigPrettier,
30
- ];
@@ -1,11 +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
- }