replace chalk with clorox

This commit is contained in:
Luke Edwards
2018-03-10 12:30:36 -08:00
parent fb24c862f3
commit dd39909371
5 changed files with 25 additions and 25 deletions

View File

@@ -1,6 +1,6 @@
import * as fs from 'fs';
import * as path from 'path';
import chalk from 'chalk';
import * as clorox from 'clorox';
import mkdirp from 'mkdirp';
import rimraf from 'rimraf';
import { create_compilers, create_app, create_routes, create_serviceworker } from 'sapper/core.js'
@@ -20,12 +20,12 @@ export default async function build() {
const { client, server, serviceworker } = create_compilers();
const client_stats = await compile(client);
console.log(chalk.inverse(`\nbuilt client`));
console.log(clorox.inverse(`\nbuilt client`));
console.log(client_stats.toString({ colors: true }));
fs.writeFileSync(path.join(output, 'client_info.json'), JSON.stringify(client_stats.toJson()));
const server_stats = await compile(server);
console.log(chalk.inverse(`\nbuilt server`));
console.log(clorox.inverse(`\nbuilt server`));
console.log(server_stats.toString({ colors: true }));
let serviceworker_stats;
@@ -38,7 +38,7 @@ export default async function build() {
});
serviceworker_stats = await compile(serviceworker);
console.log(chalk.inverse(`\nbuilt service worker`));
console.log(clorox.inverse(`\nbuilt service worker`));
console.log(serviceworker_stats.toString({ colors: true }));
}
}
@@ -61,4 +61,4 @@ function compile(compiler: any) {
}
});
});
}
}