rename gulp tasks
parent
b5e2d0a6bc
commit
1d106e5afe
|
@ -585,18 +585,15 @@ gulp.task('generate-vscode-configuration', () => {
|
|||
});
|
||||
|
||||
//#region Built-In Extensions
|
||||
gulp.task('clean-builtInExtensions', util.rimraf('.build/builtInExtensions'));
|
||||
|
||||
gulp.task('builtInExtensions', ['clean-builtInExtensions'], function() {
|
||||
gulp.task('clean-builtin-extensions', util.rimraf('.build/builtInExtensions'));
|
||||
gulp.task('download-builtin-extensions', ['clean-builtin-extensions'], function () {
|
||||
const marketplaceExtensions = es.merge(...builtInExtensions.map(extension => {
|
||||
return ext.fromMarketplace(extension.name, extension.version)
|
||||
.pipe(rename(p => p.dirname = `${extension.name}/${p.dirname}`));
|
||||
}));
|
||||
|
||||
return (
|
||||
marketplaceExtensions
|
||||
return marketplaceExtensions
|
||||
.pipe(util.setExecutableBit(['**/*.sh']))
|
||||
.pipe(vfs.dest('.build/builtInExtensions'))
|
||||
);
|
||||
.pipe(vfs.dest('.build/builtInExtensions'));
|
||||
});
|
||||
//#endregion
|
||||
|
|
|
@ -19,7 +19,7 @@ if %errorlevel% neq 0 node .\node_modules\gulp\bin\gulp.js electron
|
|||
|
||||
:: Get built-in extensions
|
||||
node build\lib\builtInExtensions.js
|
||||
if %errorlevel% neq 0 node .\node_modules\gulp\bin\gulp.js builtInExtensions
|
||||
if %errorlevel% neq 0 node .\node_modules\gulp\bin\gulp.js download-builtin-extensions
|
||||
|
||||
:: Build
|
||||
if not exist out node .\node_modules\gulp\bin\gulp.js compile
|
||||
|
|
|
@ -25,7 +25,7 @@ function code() {
|
|||
node build/lib/electron.js || ./node_modules/.bin/gulp electron
|
||||
|
||||
# Get built-in extensions
|
||||
node build/lib/builtInExtensions.js || ./node_modules/.bin/gulp builtInExtensions
|
||||
node build/lib/builtInExtensions.js || ./node_modules/.bin/gulp download-builtin-extensions
|
||||
|
||||
# Build
|
||||
test -d out || ./node_modules/.bin/gulp compile
|
||||
|
|
Loading…
Reference in New Issue