@group107/create-wp107 1.0.0-dev.6 → 1.0.0-dev.8
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 +16 -1
- package/bin/create-wp107.mjs +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Public launcher for Group 107's private WP107 platform:
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
|
-
npx @group107/create-wp107
|
|
6
|
+
npx --yes @group107/create-wp107
|
|
7
7
|
```
|
|
8
8
|
|
|
9
9
|
Run it from a WordPress site (the root or any folder below it). The launcher contains no platform or starter
|
|
@@ -19,3 +19,18 @@ git ls-remote https://github.com/Israel-IT/WP107.git
|
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
Project setup and resume behavior are documented by the installed WP107 release.
|
|
22
|
+
The delegated CLI captures routine subprocess output, keeps unique PHP/WP-CLI warnings separate from success lines,
|
|
23
|
+
and accepts `--debug` when detailed successful-command output is needed.
|
|
24
|
+
|
|
25
|
+
On the supported Windows developer setup, store the corporate ACF PRO key once through a hidden prompt:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
npx --yes @group107/create-wp107 acf-credential set
|
|
29
|
+
npx --yes @group107/create-wp107 acf-credential status
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
The encrypted credential is bound to the current Windows user and remains outside project repositories. Use
|
|
33
|
+
`acf-credential forget` to remove it. The normal unversioned onboarding command reuses it only on local development
|
|
34
|
+
URLs: to install/update ACF PRO through ACF's official Composer repository and to activate the license when the site
|
|
35
|
+
has none. A site that is already licensed needs no WP107 credential. Credentials are not propagated to staging,
|
|
36
|
+
production or CI.
|
package/bin/create-wp107.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { existsSync, realpathSync } from 'node:fs';
|
|
|
4
4
|
import { dirname, join } from 'node:path';
|
|
5
5
|
import { fileURLToPath } from 'node:url';
|
|
6
6
|
|
|
7
|
-
export const WP107_VERSION = '1.0.0-dev.
|
|
7
|
+
export const WP107_VERSION = '1.0.0-dev.8';
|
|
8
8
|
export const DEFAULT_SPEC = `git+https://github.com/Israel-IT/WP107.git#v${WP107_VERSION}`;
|
|
9
9
|
|
|
10
10
|
export function accessTarget(spec) {
|
|
@@ -43,7 +43,7 @@ export function launch(args, { env = process.env, execute = spawnSync } = {}) {
|
|
|
43
43
|
console.error('[create-wp107] npm could not be located. Install the supported Node/npm release and retry.');
|
|
44
44
|
return 1;
|
|
45
45
|
}
|
|
46
|
-
const result = execute(process.execPath, [cli, 'exec', '--yes', `--package=${spec}`, '--', 'create-wp107', ...args], {
|
|
46
|
+
const result = execute(process.execPath, [cli, 'exec', '--allow-git=root', '--yes', `--package=${spec}`, '--', 'create-wp107', ...args], {
|
|
47
47
|
stdio: 'inherit', env, windowsHide: true,
|
|
48
48
|
});
|
|
49
49
|
if (result.error) {
|