feat(setup): setup package.json

This commit is contained in:
Stephan Bönnemann
2015-02-08 17:03:36 +01:00
parent 44eb633458
commit fee6d6baba
3 changed files with 52 additions and 0 deletions
+6
View File
@@ -69,6 +69,12 @@ if (~argv._.indexOf('post')) {
}))
}
if (~argv._.indexOf('setup')) {
require('../src/setup')()
console.log('"package.json" is set up properly. Now configure your CI server.')
console.log('https://github.com/boennemann/semantic-release#ci-server')
}
function isAbbrev (argv, command) {
return argv._.some(Object.prototype.hasOwnProperty.bind(abbrev(command)))
}