Add coffee-script-precompiler to your dependencies in kanso.json.
"dependencies": {
...
"coffee-script-precompiler": null
}
Add a coffee-script field to kanso.json with one or both of the following: a list of folders to search for coffeescript modules and a list of folders to search for coffeescript attachments.
"coffee-script": {
"modules": ["lib", "tests"],
"attachments": ["js"]
},Run kanso intall from your terminal to install dependencies.
When you kanso push:
- All coffeescript modules listed in
coffee-script.moduleswill be compiled to javascript and uploaded as usual. - All coffeescript files in
attachementsdirectories will be uploaded as attachments at the corrosponding path with a.jsextension. So/lib/js/main.coffeewill be uploaded to/lib/js/main.js.