An open API service indexing awesome lists of open source software.

https://github.com/betree/dev-commander

🦍 Always use the same language-agnostic commands to develop accross your projects.
https://github.com/betree/dev-commander

bash bash-alias bash-script developer-tools

Last synced: 3 months ago
JSON representation

🦍 Always use the same language-agnostic commands to develop accross your projects.

Awesome Lists containing this project

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

```bash
# 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.