tasks/publish.js
function removeExisting ()
{
    if (fs.existsSync("web/assets"))
    {
        var stat = fs.lstatSync("web/assets");

        if (stat.isFile() || stat.isSymbolicLink())
        {
            fs.unlinkSync("web/assets");
        }
        else
        {
            wrench.rmdirSyncRecursive("web/assets");
        }
    }
}
function removeExisting ()
{
    if (fs.existsSync("web/assets"))
    {
        var stat = fs.lstatSync("web/assets");

        if (stat.isFile() || stat.isSymbolicLink())
        {
            fs.unlinkSync("web/assets");
        }
        else
        {
            wrench.rmdirSyncRecursive("web/assets");
        }
    }
}
function removeExisting ( ) { if ( fs . existsSync ( "web/assets" ) ) { var stat = fs . lstatSync ( "web/assets" ) ; if ( stat . isFile ( ) || stat . isSymbolicLink ( ) ) { fs . unlinkSync ( "web/assets" ) ; } else { wrench . rmdirSyncRecursive ( "web/assets" ) ; } } }
Removes the existing directory
Removes the existing directory