chore: move commit-lint to cli

This commit is contained in:
陈嘉涵
2019-08-22 14:01:53 +08:00
parent bcc6868c06
commit fc111cdfc7
6 changed files with 32 additions and 13 deletions
+5
View File
@@ -2,10 +2,15 @@
const commander = require('commander');
const changelog = require('./changelog');
const commitLint = require('./commit-lint');
commander
.command('changelog <dir>')
.option('--tag [tag]', 'Since tag')
.action(changelog);
commander
.command('commit-lint')
.action(commitLint);
commander.parse(process.argv);