~fancycade/nrg

ref: 5da413cfbc9b7e5559f7c1f3875f31165f887e1f nrg/README.md -rw-r--r-- 882 bytes
5da413cf — fancycade Add special command 'format' to run crystal tool format 1 year, 8 months ago

#nrg

Juice up your Crystal dev flow with a shot of nrg!!!

Simple script runner tool (like Make) for Crystal projects.

Make commands as keys in your shard.yml file.

Then execute them as commands with the nrg tool and feel that Crystal energy vibrating through you!

#Build

make dev

or

make prod

#Usage

Blog post

Install nrg onto your system.

sudo make install

Add keys in the script field in your project's shard.yml file.

script:
 dev:
   crystal build app.cr

Then run that command while in the project directory:

nrg dev

It simply executes system commands listed in the key.

Multiline commands work too. Make sure to add | at the end of the key name.

scripts:
 prod: |
   crystal build --release app.cr
   echo "Built prod"