优化npm脚本

This commit is contained in:
Harvey Zack committed 2019-04-16 11:11:41 +08:00
1 parent 2e994ae82f
commit 57d862f25c
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@ function build(projectPath) {
})
.then(bundle => {
bundle.write(output);
logger.success('finished building all bundles');
logger.success(`finished building all bundles from ${projectPath}`);
});
}
+1 -1
View File
@@ -10,7 +10,7 @@ module.exports = (opts = {}) => ({
if (opts.from && opts.to) {
cpy(opts.from, opts.to).then(() => {
logger.success(`Successfully copied to: ${opts.to}`);
logger.success(`${opts.from} successfully copied to ${opts.to}`);
}).catch(() => {
logger.fatal('File copy failed!');
});