Edit Page

tasks/register/default.js

This is the default Grunt tasklist that will be executed if you run grunt in the top level directory of your app. It is also called automatically when you start Sails in development mode using sails lift or node app.

Note that when lifting your app with a custom environment setting (i.e. sails.config.environment), Sails will look for a tasklist file with the same name and run that instead of this one.

Note that as a special case for compatibility/historial reasons, if your environment is "production" (i.e. because you lifted with NODE_ENV=production), and Sails cannot find a tasklist named production.js, it will attempt to run the prod.js tasklist as well before defaulting to default.js.

Want to see for yourself?

An example of this file can be found in our sample app repo, here.

Anatomy of a Sails App