@atomicsmash/cli 10.0.0-beta.2 → 10.0.1-beta.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup-database.d.ts","sourceRoot":"","sources":["../../src/commands/setup-database.ts"],"names":[],"mappings":"AAKA,OAAO,eAAe,CAAC;AA+EvB,eAAO,MAAM,OAAO,mBAAmB,CAAC;AACxC,eAAO,MAAM,QAAQ,mEAC4C,CAAC;AAClE,wBAAsB,OAAO,
|
|
1
|
+
{"version":3,"file":"setup-database.d.ts","sourceRoot":"","sources":["../../src/commands/setup-database.ts"],"names":[],"mappings":"AAKA,OAAO,eAAe,CAAC;AA+EvB,eAAO,MAAM,OAAO,mBAAmB,CAAC;AACxC,eAAO,MAAM,QAAQ,mEAC4C,CAAC;AAClE,wBAAsB,OAAO,kBAiH5B"}
|
|
@@ -96,6 +96,7 @@ export async function handler() {
|
|
|
96
96
|
"shortpixel-image-optimiser",
|
|
97
97
|
"wordfence",
|
|
98
98
|
"wp-mail-smtp",
|
|
99
|
+
"modular-connector",
|
|
99
100
|
];
|
|
100
101
|
const { stdout: pluginList } = await execute("wp plugin list --format=json");
|
|
101
102
|
const allPlugins = JSON.parse(pluginList);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../src/commands/setup.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,OAAO,UAAU,CAAC;AAC/B,eAAO,MAAM,QAAQ,kDAAkD,CAAC;AACxE,wBAAsB,OAAO,
|
|
1
|
+
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../src/commands/setup.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,OAAO,UAAU,CAAC;AAC/B,eAAO,MAAM,QAAQ,kDAAkD,CAAC;AACxE,wBAAsB,OAAO,kBA8Q5B"}
|
package/dist/commands/setup.js
CHANGED
|
@@ -61,6 +61,10 @@ export async function handler() {
|
|
|
61
61
|
});
|
|
62
62
|
})(),
|
|
63
63
|
(async () => {
|
|
64
|
+
const ONE_MINUTE_IN_MS = 60000;
|
|
65
|
+
const timeout = setTimeout(() => {
|
|
66
|
+
throw new Error("Herd/Valet commands timed out. Please try again.");
|
|
67
|
+
}, ONE_MINUTE_IN_MS * 1.5);
|
|
64
68
|
if (await execute(`herd --version`)
|
|
65
69
|
.then(() => true)
|
|
66
70
|
.catch(() => false)) {
|
|
@@ -89,6 +93,7 @@ export async function handler() {
|
|
|
89
93
|
await execute(`herd isolate`)
|
|
90
94
|
.then(() => {
|
|
91
95
|
console.log(`Herd is isolated. (${convertMeasureToPrettyString(performance.measure("herd isolate", "herd link done"))})`);
|
|
96
|
+
clearTimeout(timeout);
|
|
92
97
|
})
|
|
93
98
|
.catch((error) => {
|
|
94
99
|
console.error(error);
|
|
@@ -100,6 +105,7 @@ export async function handler() {
|
|
|
100
105
|
.catch(() => false)) {
|
|
101
106
|
await execute(`valet link ${projectName} --secure --isolate`)
|
|
102
107
|
.then(() => {
|
|
108
|
+
clearTimeout(timeout);
|
|
103
109
|
console.log(`Valet is linked, secured and isolated. (${convertMeasureToPrettyString(performance.measure("herd-or-valet", "Start"))})`);
|
|
104
110
|
})
|
|
105
111
|
.catch((error) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atomicsmash/cli",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.1-beta.0",
|
|
4
4
|
"description": "A collection of CLI tools by Atomic Smash.",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"homepage": "https://www.atomicsmash.co.uk/",
|
|
@@ -41,20 +41,19 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@atomicsmash/date-php": "^2.1.0",
|
|
44
|
-
"@atomicsmash/smash-config": "^1.0.
|
|
44
|
+
"@atomicsmash/smash-config": "^1.0.1-beta.0",
|
|
45
45
|
"@types/vinyl": "^2.0.12",
|
|
46
|
-
"cosmiconfig": "^9.0.0",
|
|
47
46
|
"glob-promise": "^6.0.7",
|
|
48
47
|
"svg-sprite": "^2.0.4",
|
|
49
48
|
"vinyl": "^3.0.1",
|
|
50
49
|
"yargs": "^18.0.0"
|
|
51
50
|
},
|
|
52
51
|
"devDependencies": {
|
|
53
|
-
"@atomicsmash/blocks-helpers": "^7.2.
|
|
52
|
+
"@atomicsmash/blocks-helpers": "^7.2.1-beta.0",
|
|
54
53
|
"@types/svg-sprite": "^0.0.39"
|
|
55
54
|
},
|
|
56
55
|
"peerDependencies": {
|
|
57
|
-
"dotenv": "^
|
|
58
|
-
"typescript": "
|
|
56
|
+
"dotenv": "^17.2.3",
|
|
57
|
+
"typescript": "~5.9.3"
|
|
59
58
|
}
|
|
60
59
|
}
|