clovie 0.2.17 → 0.2.19
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/createClovie.js +6 -7
- package/lib/services/Compile.js +1 -1
- package/lib/services/File.js +1 -1
- package/package.json +5 -5
package/lib/createClovie.js
CHANGED
|
@@ -47,14 +47,13 @@ export const createClovie = async (config = {}) => {
|
|
|
47
47
|
clovie.install(LiveReload);
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
+
// One install() call, so the services in it may require each other in
|
|
51
|
+
// any order (the engine counts a namespace the same call installs), and
|
|
52
|
+
// awaited, so createClovie resolves only once an async setup is done.
|
|
50
53
|
if (Array.isArray(opts.services)) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
} else {
|
|
55
|
-
clovie.install(service.configure(opts));
|
|
56
|
-
}
|
|
57
|
-
}
|
|
54
|
+
await clovie.install(
|
|
55
|
+
...opts.services.map((service) => (service.configured ? service : service.configure(opts))),
|
|
56
|
+
);
|
|
58
57
|
}
|
|
59
58
|
|
|
60
59
|
// Don't auto-execute commands - let CLI decide
|
package/lib/services/Compile.js
CHANGED
|
@@ -217,7 +217,7 @@ export class Compile extends ServiceProvider {
|
|
|
217
217
|
}
|
|
218
218
|
|
|
219
219
|
const results = await Promise.all(promises);
|
|
220
|
-
this.#progressTracker.completeProgress(progressId, `✅ Compiled ${
|
|
220
|
+
this.#progressTracker.completeProgress(progressId, `✅ Compiled ${results.length} routes`);
|
|
221
221
|
|
|
222
222
|
return results.filter(Boolean);
|
|
223
223
|
},
|
package/lib/services/File.js
CHANGED
|
@@ -220,7 +220,7 @@ export class File extends ServiceProvider {
|
|
|
220
220
|
|
|
221
221
|
if (item.isDirectory()) {
|
|
222
222
|
if (recursive) {
|
|
223
|
-
this.#getFilePaths(fullPath, options);
|
|
223
|
+
files.push(...this.#getFilePaths(fullPath, options));
|
|
224
224
|
}
|
|
225
225
|
} else {
|
|
226
226
|
// It's a file - apply filters
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clovie",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.19",
|
|
4
4
|
"description": "Vintage web dev tooling with modern quality of life",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"static-site-generator",
|
|
@@ -85,10 +85,10 @@
|
|
|
85
85
|
"update:jucie.io": "npx npm-check-updates '@jucie.io/*' --target latest -u && npm install"
|
|
86
86
|
},
|
|
87
87
|
"dependencies": {
|
|
88
|
-
"@jucie.io/engine": "^1.1.
|
|
89
|
-
"@jucie.io/engine-esbuild": "^1.0.
|
|
90
|
-
"@jucie.io/engine-server": "^1.0.
|
|
91
|
-
"@jucie.io/reactive": "^1.
|
|
88
|
+
"@jucie.io/engine": "^1.1.85",
|
|
89
|
+
"@jucie.io/engine-esbuild": "^1.0.22",
|
|
90
|
+
"@jucie.io/engine-server": "^1.0.46",
|
|
91
|
+
"@jucie.io/reactive": "^1.1.7",
|
|
92
92
|
"chalk": "^5.6.2",
|
|
93
93
|
"chokidar": "^3.5.3",
|
|
94
94
|
"cli-progress": "^3.12.0",
|