Unify task commands across all languages and frameworks
Want to see pretty graphs? Log in now!
npm install do-it
|16||downloads in the last month|
|Version||0.1.2 last updated 7 months ago|
|Keywords||shell, command, alias|
Alias commands across all languages and frameworks
Do you wish that a
stageit command would stage your Rails app to Heroku and would also stage your Meteor app when you're in that folder?
$ cd ~/projects/my_rails_app $ shipit … deploying to engineyard $ cd ~/projects/my_meteor_app $ shipit … uploading to ec2 # boom
If you don't have NodeJs installed, get that here
npm install doit
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!
watchit: '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'
From your project root, run
doit and pass in a key from your
$ 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
.bashrc and add in as many aliases as you'd like.
alias shipit='doit shipit' alias deployit='doit deployit' alias yourfavname='doit keyname'