mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-13 02:49:58 +00:00
Misc formatting changes
This commit is contained in:
@@ -101,14 +101,15 @@ if (argv.watch) {
|
|||||||
shouldExitProgram: false
|
shouldExitProgram: false
|
||||||
|
|
||||||
}).then(result => {
|
}).then(result => {
|
||||||
const archiveName = path.basename(result.extensionPath);
|
const outputName = path.basename(result.extensionPath);
|
||||||
|
|
||||||
fs.moveSync(path.join(DIST_PATH, archiveName)
|
// Rename output extension to XPI
|
||||||
, path.join(DIST_PATH, archiveName.replace("zip", "xpi")));
|
fs.moveSync(path.join(DIST_PATH, outputName)
|
||||||
|
, path.join(DIST_PATH, outputName.replace("zip", "xpi")));
|
||||||
|
|
||||||
// Only need the built extension archive
|
// Only need the built extension archive
|
||||||
fs.remove(UNPACKED_PATH);
|
fs.remove(UNPACKED_PATH);
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -131,8 +132,12 @@ function handleCompilerOutput (err, stats) {
|
|||||||
const info = stats.toJson();
|
const info = stats.toJson();
|
||||||
|
|
||||||
// Log errors/warnings
|
// Log errors/warnings
|
||||||
if (stats.hasErrors()) console.error(info.errors);
|
if (stats.hasErrors()) {
|
||||||
if (stats.hasWarnings()) console.warn(info.warnings);
|
console.error(info.errors);
|
||||||
|
}
|
||||||
|
if (stats.hasWarnings()) {
|
||||||
|
console.warn(info.warnings);
|
||||||
|
}
|
||||||
|
|
||||||
// Log formatted output
|
// Log formatted output
|
||||||
console.log(stats.toString());
|
console.log(stats.toString());
|
||||||
|
|||||||
Reference in New Issue
Block a user