0.1.2 • Published 12 years ago
do-it v0.1.2
Do It
Alias commands across all languages and frameworks
$ cd ~/projects/my_rails_app
$ shipit
… deploying to engineyard
$ cd ~/projects/my_meteor_app
$ shipit
… uploading to ec2
# boomInstall:
If you don't have NodeJs installed, get that here
npm install doitUsage:
Create a project file
DoIt launches shell commands with key value pairs that are looked up from your projects .doit file. Just drop in a .doit file, add the commands in YAML format, and don't repeat yourself again!
touch .doitwatchit: 'compass watch ./client/scss'
testit: 'mocha --compilers coffee:coffee-script -R spec ./test/'
stageit: 'meteor deploy staging-foo.meteor.com'
shipit: 'testit && git checkout master && jitsu deploy'Do It
From your project root, run doit and pass in a key from your .doit file.
$ doit watchit
>>> Compass is watching for changes. Press Ctrl-C to Stop.Shorten it up with your favorite shell alias (optional)
The first example was using an alias to shorten up doit shipit. Let's add one in below. Open your .zshrc or .bashrc and add in as many aliases as you'd like.
alias shipit='doit shipit'
alias deployit='doit deployit'
alias yourfavname='doit keyname'