|
|
@ -15,7 +15,7 @@ var rimraf = require('rimraf');
|
|
|
|
var es = require('event-stream');
|
|
|
|
var es = require('event-stream');
|
|
|
|
|
|
|
|
|
|
|
|
gulp.task('clean-release', function(cb) { rimraf('release', { maxBusyTries: 1 }, cb); });
|
|
|
|
gulp.task('clean-release', function(cb) { rimraf('release', { maxBusyTries: 1 }, cb); });
|
|
|
|
gulp.task('release', ['clean-release','compile'], function() {
|
|
|
|
gulp.task('release', ['clean-release'], function() {
|
|
|
|
|
|
|
|
|
|
|
|
var sha1 = getGitVersion(__dirname);
|
|
|
|
var sha1 = getGitVersion(__dirname);
|
|
|
|
var semver = require('./package.json').version;
|
|
|
|
var semver = require('./package.json').version;
|
|
|
@ -33,56 +33,56 @@ gulp.task('release', ['clean-release','compile'], function() {
|
|
|
|
|
|
|
|
|
|
|
|
function bundleOne(moduleId, exclude) {
|
|
|
|
function bundleOne(moduleId, exclude) {
|
|
|
|
return rjs({
|
|
|
|
return rjs({
|
|
|
|
baseUrl: '/out/',
|
|
|
|
baseUrl: '/out/amd/',
|
|
|
|
name: 'vs/basic-languages/' + moduleId,
|
|
|
|
name: 'vs/basic-languages/' + moduleId,
|
|
|
|
out: moduleId + '.js',
|
|
|
|
out: moduleId + '.js',
|
|
|
|
exclude: exclude,
|
|
|
|
exclude: exclude,
|
|
|
|
paths: {
|
|
|
|
paths: {
|
|
|
|
'vs/basic-languages': __dirname + '/out'
|
|
|
|
'vs/basic-languages': __dirname + '/out/amd'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return merge(
|
|
|
|
return merge(
|
|
|
|
bundleOne('src/monaco.contribution'),
|
|
|
|
bundleOne('monaco.contribution'),
|
|
|
|
bundleOne('src/bat'),
|
|
|
|
bundleOne('bat'),
|
|
|
|
bundleOne('src/css'),
|
|
|
|
bundleOne('css'),
|
|
|
|
bundleOne('src/coffee'),
|
|
|
|
bundleOne('coffee'),
|
|
|
|
bundleOne('src/cpp'),
|
|
|
|
bundleOne('cpp'),
|
|
|
|
bundleOne('src/csharp'),
|
|
|
|
bundleOne('csharp'),
|
|
|
|
bundleOne('src/dockerfile'),
|
|
|
|
bundleOne('dockerfile'),
|
|
|
|
bundleOne('src/fsharp'),
|
|
|
|
bundleOne('fsharp'),
|
|
|
|
bundleOne('src/go'),
|
|
|
|
bundleOne('go'),
|
|
|
|
bundleOne('src/handlebars'),
|
|
|
|
bundleOne('handlebars'),
|
|
|
|
bundleOne('src/html'),
|
|
|
|
bundleOne('html'),
|
|
|
|
bundleOne('src/ini'),
|
|
|
|
bundleOne('ini'),
|
|
|
|
bundleOne('src/pug'),
|
|
|
|
bundleOne('pug'),
|
|
|
|
bundleOne('src/java'),
|
|
|
|
bundleOne('java'),
|
|
|
|
bundleOne('src/less'),
|
|
|
|
bundleOne('less'),
|
|
|
|
bundleOne('src/lua'),
|
|
|
|
bundleOne('lua'),
|
|
|
|
bundleOne('src/markdown'),
|
|
|
|
bundleOne('markdown'),
|
|
|
|
bundleOne('src/msdax'),
|
|
|
|
bundleOne('msdax'),
|
|
|
|
bundleOne('src/objective-c'),
|
|
|
|
bundleOne('objective-c'),
|
|
|
|
bundleOne('src/php'),
|
|
|
|
bundleOne('php'),
|
|
|
|
bundleOne('src/powershell'),
|
|
|
|
bundleOne('powershell'),
|
|
|
|
bundleOne('src/postiats'),
|
|
|
|
bundleOne('postiats'),
|
|
|
|
bundleOne('src/python'),
|
|
|
|
bundleOne('python'),
|
|
|
|
bundleOne('src/r'),
|
|
|
|
bundleOne('r'),
|
|
|
|
bundleOne('src/razor'),
|
|
|
|
bundleOne('razor'),
|
|
|
|
bundleOne('src/ruby'),
|
|
|
|
bundleOne('ruby'),
|
|
|
|
bundleOne('src/scss'),
|
|
|
|
bundleOne('scss'),
|
|
|
|
bundleOne('src/sql'),
|
|
|
|
bundleOne('sql'),
|
|
|
|
bundleOne('src/swift'),
|
|
|
|
bundleOne('swift'),
|
|
|
|
bundleOne('src/vb'),
|
|
|
|
bundleOne('vb'),
|
|
|
|
bundleOne('src/xml'),
|
|
|
|
bundleOne('xml'),
|
|
|
|
bundleOne('src/yaml'),
|
|
|
|
bundleOne('yaml'),
|
|
|
|
bundleOne('src/solidity'),
|
|
|
|
bundleOne('solidity'),
|
|
|
|
bundleOne('src/sb'),
|
|
|
|
bundleOne('sb'),
|
|
|
|
bundleOne('src/mysql'),
|
|
|
|
bundleOne('mysql'),
|
|
|
|
bundleOne('src/redshift'),
|
|
|
|
bundleOne('redshift'),
|
|
|
|
bundleOne('src/pgsql'),
|
|
|
|
bundleOne('pgsql'),
|
|
|
|
bundleOne('src/redis'),
|
|
|
|
bundleOne('redis'),
|
|
|
|
bundleOne('src/csp')
|
|
|
|
bundleOne('csp')
|
|
|
|
)
|
|
|
|
)
|
|
|
|
.pipe(uglify({
|
|
|
|
.pipe(uglify({
|
|
|
|
output: {
|
|
|
|
output: {
|
|
|
@ -96,25 +96,7 @@ gulp.task('release', ['clean-release','compile'], function() {
|
|
|
|
);
|
|
|
|
);
|
|
|
|
this.emit('data', data);
|
|
|
|
this.emit('data', data);
|
|
|
|
}))
|
|
|
|
}))
|
|
|
|
.pipe(gulp.dest('./release/'));
|
|
|
|
.pipe(gulp.dest('./release/min/'));
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var compilation = tsb.create(assign({ verbose: true }, require('./tsconfig.json').compilerOptions));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var tsSources = require('./tsconfig.json').include.concat(require('./tsconfig.json').files);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function compileTask() {
|
|
|
|
|
|
|
|
return merge(
|
|
|
|
|
|
|
|
gulp.src(tsSources, { base: '.' }).pipe(compilation())
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
.pipe(gulp.dest('out'));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
gulp.task('clean-out', function(cb) { rimraf('out', { maxBusyTries: 1 }, cb); });
|
|
|
|
|
|
|
|
gulp.task('compile', ['clean-out'], compileTask);
|
|
|
|
|
|
|
|
gulp.task('compile-without-clean', compileTask);
|
|
|
|
|
|
|
|
gulp.task('watch', ['compile'], function() {
|
|
|
|
|
|
|
|
gulp.watch(tsSources, ['compile-without-clean']);
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
function getGitVersion(repo) {
|
|
|
|
function getGitVersion(repo) {
|
|
|
|