@codigodoleo/wp-kit 5.0.1 → 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.
- package/lib/commands/init.js +87 -78
- package/lib/config/versions.js +45 -45
- package/lib/core/infer-ci-capabilities.js +39 -26
- package/lib/prompts/index.js +113 -92
- package/lib/utils/logger.js +1 -1
- package/modules/blank-theme/index.js +49 -41
- package/modules/blank-theme/prompts.js +9 -25
- package/modules/blank-theme/templates/.lando.yml.hbs +5 -8
- package/modules/blank-theme/templates/functions.php.hbs +21 -15
- package/modules/blank-theme/templates/package.json.hbs +1 -1
- package/modules/deploy/index.js +51 -61
- package/modules/deploy/prompts.js +36 -12
- package/modules/deploy/templates/.github/workflows/ci.yml.hbs +356 -63
- package/modules/deploy/templates/.gitlab/ci/lint-blank-theme.yml.hbs +4 -4
- package/modules/deploy/templates/.gitlab/ci/lint-mu-plugin.yml.hbs +3 -2
- package/modules/deploy/templates/.gitlab/ci/lint-plugin.yml.hbs +3 -2
- package/modules/deploy/templates/.gitlab/ci/lint-sage.yml.hbs +17 -14
- package/modules/git/.lintstagedrc.json +2 -5
- package/modules/lint/.oxlintrc.json +19 -0
- package/modules/lint/.prettierignore +16 -1
- package/modules/lint/index.js +32 -40
- package/modules/lint/templates/mago.toml.hbs +83 -0
- package/modules/lint/templates/package.json.hbs +6 -10
- package/modules/lint/templates/workspace.json.hbs +2 -36
- package/modules/mu-plugin/index.js +64 -56
- package/modules/mu-plugin/prompts.js +21 -23
- package/modules/mu-plugin/templates/.lando.yml.hbs +8 -10
- package/modules/mu-plugin/templates/acorn/app/Providers/CoreServiceProvider.php.hbs +1 -1
- package/modules/mu-plugin/templates/acorn/composer.json.hbs +6 -5
- package/modules/mu-plugin/templates/composer.json.hbs +4 -2
- package/modules/php/templates/.lando.yml.hbs +13 -8
- package/modules/php/templates/composer.json.hbs +15 -7
- package/modules/php/templates/workspace.json.hbs +22 -19
- package/modules/plugin/index.js +10 -18
- package/modules/plugin/prompts.js +5 -19
- package/modules/plugin/templates/.lando.yml.hbs +8 -10
- package/modules/plugin/templates/composer.json.hbs +4 -2
- package/modules/sage/index.js +78 -88
- package/modules/sage/prompts.js +10 -24
- package/modules/sage/templates/.lando.yml.hbs +17 -7
- package/modules/sage/templates/theme/composer.json.hbs +36 -23
- package/modules/sage/templates/theme/package.json.hbs +24 -13
- package/modules/sage/templates/theme/style.css.hbs +12 -20
- package/modules/test/templates/composer.json.hbs +1 -1
- package/package.json +30 -35
- package/templates/.devcontainer/devcontainer.json.hbs +2 -2
- package/templates/.gitignore.hbs +9 -3
- package/templates/README.md.hbs +1 -1
- package/templates/auth.json.hbs +8 -0
- package/templates/composer.json.hbs +13 -5
- package/templates/package.json.hbs +2 -4
- package/templates/workspace.json.hbs +3 -4
- package/wp-config.php +5 -0
- package/modules/blank-theme/lint/eslint.config.mjs +0 -30
- package/modules/blank-theme/lint/pint.json +0 -11
- package/modules/deploy/.github/workflows/deploy-docker.yml +0 -104
- package/modules/deploy/.github/workflows/deploy-ssh.yml +0 -128
- package/modules/deploy/.github/workflows/release.yml +0 -57
- package/modules/mu-plugin/lint/eslint.config.mjs +0 -30
- package/modules/mu-plugin/lint/pint.json +0 -11
- package/modules/mu-plugin/templates/acorn/resources/.gitkeep +0 -0
- package/modules/mu-plugin/templates/acorn/storage/framework/cache/.gitkeep +0 -0
- package/modules/mu-plugin/templates/acorn/storage/framework/sessions/.gitkeep +0 -0
- package/modules/mu-plugin/templates/acorn/storage/framework/views/.gitkeep +0 -0
- package/modules/plugin/lint/eslint.config.mjs +0 -30
- package/modules/plugin/lint/pint.json +0 -11
- package/modules/sage/lint/eslint.config.mjs +0 -30
- package/modules/sage/lint/pint.json +0 -11
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
# Reusable workflow — Semantic Release
|
|
2
|
-
#
|
|
3
|
-
# Como usar no seu workflow principal (.github/workflows/main.yml):
|
|
4
|
-
#
|
|
5
|
-
# on:
|
|
6
|
-
# push:
|
|
7
|
-
# branches: [main]
|
|
8
|
-
#
|
|
9
|
-
# jobs:
|
|
10
|
-
# release:
|
|
11
|
-
# uses: ./.github/workflows/release.yml
|
|
12
|
-
# secrets:
|
|
13
|
-
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }} # opcional para projetos WordPress
|
|
14
|
-
#
|
|
15
|
-
# GITHUB_TOKEN é injetado automaticamente com os devidos escopos.
|
|
16
|
-
|
|
17
|
-
name: Semantic Release (reusable)
|
|
18
|
-
|
|
19
|
-
on:
|
|
20
|
-
workflow_call:
|
|
21
|
-
secrets:
|
|
22
|
-
NPM_TOKEN:
|
|
23
|
-
required: false
|
|
24
|
-
|
|
25
|
-
permissions:
|
|
26
|
-
contents: write
|
|
27
|
-
issues: write
|
|
28
|
-
pull-requests: write
|
|
29
|
-
id-token: write
|
|
30
|
-
|
|
31
|
-
jobs:
|
|
32
|
-
release:
|
|
33
|
-
name: Semantic Release
|
|
34
|
-
runs-on: ubuntu-latest
|
|
35
|
-
env:
|
|
36
|
-
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
|
|
37
|
-
steps:
|
|
38
|
-
- name: Checkout
|
|
39
|
-
uses: actions/checkout@v4
|
|
40
|
-
with:
|
|
41
|
-
fetch-depth: 0
|
|
42
|
-
persist-credentials: false
|
|
43
|
-
|
|
44
|
-
- name: Setup Node.js
|
|
45
|
-
uses: actions/setup-node@v4
|
|
46
|
-
with:
|
|
47
|
-
node-version: '24'
|
|
48
|
-
cache: 'npm'
|
|
49
|
-
|
|
50
|
-
- name: Install dependencies
|
|
51
|
-
run: npm ci
|
|
52
|
-
|
|
53
|
-
- name: Release
|
|
54
|
-
run: npx semantic-release
|
|
55
|
-
env:
|
|
56
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
57
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
@@ -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/**', 'dist/**'],
|
|
9
|
-
},
|
|
10
|
-
js.configs.recommended,
|
|
11
|
-
{
|
|
12
|
-
files: ['resources/**/*.{js,mjs,ts}'],
|
|
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
|
-
];
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -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/**', 'dist/**'],
|
|
9
|
-
},
|
|
10
|
-
js.configs.recommended,
|
|
11
|
-
{
|
|
12
|
-
files: ['resources/**/*.{js,mjs,ts}'],
|
|
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,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
|
-
];
|