View our GitHub

Please visit sails-docs on GitHub to view documentation on your mobile device.

Edit Page

myApp/tasks/config/sync.js

/**
 * A grunt task to keep directories in sync. It is very similar to grunt-contrib-copy
 * but tries to copy only those files that has actually changed.
 *
 * ---------------------------------------------------------------
 *
 * Synchronize files from the `assets` folder to `.tmp/public`,
 * smashing anything that's already there.
 *
 * For usage docs see:
 *         https://github.com/tomusdrw/grunt-sync
 *
 */
module.exports = function(grunt) {

    grunt.config.set('sync', {
        dev: {
            files: [{
                cwd: './assets',
                src: ['**/*.!(coffee)'],
                dest: '.tmp/public'
            }]
        }
    });

    grunt.loadNpmTasks('grunt-sync');
};

Is something missing?

If you notice something we've missed or could be improved on, please follow this link and submit a pull request to the sails-docs repo. Once we merge it, the changes will be immediately reflected on the website.