mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
[mv3] Provide console feedback that work is ongoing when building
This commit is contained in:
parent
f51a4c79db
commit
50f87c21ea
1 changed files with 6 additions and 0 deletions
|
|
@ -114,6 +114,9 @@ const urlToFileName = url => {
|
|||
|
||||
const fetchText = (url, cacheDir) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
process.stdout.clearLine();
|
||||
process.stdout.cursorTo(0);
|
||||
process.stdout.write(`Fetching ${url}`);
|
||||
const fname = urlToFileName(url);
|
||||
fs.readFile(`${cacheDir}/${fname}`, { encoding: 'utf8' }).then(content => {
|
||||
log(`\tFetched local ${url}`);
|
||||
|
|
@ -1570,6 +1573,9 @@ async function main() {
|
|||
homeURL: 'https://github.com/sander85/uBOL-et',
|
||||
});
|
||||
|
||||
process.stdout.clearLine();
|
||||
process.stdout.cursorTo(0);
|
||||
|
||||
writeFile(
|
||||
`${rulesetDir}/ruleset-details.json`,
|
||||
`${JSON.stringify(rulesetDetails, null, 1)}\n`
|
||||
|
|
|
|||
Loading…
Reference in a new issue