优化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
@@ -4,7 +4,7 @@
"description": "ArtPlayer is a modern HTML5 video player",
"scripts": {
"bootstrap": "node ./node_modules/.bin/lerna bootstrap",
"publish": "node ./node_modules/.bin/lerna publish from-git",
"publish": "node ./node_modules/.bin/lerna publish from-git --yes",
"release": "npm run lint && npm test && npm run build:all && npm run publish",
"dev": "node ./node_modules/.bin/cross-env NODE_ENV=development node ./scripts/dev.js",
"build": "node ./node_modules/.bin/cross-env NODE_ENV=production node ./scripts/build.js",
+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!');
});