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)
# 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.shIf you have disabled short aliases, you can use these commands with dcd, like
in dcd dev or dcd install.
devRun the development server or the app binaryinstallInstall dependenciesbuildBuild or compile projectdbmigrateMigrate database
commitMake a git commitamendAmend your previous commit
Not yet. Maybe never.