/dev-cli

Primary LanguageJavaScriptMIT LicenseMIT

Build Status

Dev CLI

A stupid command-line tool to run scripts.

Install

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 $@"
  }
}

Usage

$ dev [options] <cmd>

Options

  -v, --version  output the version number
  -h, --help     output usage information

Contribute

Clone, run npm start. Work.

Tests

No tests yet. Yep, I'm a bad person.