/**
 * Define clean tasks.
 * @function ci.tasks.cleanTasks
 * @param {object} config - CI configurations.
 * @param {object} helpers - CI helpers
 * @returns {object} - clean tasks.
 */
var helpers = require('../helpers'),
    t = helpers.taskDefineHelper;


/**
 * Clean dead sym links.
 * @name ci.tasks.cleanDeadSymlinks
 * @type {object}
 */
exports.cleanDeadSymlinks = t.cleanDeadSymlinks({
    basedir: '.'
});

/**
 * Clean working directories.
 * @name ci.tasks.cleanWorkDirectory
 * @type {object}
 */
exports.cleanWorkDirectory = t.cleanDirectory({
    dir: ['test/work', 'work']
});

/**
 * Clean files.
 * @name ci.tasks.clean
 * @type {string[]}
 */
exports.clean = [
    'cleanDeadSymlinks',
    'cleanWorkDirectory'
];