★ wanayoo — archive 1999 https://github.com/microsoft/vscode-java-dependency/blob/master/gulpfile.jsNouvelle recherche | Portail wanayoo
Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
43 lines (33 sloc) 990 Bytes
'use strict';
const gulp = require('gulp');
const gulp_tslint = require('gulp-tslint');
const cp = require('child_process');
const server_dir = './jdtls.ext';
gulp.task('tslint', () => {
return gulp.src(['**/*.ts', '!**/*.d.ts', '!node_modules/**'])
.pipe(gulp_tslint())
.pipe(gulp_tslint.report());
});
gulp.task('build_server', () => {
cp.execSync(mvnw()+ ' clean package', {cwd:server_dir, stdio:[0,1,2]} );
return gulp.src([
server_dir + '/com.microsoft.jdtls.ext.core/target/com.microsoft.jdtls.ext.core*.jar',
])
.pipe(gulp.dest('./server'))
});
gulp.task('checkstyle', (cb) => {
cp.execSync(mvnw()+ ' checkstyle:check', {cwd:server_dir, stdio:[0,1,2]} );
cb();
});
function isWin() {
return /^win/.test(process.platform);
}
function isMac() {
return /^darwin/.test(process.platform);
}
function isLinux() {
return /^linux/.test(process.platform);
}
function mvnw() {
return isWin()?"mvnw.cmd":"./mvnw";
}
You can’t perform that action at this time.