chore(windows): fix the build.dart task

This commit is contained in:
Marc Laval
2015-06-23 17:18:04 +02:00
parent 7e8a2b9cec
commit ecb2bd0cbe
3 changed files with 7 additions and 3 deletions

View File

@ -48,7 +48,7 @@ function replaceDartWithJsScripts(gulp, folder) {
function removeWebFolder(gulp, folder) {
var folders = [].slice.call(glob.sync(path.join(folder, 'web', '*')));
folders.forEach(function(subFolder) {
fs.renameSync(subFolder, subFolder.replace(path.sep + 'web' + path.sep, path.sep));
fs.renameSync(subFolder, subFolder.replace('/web/', '/'));
});
fs.rmdirSync(path.join(folder, 'web'));
return Q.resolve();