mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-14 08:26:16 -08:00
优化npm脚本
This commit is contained in:
1 parent
2e994ae82f
commit
57d862f25c
3 files changed
+3
-3
No files matched your search
+1
-1
@@ -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
@@ -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}`);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -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!');
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user