Skip to content

Commit

Permalink
[theia-core] removed webpack dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Kosiakov <anton.kosyakov@typefox.io>
  • Loading branch information
akosyakov committed Jun 29, 2017
1 parent 631ad5c commit b4e7bd1
Show file tree
Hide file tree
Showing 9 changed files with 335 additions and 2,098 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ lib
*.log
.idea
.metadata
jdt.ls-java-project
jdt.ls-java-project
download
22 changes: 20 additions & 2 deletions config/gulp/java-ls-tasks.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,33 @@
// @ts-check
const fs = require('fs');
const path = require('path');
const gulp = require('gulp');
const cp = require('child_process');
const decompress = require('gulp-decompress');
const download = require('gulp-download');
const serverDir = '../../../eclipse.jdt.ls';
const downloadDir = '../../download';
const extensionDir = '../../lib/java/node/server';
const archiveUri = "http://download.eclipse.org/jdtls/snapshots/jdt-language-server-latest.tar.gz"
const downloadPath = path.join(__dirname, downloadDir);
const archivePath = path.join(downloadPath, path.basename(archiveUri));

gulp.task('download_java_server', () => {
download("http://download.eclipse.org/jdtls/snapshots/jdt-language-server-latest.tar.gz")
function decompressArchive() {
gulp.src(archivePath)
.pipe(decompress())
.pipe(gulp.dest(extensionDir))
}

gulp.task('download_java_server', () => {
if (fs.existsSync(archivePath)) {
decompressArchive();
} else {
download(archiveUri)
.pipe(gulp.dest(downloadPath))
.on('end', () =>
decompressArchive()
);
}
});

gulp.task('build_java_server', () => {
Expand Down
51 changes: 24 additions & 27 deletions config/local-dependency-manager/npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions config/local-dependency-manager/src/package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export class Package {
const archivePath = this.packDependency(dependency);
if (archivePath) {
try {
this.npmSync('install', archivePath, '--no-shrinkwrap');
this.npmSync('install', archivePath);
this.installOriginalSources(dependency);
} finally {
fs.removeSync(archivePath);
Expand All @@ -200,7 +200,7 @@ export class Package {
}

uninstallDependency(dependency: Package): void {
this.npmSync('uninstall', dependency.name, '--no-shrinkwrap');
this.npmSync('uninstall', dependency.name);
}

cleanDependency(dependency: Package): void {
Expand Down
Loading

0 comments on commit b4e7bd1

Please sign in to comment.