But Sails also supports using CoffeeScript to write your custom app code (like actions and models). You can enable this support in three steps:
npm install coffee-script --savein your app folder.
node app.jsinstead of
If you want to use CoffeeScript to write your controllers, models or config files, just follow these steps:
npm install --save-dev sails-generate-controller-coffee sails-generate-model-coffee
--coffeewhen using one of the supported generators from the command-line:
sails generate api <foo> --coffee # Generate api/models/Foo.coffee and api/controllers/FooController.coffee sails generate model <foo> --coffee # Generate api/models/Foo.coffee sails generate controller <foo> --coffee # Generate api/controllers/FooController.coffee