@webikon/webentor-codemods 0.1.0 → 0.3.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/CHANGELOG.md +46 -0
- package/README.md +71 -13
- package/bin/webentor-codemods.mjs +27 -2
- package/lib/changelog.mjs +87 -0
- package/migrations/0.13.0/README.md +11 -0
- package/migrations/0.13.0/changelog/root.md +8 -0
- package/migrations/0.13.0/changelog/theme.md +7 -0
- package/migrations/0.15.0/README.md +130 -0
- package/migrations/0.15.0/changelog/root.md +11 -0
- package/migrations/0.15.0/changelog/theme.md +8 -0
- package/migrations/0.15.0/rules/app-glob-vite8.yml +32 -0
- package/migrations/0.15.0/rules/deps.yml +83 -0
- package/migrations/__fixtures__/0.15.0/after/composer.json +63 -0
- package/migrations/__fixtures__/0.15.0/after/package.json +86 -0
- package/migrations/__fixtures__/0.15.0/after/resources/scripts/app.ts +19 -0
- package/migrations/__fixtures__/0.15.0/before/composer.json +63 -0
- package/migrations/__fixtures__/0.15.0/before/package.json +86 -0
- package/migrations/__fixtures__/0.15.0/before/resources/scripts/app.ts +15 -0
- package/migrations/__fixtures__/0.15.0/customized/composer.json +63 -0
- package/migrations/__fixtures__/0.15.0/customized/package.json +86 -0
- package/migrations/__fixtures__/0.15.0/customized/resources/scripts/app.ts +22 -0
- package/migrations/__fixtures__/starter-2.1.1/after/composer.json +63 -0
- package/migrations/__fixtures__/starter-2.1.1/before/composer.json +63 -0
- package/migrations/__fixtures__/starter-2.1.1/customized/composer.json +55 -0
- package/migrations/index.json +36 -0
- package/migrations/starter-2.1.1/README.md +95 -0
- package/migrations/starter-2.1.1/changelog/root.md +7 -0
- package/migrations/starter-2.1.1/changelog/theme.md +7 -0
- package/migrations/starter-2.1.1/rules/deps.yml +24 -0
- package/package.json +3 -2
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "webikon/webentor-theme",
|
|
3
|
+
"type": "wordpress-theme",
|
|
4
|
+
"version": "2.0.6",
|
|
5
|
+
"description": "Webentor starter theme",
|
|
6
|
+
"homepage": "https://webikon.sk",
|
|
7
|
+
"authors": [
|
|
8
|
+
{
|
|
9
|
+
"name": "Roots",
|
|
10
|
+
"homepage": "https://github.com/roots/sage"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "Webikon s.r.o.",
|
|
14
|
+
"email": "support@webikon.sk",
|
|
15
|
+
"homepage": "https://webikon.sk"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "Pavol Caban",
|
|
19
|
+
"email": "pavol.caban@webikon.sk",
|
|
20
|
+
"homepage": "https://webikon.sk"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"repositories": [
|
|
24
|
+
{
|
|
25
|
+
"type": "github",
|
|
26
|
+
"url": "https://github.com/webikon/webentor-core.git"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"autoload": {
|
|
30
|
+
"psr-4": {
|
|
31
|
+
"App\\": "app/"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"require": {
|
|
35
|
+
"php": ">=8.3",
|
|
36
|
+
"johnbillion/extended-cpts": "^5.0",
|
|
37
|
+
"log1x/acf-composer": "^3.0",
|
|
38
|
+
"log1x/sage-directives": "^2.0",
|
|
39
|
+
"log1x/sage-svg": "^2.0",
|
|
40
|
+
"roots/acorn": "^5.0",
|
|
41
|
+
"roots/acorn-prettify": "^1.0",
|
|
42
|
+
"stoutlogic/acf-builder": "^1.12",
|
|
43
|
+
"webikon/webentor-core": "^0.15"
|
|
44
|
+
},
|
|
45
|
+
"require-dev": {
|
|
46
|
+
"squizlabs/php_codesniffer": "^3.8.0"
|
|
47
|
+
},
|
|
48
|
+
"config": {
|
|
49
|
+
"optimize-autoloader": true,
|
|
50
|
+
"preferred-install": "dist",
|
|
51
|
+
"sort-packages": true
|
|
52
|
+
},
|
|
53
|
+
"minimum-stability": "dev",
|
|
54
|
+
"prefer-stable": true,
|
|
55
|
+
"scripts": {
|
|
56
|
+
"post-autoload-dump": [
|
|
57
|
+
"Roots\\Acorn\\ComposerScripts::postAutoloadDump"
|
|
58
|
+
],
|
|
59
|
+
"lint": [
|
|
60
|
+
"phpcs --extensions=php --standard=PSR12 app"
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@webikon/webentor-theme",
|
|
3
|
+
"version": "2.0.6",
|
|
4
|
+
"private": true,
|
|
5
|
+
"engines": {
|
|
6
|
+
"node": ">=20.0.0"
|
|
7
|
+
},
|
|
8
|
+
"type": "module",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"dev": "vite --configLoader runner",
|
|
11
|
+
"build": "vite build --configLoader runner",
|
|
12
|
+
"lint": "npm run lint:js && npm run lint:css",
|
|
13
|
+
"lint:js": "eslint resources/scripts resources/blocks",
|
|
14
|
+
"lint:css": "stylelint \"resources/**/*.{vue,css,sass,scss,less}\"",
|
|
15
|
+
"translate": "pnpm build && pnpm translate:pot && pnpm translate:update",
|
|
16
|
+
"translate:pot": "wp i18n make-pot . ./resources/languages/webentor.pot --include=\"parts,templates,app,resources\" --skip-block-json",
|
|
17
|
+
"translate:update": "wp i18n update-po ./resources/languages/webentor.pot ./resources/languages",
|
|
18
|
+
"translate:compile": "pnpm translate:mo && pnpm translate:js",
|
|
19
|
+
"translate:js": "wp i18n make-json ./resources/languages --pretty-print",
|
|
20
|
+
"translate:mo": "wp i18n make-mo ./resources/languages ./resources/languages",
|
|
21
|
+
"prettier-check": "prettier --check 'resources/**/*.{js,ts,tsx,css}'",
|
|
22
|
+
"prettier-check:js": "prettier --check 'resources/**/*.{js,ts,tsx}'",
|
|
23
|
+
"prettier-check:css": "prettier --check 'resources/**/*.css'",
|
|
24
|
+
"prettier-check:blade": "prettier --check 'resources/**/*.blade.php'",
|
|
25
|
+
"prettier-fix": "prettier --write 'resources/**/*.{js,ts,tsx,css}'",
|
|
26
|
+
"prettier-fix:js": "prettier --write 'resources/**/*.{js,ts,tsx}'",
|
|
27
|
+
"prettier-fix:css": "prettier --write 'resources/**/*.css'",
|
|
28
|
+
"prettier-fix:blade": "prettier --write 'resources/**/*.blade.php'",
|
|
29
|
+
"postinstall": "cd ../../../../ && husky",
|
|
30
|
+
"webentor:update": "pnpm up @webikon/webentor-core && composer update webikon/webentor-core"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@10up/block-components": "^1.22.2",
|
|
34
|
+
"@eslint/js": "^9.39.2",
|
|
35
|
+
"@ianvs/prettier-plugin-sort-imports": "^4.7.1",
|
|
36
|
+
"@kucrut/vite-for-wp": "^0.12.0",
|
|
37
|
+
"@roots/vite-plugin": "^2.2.0",
|
|
38
|
+
"@shufo/prettier-plugin-blade": "^1.16.2",
|
|
39
|
+
"@tailwindcss/postcss": "^4.3.1",
|
|
40
|
+
"@tailwindcss/vite": "^4.3.1",
|
|
41
|
+
"@types/wordpress__block-editor": "^15.0.6",
|
|
42
|
+
"@vitejs/plugin-react": "^6.0.0",
|
|
43
|
+
"@webikon/webentor-core": "^0.15.0",
|
|
44
|
+
"@webikon/webentor-configs": "^1.1.0",
|
|
45
|
+
"@wordpress/block-editor": "^15.21.1",
|
|
46
|
+
"@wordpress/block-library": "^9.48.1",
|
|
47
|
+
"@wordpress/blocks": "^15.21.1",
|
|
48
|
+
"@wordpress/components": "^35.0.1",
|
|
49
|
+
"@wordpress/dependency-extraction-webpack-plugin": "^6.48.1",
|
|
50
|
+
"@wordpress/i18n": "^6.21.1",
|
|
51
|
+
"@wordpress/icons": "^14.0.1",
|
|
52
|
+
"eslint": "^9.39.2",
|
|
53
|
+
"eslint-config-prettier": "^10.1.8",
|
|
54
|
+
"eslint-plugin-prettier": "^5.5.6",
|
|
55
|
+
"eslint-plugin-react": "^7.37.5",
|
|
56
|
+
"husky": "^9.1.7",
|
|
57
|
+
"laravel-vite-plugin": "^3.0.0",
|
|
58
|
+
"lint-staged": "^16.4.0",
|
|
59
|
+
"patch-package": "^8.0.1",
|
|
60
|
+
"postcss": "^8.5.15",
|
|
61
|
+
"postcss-pxtorem": "^6.1.0",
|
|
62
|
+
"prettier": "^3.8.4",
|
|
63
|
+
"prettier-plugin-tailwindcss": "^0.8.0",
|
|
64
|
+
"react": "^18.3.1",
|
|
65
|
+
"react-dom": "^18.3.1",
|
|
66
|
+
"rollup-plugin-external-globals": "^0.13.0",
|
|
67
|
+
"stylelint": "^17.13.0",
|
|
68
|
+
"stylelint-config-recommended": "^18.0.0",
|
|
69
|
+
"tailwindcss": "^4.3.1",
|
|
70
|
+
"typescript": "^5.9.3",
|
|
71
|
+
"typescript-eslint": "^8.61.1",
|
|
72
|
+
"vite": "^8.0.0",
|
|
73
|
+
"vite-plugin-external": "^6.2.2"
|
|
74
|
+
},
|
|
75
|
+
"lint-staged": {
|
|
76
|
+
"*.{js,ts,tsx}": "pnpm lint:js",
|
|
77
|
+
"*.css": "pnpm lint:css"
|
|
78
|
+
},
|
|
79
|
+
"dependencies": {
|
|
80
|
+
"@alpinejs/intersect": "^3.15.12",
|
|
81
|
+
"@imacrayon/alpine-ajax": "^0.12.6",
|
|
82
|
+
"alpinejs-masonry": "^1.0.16",
|
|
83
|
+
"lightgallery": "2.9.0"
|
|
84
|
+
},
|
|
85
|
+
"packageManager": "pnpm@10.15.1+sha512.34e538c329b5553014ca8e8f4535997f96180a1d0f614339357449935350d924e22f8614682191264ec33d1462ac21561aff97f6bb18065351c162c7e8f6de67"
|
|
86
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Load default Webentor JS features
|
|
2
|
+
import './_header';
|
|
3
|
+
|
|
4
|
+
import Lightbox from './_lightbox';
|
|
5
|
+
|
|
6
|
+
// Register Alpine last to ensure all extensions are registered
|
|
7
|
+
import './_alpine';
|
|
8
|
+
|
|
9
|
+
// Register static assets
|
|
10
|
+
import.meta.glob(['../images/**', '../fonts/**'], {
|
|
11
|
+
eager: true,
|
|
12
|
+
query: '?url',
|
|
13
|
+
import: 'default',
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
new Lightbox();
|
|
17
|
+
new Lightbox('.lightgallery-gallery', {
|
|
18
|
+
selector: undefined,
|
|
19
|
+
});
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "webikon/webentor-theme",
|
|
3
|
+
"type": "wordpress-theme",
|
|
4
|
+
"version": "2.0.6",
|
|
5
|
+
"description": "Webentor starter theme",
|
|
6
|
+
"homepage": "https://webikon.sk",
|
|
7
|
+
"authors": [
|
|
8
|
+
{
|
|
9
|
+
"name": "Roots",
|
|
10
|
+
"homepage": "https://github.com/roots/sage"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "Webikon s.r.o.",
|
|
14
|
+
"email": "support@webikon.sk",
|
|
15
|
+
"homepage": "https://webikon.sk"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "Pavol Caban",
|
|
19
|
+
"email": "pavol.caban@webikon.sk",
|
|
20
|
+
"homepage": "https://webikon.sk"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"repositories": [
|
|
24
|
+
{
|
|
25
|
+
"type": "github",
|
|
26
|
+
"url": "https://github.com/webikon/webentor-core.git"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"autoload": {
|
|
30
|
+
"psr-4": {
|
|
31
|
+
"App\\": "app/"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"require": {
|
|
35
|
+
"php": ">=8.3",
|
|
36
|
+
"johnbillion/extended-cpts": "^5.0",
|
|
37
|
+
"log1x/acf-composer": "^3.0",
|
|
38
|
+
"log1x/sage-directives": "^2.0",
|
|
39
|
+
"log1x/sage-svg": "^2.0",
|
|
40
|
+
"roots/acorn": "^5.0",
|
|
41
|
+
"roots/acorn-prettify": "^1.0",
|
|
42
|
+
"stoutlogic/acf-builder": "^1.12",
|
|
43
|
+
"webikon/webentor-core": "^0.13"
|
|
44
|
+
},
|
|
45
|
+
"require-dev": {
|
|
46
|
+
"squizlabs/php_codesniffer": "^3.8.0"
|
|
47
|
+
},
|
|
48
|
+
"config": {
|
|
49
|
+
"optimize-autoloader": true,
|
|
50
|
+
"preferred-install": "dist",
|
|
51
|
+
"sort-packages": true
|
|
52
|
+
},
|
|
53
|
+
"minimum-stability": "dev",
|
|
54
|
+
"prefer-stable": true,
|
|
55
|
+
"scripts": {
|
|
56
|
+
"post-autoload-dump": [
|
|
57
|
+
"Roots\\Acorn\\ComposerScripts::postAutoloadDump"
|
|
58
|
+
],
|
|
59
|
+
"lint": [
|
|
60
|
+
"phpcs --extensions=php --standard=PSR12 app"
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@webikon/webentor-theme",
|
|
3
|
+
"version": "2.0.6",
|
|
4
|
+
"private": true,
|
|
5
|
+
"engines": {
|
|
6
|
+
"node": ">=20.0.0"
|
|
7
|
+
},
|
|
8
|
+
"type": "module",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"dev": "vite --configLoader runner",
|
|
11
|
+
"build": "vite build --configLoader runner",
|
|
12
|
+
"lint": "npm run lint:js && npm run lint:css",
|
|
13
|
+
"lint:js": "eslint resources/scripts resources/blocks",
|
|
14
|
+
"lint:css": "stylelint \"resources/**/*.{vue,css,sass,scss,less}\"",
|
|
15
|
+
"translate": "pnpm build && pnpm translate:pot && pnpm translate:update",
|
|
16
|
+
"translate:pot": "wp i18n make-pot . ./resources/languages/webentor.pot --include=\"parts,templates,app,resources\" --skip-block-json",
|
|
17
|
+
"translate:update": "wp i18n update-po ./resources/languages/webentor.pot ./resources/languages",
|
|
18
|
+
"translate:compile": "pnpm translate:mo && pnpm translate:js",
|
|
19
|
+
"translate:js": "wp i18n make-json ./resources/languages --pretty-print",
|
|
20
|
+
"translate:mo": "wp i18n make-mo ./resources/languages ./resources/languages",
|
|
21
|
+
"prettier-check": "prettier --check 'resources/**/*.{js,ts,tsx,css}'",
|
|
22
|
+
"prettier-check:js": "prettier --check 'resources/**/*.{js,ts,tsx}'",
|
|
23
|
+
"prettier-check:css": "prettier --check 'resources/**/*.css'",
|
|
24
|
+
"prettier-check:blade": "prettier --check 'resources/**/*.blade.php'",
|
|
25
|
+
"prettier-fix": "prettier --write 'resources/**/*.{js,ts,tsx,css}'",
|
|
26
|
+
"prettier-fix:js": "prettier --write 'resources/**/*.{js,ts,tsx}'",
|
|
27
|
+
"prettier-fix:css": "prettier --write 'resources/**/*.css'",
|
|
28
|
+
"prettier-fix:blade": "prettier --write 'resources/**/*.blade.php'",
|
|
29
|
+
"postinstall": "cd ../../../../ && husky",
|
|
30
|
+
"webentor:update": "pnpm up @webikon/webentor-core && composer update webikon/webentor-core"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@10up/block-components": "^1.22.2",
|
|
34
|
+
"@eslint/js": "^9.39.2",
|
|
35
|
+
"@ianvs/prettier-plugin-sort-imports": "^4.7.1",
|
|
36
|
+
"@kucrut/vite-for-wp": "^0.12.0",
|
|
37
|
+
"@roots/vite-plugin": "^1.3.1",
|
|
38
|
+
"@shufo/prettier-plugin-blade": "^1.16.2",
|
|
39
|
+
"@tailwindcss/postcss": "^4.3.1",
|
|
40
|
+
"@tailwindcss/vite": "^4.3.1",
|
|
41
|
+
"@types/wordpress__block-editor": "^15.0.6",
|
|
42
|
+
"@vitejs/plugin-react": "^5.2.0",
|
|
43
|
+
"@webikon/webentor-core": "^0.13.0",
|
|
44
|
+
"@webikon/webentor-configs": "^1.0.2",
|
|
45
|
+
"@wordpress/block-editor": "^15.21.1",
|
|
46
|
+
"@wordpress/block-library": "^9.48.1",
|
|
47
|
+
"@wordpress/blocks": "^15.21.1",
|
|
48
|
+
"@wordpress/components": "^35.0.1",
|
|
49
|
+
"@wordpress/dependency-extraction-webpack-plugin": "^6.48.1",
|
|
50
|
+
"@wordpress/i18n": "^6.21.1",
|
|
51
|
+
"@wordpress/icons": "^14.0.1",
|
|
52
|
+
"eslint": "^9.39.2",
|
|
53
|
+
"eslint-config-prettier": "^10.1.8",
|
|
54
|
+
"eslint-plugin-prettier": "^5.5.6",
|
|
55
|
+
"eslint-plugin-react": "^7.37.5",
|
|
56
|
+
"husky": "^9.1.7",
|
|
57
|
+
"laravel-vite-plugin": "^2.0.1",
|
|
58
|
+
"lint-staged": "^16.4.0",
|
|
59
|
+
"patch-package": "^8.0.1",
|
|
60
|
+
"postcss": "^8.5.15",
|
|
61
|
+
"postcss-pxtorem": "^6.1.0",
|
|
62
|
+
"prettier": "^3.8.4",
|
|
63
|
+
"prettier-plugin-tailwindcss": "^0.8.0",
|
|
64
|
+
"react": "^18.3.1",
|
|
65
|
+
"react-dom": "^18.3.1",
|
|
66
|
+
"rollup-plugin-external-globals": "^0.13.0",
|
|
67
|
+
"stylelint": "^17.13.0",
|
|
68
|
+
"stylelint-config-recommended": "^18.0.0",
|
|
69
|
+
"tailwindcss": "^4.3.1",
|
|
70
|
+
"typescript": "^5.9.3",
|
|
71
|
+
"typescript-eslint": "^8.61.1",
|
|
72
|
+
"vite": "^7.3.5",
|
|
73
|
+
"vite-plugin-external": "^6.2.2"
|
|
74
|
+
},
|
|
75
|
+
"lint-staged": {
|
|
76
|
+
"*.{js,ts,tsx}": "pnpm lint:js",
|
|
77
|
+
"*.css": "pnpm lint:css"
|
|
78
|
+
},
|
|
79
|
+
"dependencies": {
|
|
80
|
+
"@alpinejs/intersect": "^3.15.12",
|
|
81
|
+
"@imacrayon/alpine-ajax": "^0.12.6",
|
|
82
|
+
"alpinejs-masonry": "^1.0.16",
|
|
83
|
+
"lightgallery": "2.9.0"
|
|
84
|
+
},
|
|
85
|
+
"packageManager": "pnpm@10.15.1+sha512.34e538c329b5553014ca8e8f4535997f96180a1d0f614339357449935350d924e22f8614682191264ec33d1462ac21561aff97f6bb18065351c162c7e8f6de67"
|
|
86
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Load default Webentor JS features
|
|
2
|
+
import './_header';
|
|
3
|
+
|
|
4
|
+
import Lightbox from './_lightbox';
|
|
5
|
+
|
|
6
|
+
// Register Alpine last to ensure all extensions are registered
|
|
7
|
+
import './_alpine';
|
|
8
|
+
|
|
9
|
+
// Register static assets
|
|
10
|
+
import.meta.glob(['../images/**', '../fonts/**']);
|
|
11
|
+
|
|
12
|
+
new Lightbox();
|
|
13
|
+
new Lightbox('.lightgallery-gallery', {
|
|
14
|
+
selector: undefined,
|
|
15
|
+
});
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "webikon/webentor-theme",
|
|
3
|
+
"type": "wordpress-theme",
|
|
4
|
+
"version": "2.0.6",
|
|
5
|
+
"description": "Webentor starter theme",
|
|
6
|
+
"homepage": "https://webikon.sk",
|
|
7
|
+
"authors": [
|
|
8
|
+
{
|
|
9
|
+
"name": "Roots",
|
|
10
|
+
"homepage": "https://github.com/roots/sage"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "Webikon s.r.o.",
|
|
14
|
+
"email": "support@webikon.sk",
|
|
15
|
+
"homepage": "https://webikon.sk"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "Pavol Caban",
|
|
19
|
+
"email": "pavol.caban@webikon.sk",
|
|
20
|
+
"homepage": "https://webikon.sk"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"repositories": [
|
|
24
|
+
{
|
|
25
|
+
"type": "github",
|
|
26
|
+
"url": "https://github.com/webikon/webentor-core.git"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"autoload": {
|
|
30
|
+
"psr-4": {
|
|
31
|
+
"App\\": "app/"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"require": {
|
|
35
|
+
"php": ">=8.3",
|
|
36
|
+
"johnbillion/extended-cpts": "^5.0",
|
|
37
|
+
"log1x/acf-composer": "^3.0",
|
|
38
|
+
"log1x/sage-directives": "^2.0",
|
|
39
|
+
"log1x/sage-svg": "^2.0",
|
|
40
|
+
"roots/acorn": "^5.0",
|
|
41
|
+
"roots/acorn-prettify": "^1.0",
|
|
42
|
+
"stoutlogic/acf-builder": "^1.12",
|
|
43
|
+
"webikon/webentor-core": "^0.15"
|
|
44
|
+
},
|
|
45
|
+
"require-dev": {
|
|
46
|
+
"squizlabs/php_codesniffer": "^3.8.0"
|
|
47
|
+
},
|
|
48
|
+
"config": {
|
|
49
|
+
"optimize-autoloader": true,
|
|
50
|
+
"preferred-install": "dist",
|
|
51
|
+
"sort-packages": true
|
|
52
|
+
},
|
|
53
|
+
"minimum-stability": "dev",
|
|
54
|
+
"prefer-stable": true,
|
|
55
|
+
"scripts": {
|
|
56
|
+
"post-autoload-dump": [
|
|
57
|
+
"Roots\\Acorn\\ComposerScripts::postAutoloadDump"
|
|
58
|
+
],
|
|
59
|
+
"lint": [
|
|
60
|
+
"phpcs --extensions=php --standard=PSR12 app"
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@webikon/webentor-theme",
|
|
3
|
+
"version": "2.0.6",
|
|
4
|
+
"private": true,
|
|
5
|
+
"engines": {
|
|
6
|
+
"node": ">=20.0.0"
|
|
7
|
+
},
|
|
8
|
+
"type": "module",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"dev": "vite --configLoader runner",
|
|
11
|
+
"build": "vite build --configLoader runner",
|
|
12
|
+
"lint": "npm run lint:js && npm run lint:css",
|
|
13
|
+
"lint:js": "eslint resources/scripts resources/blocks",
|
|
14
|
+
"lint:css": "stylelint \"resources/**/*.{vue,css,sass,scss,less}\"",
|
|
15
|
+
"translate": "pnpm build && pnpm translate:pot && pnpm translate:update",
|
|
16
|
+
"translate:pot": "wp i18n make-pot . ./resources/languages/webentor.pot --include=\"parts,templates,app,resources\" --skip-block-json",
|
|
17
|
+
"translate:update": "wp i18n update-po ./resources/languages/webentor.pot ./resources/languages",
|
|
18
|
+
"translate:compile": "pnpm translate:mo && pnpm translate:js",
|
|
19
|
+
"translate:js": "wp i18n make-json ./resources/languages --pretty-print",
|
|
20
|
+
"translate:mo": "wp i18n make-mo ./resources/languages ./resources/languages",
|
|
21
|
+
"prettier-check": "prettier --check 'resources/**/*.{js,ts,tsx,css}'",
|
|
22
|
+
"prettier-check:js": "prettier --check 'resources/**/*.{js,ts,tsx}'",
|
|
23
|
+
"prettier-check:css": "prettier --check 'resources/**/*.css'",
|
|
24
|
+
"prettier-check:blade": "prettier --check 'resources/**/*.blade.php'",
|
|
25
|
+
"prettier-fix": "prettier --write 'resources/**/*.{js,ts,tsx,css}'",
|
|
26
|
+
"prettier-fix:js": "prettier --write 'resources/**/*.{js,ts,tsx}'",
|
|
27
|
+
"prettier-fix:css": "prettier --write 'resources/**/*.css'",
|
|
28
|
+
"prettier-fix:blade": "prettier --write 'resources/**/*.blade.php'",
|
|
29
|
+
"postinstall": "cd ../../../../ && husky",
|
|
30
|
+
"webentor:update": "pnpm up @webikon/webentor-core && composer update webikon/webentor-core"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@10up/block-components": "^1.22.2",
|
|
34
|
+
"@eslint/js": "^9.39.2",
|
|
35
|
+
"@ianvs/prettier-plugin-sort-imports": "^4.7.1",
|
|
36
|
+
"@kucrut/vite-for-wp": "^0.12.0",
|
|
37
|
+
"@roots/vite-plugin": "^2.2.0",
|
|
38
|
+
"@shufo/prettier-plugin-blade": "^1.16.2",
|
|
39
|
+
"@tailwindcss/postcss": "^4.3.1",
|
|
40
|
+
"@tailwindcss/vite": "^4.3.1",
|
|
41
|
+
"@types/wordpress__block-editor": "^15.0.6",
|
|
42
|
+
"@vitejs/plugin-react": "^6.0.0",
|
|
43
|
+
"@webikon/webentor-core": "^0.15.0",
|
|
44
|
+
"@webikon/webentor-configs": "^1.1.0",
|
|
45
|
+
"@wordpress/block-editor": "^15.21.1",
|
|
46
|
+
"@wordpress/block-library": "^9.48.1",
|
|
47
|
+
"@wordpress/blocks": "^15.21.1",
|
|
48
|
+
"@wordpress/components": "^35.0.1",
|
|
49
|
+
"@wordpress/dependency-extraction-webpack-plugin": "^6.48.1",
|
|
50
|
+
"@wordpress/i18n": "^6.21.1",
|
|
51
|
+
"@wordpress/icons": "^14.0.1",
|
|
52
|
+
"eslint": "^9.39.2",
|
|
53
|
+
"eslint-config-prettier": "^10.1.8",
|
|
54
|
+
"eslint-plugin-prettier": "^5.5.6",
|
|
55
|
+
"eslint-plugin-react": "^7.37.5",
|
|
56
|
+
"husky": "^9.1.7",
|
|
57
|
+
"laravel-vite-plugin": "^3.0.0",
|
|
58
|
+
"lint-staged": "^16.4.0",
|
|
59
|
+
"patch-package": "^8.0.1",
|
|
60
|
+
"postcss": "^8.5.15",
|
|
61
|
+
"postcss-pxtorem": "^6.1.0",
|
|
62
|
+
"prettier": "^3.8.4",
|
|
63
|
+
"prettier-plugin-tailwindcss": "^0.8.0",
|
|
64
|
+
"react": "^18.3.1",
|
|
65
|
+
"react-dom": "^18.3.1",
|
|
66
|
+
"rollup-plugin-external-globals": "^0.13.0",
|
|
67
|
+
"stylelint": "^17.13.0",
|
|
68
|
+
"stylelint-config-recommended": "^18.0.0",
|
|
69
|
+
"tailwindcss": "^4.3.1",
|
|
70
|
+
"typescript": "^5.9.3",
|
|
71
|
+
"typescript-eslint": "^8.61.1",
|
|
72
|
+
"vite": "^8.0.0",
|
|
73
|
+
"vite-plugin-external": "^6.2.2"
|
|
74
|
+
},
|
|
75
|
+
"lint-staged": {
|
|
76
|
+
"*.{js,ts,tsx}": "pnpm lint:js",
|
|
77
|
+
"*.css": "pnpm lint:css"
|
|
78
|
+
},
|
|
79
|
+
"dependencies": {
|
|
80
|
+
"@alpinejs/intersect": "^3.15.12",
|
|
81
|
+
"@imacrayon/alpine-ajax": "^0.12.6",
|
|
82
|
+
"alpinejs-masonry": "^1.0.16",
|
|
83
|
+
"lightgallery": "2.9.0"
|
|
84
|
+
},
|
|
85
|
+
"packageManager": "pnpm@10.15.1+sha512.34e538c329b5553014ca8e8f4535997f96180a1d0f614339357449935350d924e22f8614682191264ec33d1462ac21561aff97f6bb18065351c162c7e8f6de67"
|
|
86
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Load default Webentor JS features
|
|
2
|
+
import './_header';
|
|
3
|
+
|
|
4
|
+
import Lightbox from './_lightbox';
|
|
5
|
+
|
|
6
|
+
// Register Alpine last to ensure all extensions are registered
|
|
7
|
+
import './_alpine';
|
|
8
|
+
|
|
9
|
+
// Register static assets — already migrated to the Vite 8 form, must stay as-is
|
|
10
|
+
import.meta.glob(['../images/**', '../fonts/**'], {
|
|
11
|
+
eager: true,
|
|
12
|
+
query: '?url',
|
|
13
|
+
import: 'default',
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
// Project-specific module glob — NOT a static-asset glob, must be left untouched
|
|
17
|
+
const modules = import.meta.glob(['./modules/**/*.ts']);
|
|
18
|
+
|
|
19
|
+
new Lightbox();
|
|
20
|
+
new Lightbox('.lightgallery-gallery', {
|
|
21
|
+
selector: undefined,
|
|
22
|
+
});
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "webikon/webentor-theme",
|
|
3
|
+
"type": "wordpress-theme",
|
|
4
|
+
"version": "2.1.0",
|
|
5
|
+
"description": "Webentor starter theme",
|
|
6
|
+
"homepage": "https://webikon.sk",
|
|
7
|
+
"authors": [
|
|
8
|
+
{
|
|
9
|
+
"name": "Roots",
|
|
10
|
+
"homepage": "https://github.com/roots/sage"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "Webikon s.r.o.",
|
|
14
|
+
"email": "support@webikon.sk",
|
|
15
|
+
"homepage": "https://webikon.sk"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "Pavol Caban",
|
|
19
|
+
"email": "pavol.caban@webikon.sk",
|
|
20
|
+
"homepage": "https://webikon.sk"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"repositories": [
|
|
24
|
+
{
|
|
25
|
+
"type": "github",
|
|
26
|
+
"url": "https://github.com/webikon/webentor-core.git"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"autoload": {
|
|
30
|
+
"psr-4": {
|
|
31
|
+
"App\\": "app/"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"require": {
|
|
35
|
+
"php": ">=8.3",
|
|
36
|
+
"johnbillion/extended-cpts": "^5.0",
|
|
37
|
+
"log1x/acf-composer": "^3.0",
|
|
38
|
+
"log1x/sage-directives": "^2.0",
|
|
39
|
+
"log1x/sage-svg": "^2.0",
|
|
40
|
+
"roots/acorn": "^6.0",
|
|
41
|
+
"roots/acorn-prettify": "^1.0",
|
|
42
|
+
"stoutlogic/acf-builder": "^1.12",
|
|
43
|
+
"webikon/webentor-core": "^0.15"
|
|
44
|
+
},
|
|
45
|
+
"require-dev": {
|
|
46
|
+
"squizlabs/php_codesniffer": "^3.8.0"
|
|
47
|
+
},
|
|
48
|
+
"config": {
|
|
49
|
+
"optimize-autoloader": true,
|
|
50
|
+
"preferred-install": "dist",
|
|
51
|
+
"sort-packages": true
|
|
52
|
+
},
|
|
53
|
+
"minimum-stability": "dev",
|
|
54
|
+
"prefer-stable": true,
|
|
55
|
+
"scripts": {
|
|
56
|
+
"post-autoload-dump": [
|
|
57
|
+
"Roots\\Acorn\\ComposerScripts::postAutoloadDump"
|
|
58
|
+
],
|
|
59
|
+
"lint": [
|
|
60
|
+
"phpcs --extensions=php --standard=PSR12 app"
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "webikon/webentor-theme",
|
|
3
|
+
"type": "wordpress-theme",
|
|
4
|
+
"version": "2.1.0",
|
|
5
|
+
"description": "Webentor starter theme",
|
|
6
|
+
"homepage": "https://webikon.sk",
|
|
7
|
+
"authors": [
|
|
8
|
+
{
|
|
9
|
+
"name": "Roots",
|
|
10
|
+
"homepage": "https://github.com/roots/sage"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "Webikon s.r.o.",
|
|
14
|
+
"email": "support@webikon.sk",
|
|
15
|
+
"homepage": "https://webikon.sk"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "Pavol Caban",
|
|
19
|
+
"email": "pavol.caban@webikon.sk",
|
|
20
|
+
"homepage": "https://webikon.sk"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"repositories": [
|
|
24
|
+
{
|
|
25
|
+
"type": "github",
|
|
26
|
+
"url": "https://github.com/webikon/webentor-core.git"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"autoload": {
|
|
30
|
+
"psr-4": {
|
|
31
|
+
"App\\": "app/"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"require": {
|
|
35
|
+
"php": ">=8.3",
|
|
36
|
+
"johnbillion/extended-cpts": "^5.0",
|
|
37
|
+
"log1x/acf-composer": "^3.0",
|
|
38
|
+
"log1x/sage-directives": "^2.0",
|
|
39
|
+
"log1x/sage-svg": "^2.0",
|
|
40
|
+
"roots/acorn": "^5.0",
|
|
41
|
+
"roots/acorn-prettify": "^1.0",
|
|
42
|
+
"stoutlogic/acf-builder": "^1.12",
|
|
43
|
+
"webikon/webentor-core": "^0.15"
|
|
44
|
+
},
|
|
45
|
+
"require-dev": {
|
|
46
|
+
"squizlabs/php_codesniffer": "^3.8.0"
|
|
47
|
+
},
|
|
48
|
+
"config": {
|
|
49
|
+
"optimize-autoloader": true,
|
|
50
|
+
"preferred-install": "dist",
|
|
51
|
+
"sort-packages": true
|
|
52
|
+
},
|
|
53
|
+
"minimum-stability": "dev",
|
|
54
|
+
"prefer-stable": true,
|
|
55
|
+
"scripts": {
|
|
56
|
+
"post-autoload-dump": [
|
|
57
|
+
"Roots\\Acorn\\ComposerScripts::postAutoloadDump"
|
|
58
|
+
],
|
|
59
|
+
"lint": [
|
|
60
|
+
"phpcs --extensions=php --standard=PSR12 app"
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
}
|