Compile any language from the command line
Note: This project is in early development, and versioning is a little different. Read this for more details.
Why should you care?
Based on a careful analysis of your location, the time of day, and the force with which you have been hitting keys on your keyboard, we have determined with 98% confidence that you might have been recently thinking, "Man, I really wish I could compile any js-based language via the command line just to quickly see the output". Well, you're in luck, that's pretty much exactly what accord cli will do for you.
Accord is a unified interface to a bunch of different compiled languages that you might be using as a part of your web stack. By ensuring that the interfaces are consistent, you can use any language that accord supports in the same way, without having to wade through pages of API docs to figure out how it's public API works. Most importantly, you can switch between two different languages with minimal pain. While accord is built for programmatic use, this project exposes a nice clean CLI interface so you can compile and watch from your command line. Whoo!
npm install accord-cli -g
...and make sure you also have whatever language(s) you want to compile installed globally as well. For example, if you were using jade, it would be:
$ npm install jade -g
To compile, just pass the filename with the
$ accord -c foo.jade
To compile to a specific output location, use the
$ accord -c foo.jade -o bar.html
To compile with options, just put in your options as flags as such:
$ accord -c foo.jade --name 'doge' --location 'nyc'
To watch a file, recompiling it any time it changes, use the
$ accord -w foo.jade
And if you want to compile multiple files with potentially different extensions like you would for a full web build, just use roots ya dumbo! For all usage options, just run