Skip to content

Commit

Permalink
fix: 增加向下兼容性
Browse files Browse the repository at this point in the history
1. packing serv:dist —> packing serve-dist
2. packing lint —> eslint
  • Loading branch information
zhongzhi107 committed Sep 13, 2017
1 parent e57e86a commit 8dafa6f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
],
"bin": {
"packing": "dist/bin/packing.js",
"packing-lint": "dist/bin/packing-lint.js",
"packing-build": "dist/bin/packing-build.js",
"packing-serve-dist": "dist/bin/packing-serve-dist.js",
"packing-serve": "dist/bin/packing-serve.js"
Expand Down
1 change: 1 addition & 0 deletions src/bin/packing-lint.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log('** `packing lint` has been deprecated, and replace it with `eslint` **');
5 changes: 3 additions & 2 deletions src/bin/packing.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ console.log(` packing: ${pkg.version}`);

program
.command('serve', 'start dev web server', { isDefault: true })
.command('serve:dist', 'review build output')
.command('serve-dist', 'review build output')
.alias('serve:dist')
.command('build', 'build project')
.command('lint', 'lint code')
.command('lint', 'lint code(**Deprecated**)')
.parse(process.argv);

0 comments on commit 8dafa6f

Please sign in to comment.