A stupid command-line tool to run scripts.
npm install -g @christiannaths/dev-cli
Pop a .devrc
file in your project directory and go to town. The "scripts" key in this file will be merged with that if package.json
, should that file (and key) also exist.
{
"scripts": {
"start": "~/.hyper_plugins/node_modules/hyperlayout/bin/hyperlayout",
"postico": "open postgres://postgres:postgres@$(docker-compose port pg 5432)/my_cool_database",
"exec": "docker-compose exec rails bundle exec $@"
}
}
$ dev [options] <cmd>
-v, --version output the version number
-h, --help output usage information
Clone, run npm start
. Work.
No tests yet. Yep, I'm a bad person.