A fast, simple, and well-tested way to compile many languages with a unified interface.
Note: This project is in early development, and versioning is a little different. Read this for more details.
Why should you care?
While you can certainly find one-off adapters for each of these languages, wouldn't it be easier if they all had a consistent, unified, and well-tested interface that always supports all options, and the latest version of the language? And wouldn't it be nice to just have to install a single gulp plugin to handle all of them? If you answered yes to any of the above, that is why you should care.
Gulp-accord supports these languages at the moment. Below you can find a usually-up-to-date adapter list:
If there are other languages you would like for accord to support, please make your suggestions and pull requests to accord itself, not to this plugin.
npm install --save gulp-accord
Also make sure that you have the language you want to compile with accord installed. So for example, if you are using gulp to compile jade, you'd also run
npm install jade --save. Don't worry too much though, if you forget to do this, the plugin will kindly remind you.
Below is an example of basic usage. In this case, we would be using gulp-accord to compile some jade templates.
var accord = ;gulp;
As you can probably infer from this example, the accord plugin takes two arguments, the name of the language you are compiling, and the options you want to pass to it. The name should be a string, and the options are optional, but if present, should be an object. You can find more information about the available options for each language here.
If a language has support for source maps, this plugin will allow you to product them using gulp's standard sourcemaps tool. You can use it as specified in the docs, and gulp-accord will produce the sourcemaps for you automatically. For example, the task shown below would compile a stylus file and produce an external sourcemap:
var gulp =sourcemaps =accord = ;gulp;