@schalkneethling/miyagi-core 4.3.0 → 4.3.1
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/default-config.js +1 -1
- package/lib/init/watcher.js +15 -12
- package/package.json +1 -1
package/lib/default-config.js
CHANGED
package/lib/init/watcher.js
CHANGED
|
@@ -161,18 +161,21 @@ function printWatchReport(report, watchConfig) {
|
|
|
161
161
|
` ${colorize("grey", "Diagnostics:", useColors)} sources=${report.meta.sourceCount
|
|
162
162
|
}, ignores=${report.meta.ignoreCount}`,
|
|
163
163
|
);
|
|
164
|
-
console.info(` ${colorize("grey", "Resolved sources:", useColors)}`);
|
|
165
164
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
165
|
+
if (watchConfig?.debug?.logResolvedSources) {
|
|
166
|
+
console.info(` ${colorize("grey", "Resolved sources:", useColors)}`);
|
|
167
|
+
|
|
168
|
+
for (const source of report.sources) {
|
|
169
|
+
const stateLabel = source.exists ? "exists" : "missing";
|
|
170
|
+
const stateColor = source.exists ? "green" : "yellow";
|
|
171
|
+
console.info(
|
|
172
|
+
` - ${source.id} (${source.type}) ${source.resolvedPath} [${colorize(
|
|
173
|
+
stateColor,
|
|
174
|
+
stateLabel,
|
|
175
|
+
useColors,
|
|
176
|
+
)}]`,
|
|
177
|
+
);
|
|
178
|
+
}
|
|
176
179
|
}
|
|
177
180
|
|
|
178
181
|
console.info(` ${colorize("grey", "Ignored patterns:", useColors)}`);
|
|
@@ -628,6 +631,7 @@ export default function Watcher(server) {
|
|
|
628
631
|
|
|
629
632
|
isProcessing = true;
|
|
630
633
|
try {
|
|
634
|
+
log("info", t("updatingStarted"));
|
|
631
635
|
const events = snapshotPendingEvents(pendingByPath);
|
|
632
636
|
pendingByPath.clear();
|
|
633
637
|
await handleFileChange(events);
|
|
@@ -713,7 +717,6 @@ export default function Watcher(server) {
|
|
|
713
717
|
log("info", `watch:event=${eventType} path=${changedPath}`);
|
|
714
718
|
}
|
|
715
719
|
|
|
716
|
-
log("info", t("updatingStarted"));
|
|
717
720
|
enqueueEvent(eventType, changedPath);
|
|
718
721
|
});
|
|
719
722
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@schalkneethling/miyagi-core",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.1",
|
|
4
4
|
"description": "miyagi is a component development tool for JavaScript template engines.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "Schalk Neethling <schalkneethling@duck.com>, Michael Großklaus <mail@mgrossklaus.de> (https://www.mgrossklaus.de)",
|