Betree/dev-commander

๐Ÿฆ Always use the same language-agnostic commands to develop accross your projects.

โ˜… 2Forks 0ShellGitHub โ†—Compare
bashbash-aliasbash-scriptdeveloper-tools

README

๐Ÿฆ D3v c0mm4nd3r

Stop confusing your commands and using npm run in your Elixir projects. Always use the same language-agnostic commands to run your developement commands.

This script will auto-detect your project type based on files presence (package.json for npm, mix.exs for Elixir...).

Currently supported project types:

  • Elixir (mix)
  • NodeJS (npm)

Install

# Clone the project to your home folder
git clone https://github.com/Betree/dev-commander.git ~/.dev-commander

# At this to your `~/.bashrc`, `~/.zshrc` or wherether your shell config is
source ~/.dev-commander/init.sh

# If you're a weak person and want to disable short aliases to only use
# commander with the `dcd` command, you can use this instead
source ~/.dev-commander/init_without_aliases.sh

Use

If you have disabled short aliases, you can use these commands with dcd, like in dcd dev or dcd install.

Project-specifics commands

  • dev Run the development server or the app binary
  • install Install dependencies
  • build Build or compile project
  • dbmigrate Migrate database

Git shortcuts

  • commit Make a git commit
  • amend Amend your previous commit

Configuration

Not yet. Maybe never.

Contributors

Betree

Issues