@loopress/cli 0.28.0 → 0.29.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/README.md +370 -203
- package/bin/dev.js +0 -0
- package/dist/commands/acf/pull.d.ts +9 -1
- package/dist/commands/acf/pull.js +2 -0
- package/dist/commands/acf/push.d.ts +9 -1
- package/dist/commands/acf/push.js +3 -1
- package/dist/commands/api/publish.js +1 -1
- package/dist/commands/app/push.js +1 -1
- package/dist/commands/composer/push.js +3 -3
- package/dist/commands/form/pull.d.ts +9 -1
- package/dist/commands/form/pull.js +3 -1
- package/dist/commands/form/push.d.ts +7 -1
- package/dist/commands/form/push.js +3 -1
- package/dist/commands/init.js +6 -38
- package/dist/commands/menu/pull.d.ts +7 -1
- package/dist/commands/menu/pull.js +2 -0
- package/dist/commands/menu/push.d.ts +7 -1
- package/dist/commands/menu/push.js +3 -1
- package/dist/commands/option/pull.js +4 -4
- package/dist/commands/option/push.js +2 -0
- package/dist/commands/page/push.js +3 -0
- package/dist/commands/plugin/pull.d.ts +4 -0
- package/dist/commands/plugin/pull.js +56 -10
- package/dist/commands/plugin/push.js +5 -4
- package/dist/commands/push.js +5 -4
- package/dist/commands/seo/pull.d.ts +8 -1
- package/dist/commands/seo/pull.js +2 -0
- package/dist/commands/seo/push.d.ts +7 -1
- package/dist/commands/seo/push.js +3 -1
- package/dist/commands/snippet/publish.js +1 -1
- package/dist/commands/snippet/pull.js +1 -1
- package/dist/commands/snippet/push.js +1 -1
- package/dist/commands/status.d.ts +1 -0
- package/dist/commands/status.js +4 -4
- package/dist/commands/theme/pull.d.ts +6 -10
- package/dist/commands/theme/pull.js +30 -32
- package/dist/commands/theme/push.d.ts +8 -9
- package/dist/commands/theme/push.js +54 -111
- package/dist/commands/theme/style/pull.d.ts +7 -1
- package/dist/commands/theme/style/pull.js +3 -1
- package/dist/commands/theme/style/push.d.ts +8 -1
- package/dist/commands/theme/style/push.js +4 -1
- package/dist/commands/{template → theme/template}/diff.d.ts +1 -1
- package/dist/commands/{template → theme/template}/diff.js +3 -3
- package/dist/commands/{template → theme/template}/list.d.ts +2 -2
- package/dist/commands/{template → theme/template}/list.js +5 -5
- package/dist/commands/{template → theme/template}/push.d.ts +1 -1
- package/dist/commands/{template → theme/template}/push.js +8 -6
- package/dist/commands/theme/version/pull.d.ts +23 -0
- package/dist/commands/theme/version/pull.js +43 -0
- package/dist/commands/theme/version/push.d.ts +22 -0
- package/dist/commands/theme/version/push.js +123 -0
- package/dist/hooks/finally.d.ts +2 -1
- package/dist/hooks/finally.js +27 -4
- package/dist/lib/app-manifest.js +2 -2
- package/dist/lib/base.d.ts +1 -0
- package/dist/lib/base.js +3 -0
- package/dist/lib/dev-watch.js +2 -2
- package/dist/lib/diff-state.js +1 -0
- package/dist/lib/github-release.js +0 -1
- package/dist/lib/local-callback-server.d.ts +12 -6
- package/dist/lib/local-callback-server.js +21 -22
- package/dist/lib/php-files-command.js +3 -1
- package/dist/lib/push-command.d.ts +5 -0
- package/dist/lib/push-command.js +30 -8
- package/dist/lib/resource-state.js +7 -6
- package/dist/lib/snapshot-store.js +2 -2
- package/dist/lib/wp-authorize-flow.d.ts +10 -17
- package/dist/lib/wp-authorize-flow.js +24 -28
- package/dist/lib/wp-site-diagnostic.js +37 -0
- package/dist/utils/composer.d.ts +3 -1
- package/dist/utils/composer.js +14 -6
- package/dist/utils/option-format.d.ts +3 -1
- package/dist/utils/option-format.js +14 -3
- package/dist/utils/page-format.d.ts +5 -1
- package/dist/utils/page-format.js +7 -3
- package/dist/utils/plugin-sync.js +1 -1
- package/dist/utils/resource-dirs.js +2 -2
- package/dist/utils/template-format.d.ts +2 -1
- package/dist/utils/template-format.js +10 -3
- package/oclif.manifest.json +937 -361
- package/package.json +22 -16
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loopress/cli",
|
|
3
3
|
"description": "CLI tool for syncing WordPress code snippets, plugins, and Composer dependencies via the REST API",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.29.0",
|
|
5
5
|
"author": "jean-smaug",
|
|
6
6
|
"bin": {
|
|
7
7
|
"loopress": "bin/run.js",
|
|
@@ -12,42 +12,42 @@
|
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@inquirer/prompts": "^8.7.2",
|
|
15
|
-
"@oclif/core": "^5.
|
|
16
|
-
"@oclif/plugin-help": "^7.0.
|
|
17
|
-
"@oclif/plugin-warn-if-update-available": "^4.0.
|
|
15
|
+
"@oclif/core": "^5.1.2",
|
|
16
|
+
"@oclif/plugin-help": "^7.0.2",
|
|
17
|
+
"@oclif/plugin-warn-if-update-available": "^4.0.1",
|
|
18
18
|
"@sentry/node": "^10.74.0",
|
|
19
19
|
"chokidar": "^5.0.0",
|
|
20
20
|
"compare-versions": "^6.1.1",
|
|
21
21
|
"diff": "^9.0.0",
|
|
22
22
|
"got": "^16.0.0",
|
|
23
|
-
"listr2": "^11.1.
|
|
23
|
+
"listr2": "^11.1.1",
|
|
24
24
|
"microdiff": "^1.6.0",
|
|
25
|
-
"open": "^11.0.
|
|
25
|
+
"open": "^11.0.4",
|
|
26
26
|
"playwright-core": "^1.63.0",
|
|
27
27
|
"slugify": "^1.6.9",
|
|
28
28
|
"tty-table": "^5.0.0",
|
|
29
29
|
"write-file-atomic": "^8.0.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@eslint/compat": "2.1.1",
|
|
33
32
|
"@oclif/prettier-config": "^0.2.1",
|
|
34
33
|
"@stryker-mutator/core": "^10.0.0",
|
|
35
34
|
"@stryker-mutator/vitest-runner": "^10.0.0",
|
|
36
|
-
"@types/node": "26.
|
|
35
|
+
"@types/node": "26.6.4",
|
|
37
36
|
"@types/write-file-atomic": "^4.0.3",
|
|
38
37
|
"@vitest/coverage-v8": "^4.1.11",
|
|
39
|
-
"eslint": "^
|
|
40
|
-
"eslint
|
|
38
|
+
"@vitest/eslint-plugin": "^1.6.27",
|
|
39
|
+
"eslint": "^10.12.0",
|
|
40
|
+
"eslint-config-oclif": "^7.1.8",
|
|
41
41
|
"eslint-config-prettier": "^10",
|
|
42
|
-
"eslint-plugin-sonarjs": "^4.2.
|
|
42
|
+
"eslint-plugin-sonarjs": "^4.2.2",
|
|
43
43
|
"json-schema-to-typescript": "^16.0.0",
|
|
44
|
-
"oclif": "^
|
|
45
|
-
"prettier": "3.9.
|
|
44
|
+
"oclif": "^6.0.2",
|
|
45
|
+
"prettier": "3.9.9",
|
|
46
46
|
"shx": "^0.4.0",
|
|
47
47
|
"ts-node": "10.9.2",
|
|
48
|
-
"tsx": "4.23.
|
|
48
|
+
"tsx": "4.23.15",
|
|
49
49
|
"typescript": "^6.0.3",
|
|
50
|
-
"vitest": "^
|
|
50
|
+
"vitest": "^5.0.3"
|
|
51
51
|
},
|
|
52
52
|
"engines": {
|
|
53
53
|
"node": ">=22.0.0"
|
|
@@ -119,7 +119,13 @@
|
|
|
119
119
|
"description": "Manage WordPress code snippets"
|
|
120
120
|
},
|
|
121
121
|
"theme": {
|
|
122
|
-
"description": "Manage
|
|
122
|
+
"description": "Manage everything theme related: versions, block templates and parts, Global Styles (never switches the active theme)"
|
|
123
|
+
},
|
|
124
|
+
"theme:template": {
|
|
125
|
+
"description": "Manage block templates and template parts, written as the files of the <parent>-loopress child theme"
|
|
126
|
+
},
|
|
127
|
+
"theme:version": {
|
|
128
|
+
"description": "Manage WordPress.org themes tracked in loopress.json (versions only)"
|
|
123
129
|
},
|
|
124
130
|
"theme:style": {
|
|
125
131
|
"description": "Manage the active block theme's Global Styles customizations (Site Editor > Styles: colors, typography, spacing)"
|