Skip to content

Commit eebf638

Browse files
committed
Remove mixin-server task
1 parent f2c91e7 commit eebf638

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

build/gulpfile.reh.js

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -392,33 +392,3 @@ function packageTask(type, platform, arch, sourceFolderName, destinationFolderNa
392392
});
393393
});
394394
});
395-
396-
function mixinServer(watch) {
397-
const packageJSONPath = path.join(path.dirname(__dirname), 'package.json');
398-
function exec(cmdLine) {
399-
console.log(cmdLine);
400-
cp.execSync(cmdLine, { stdio: 'inherit' });
401-
}
402-
function checkout() {
403-
const packageJSON = JSON.parse(fs.readFileSync(packageJSONPath).toString());
404-
exec('git fetch distro');
405-
exec(`git checkout ${packageJSON['distro']} -- src/vs/server resources/server`);
406-
exec('git reset HEAD src/vs/server resources/server');
407-
}
408-
checkout();
409-
if (watch) {
410-
console.log('Enter watch mode (observing package.json)');
411-
const watcher = fs.watch(packageJSONPath);
412-
watcher.addListener('change', () => {
413-
try {
414-
checkout();
415-
} catch (e) {
416-
console.log(e);
417-
}
418-
});
419-
}
420-
return Promise.resolve();
421-
}
422-
423-
gulp.task(task.define('mixin-server', () => mixinServer(false)));
424-
gulp.task(task.define('mixin-server-watch', () => mixinServer(true)));

0 commit comments

Comments
 (0)