-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[develop] fix(package): i18n, dependences
- Loading branch information
1 parent
17e46a0
commit bf6c033
Showing
31 changed files
with
225 additions
and
539 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
/out | ||
/node_modules | ||
node_modules | ||
.vscode-test/ | ||
*.vsix | ||
*.code-workspace | ||
*.lock | ||
*.log | ||
src/constants.json | ||
coverage/ | ||
package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
const gulp = require('gulp'); | ||
|
||
const ts = require('gulp-typescript'); | ||
const typescript = require('typescript'); | ||
const sourcemaps = require('gulp-sourcemaps'); | ||
const del = require('del'); | ||
const es = require('event-stream'); | ||
const vsce = require('vsce'); | ||
const nls = require('vscode-nls-dev'); | ||
|
||
const tsProject = ts.createProject('./tsconfig.json', { typescript }); | ||
|
||
const inlineMap = true; | ||
const inlineSource = false; | ||
const outDest = 'out'; | ||
|
||
// If all VS Code langaues are support you can use nls.coreLanguages | ||
const languages = [{ folderName: 'pl', id: 'pl' }]; | ||
|
||
const cleanTask = function() { | ||
return del(['out/**', 'package.nls.*.json', 'i18n-sample*.vsix']); | ||
}; | ||
|
||
const internalCompileTask = function() { | ||
return doCompile(false); | ||
}; | ||
|
||
const internalNlsCompileTask = function() { | ||
return doCompile(true); | ||
}; | ||
|
||
const addI18nTask = function() { | ||
return gulp | ||
.src(['package.nls.json']) | ||
.pipe(nls.createAdditionalLanguageFiles(languages, 'i18n')) | ||
.pipe(gulp.dest('.')); | ||
}; | ||
|
||
const buildTask = gulp.series(cleanTask, internalNlsCompileTask, addI18nTask); | ||
|
||
const doCompile = function(buildNls) { | ||
var r = tsProject | ||
.src() | ||
.pipe(sourcemaps.init()) | ||
.pipe(tsProject()) | ||
.js.pipe(buildNls ? nls.rewriteLocalizeCalls() : es.through()) | ||
.pipe( | ||
buildNls | ||
? nls.createAdditionalLanguageFiles(languages, 'i18n', 'out') | ||
: es.through() | ||
); | ||
|
||
if (inlineMap && inlineSource) { | ||
r = r.pipe(sourcemaps.write()); | ||
} else { | ||
r = r.pipe( | ||
sourcemaps.write('../out', { | ||
// no inlined source | ||
includeContent: inlineSource, | ||
// Return relative source map root directories per file. | ||
sourceRoot: '../src' | ||
}) | ||
); | ||
} | ||
|
||
return r.pipe(gulp.dest(outDest)); | ||
}; | ||
|
||
const vscePublishTask = function() { | ||
return vsce.publish(); | ||
}; | ||
|
||
const vscePackageTask = function() { | ||
return vsce.createVSIX(); | ||
}; | ||
|
||
gulp.task('default', buildTask); | ||
|
||
gulp.task('clean', cleanTask); | ||
|
||
gulp.task('compile', gulp.series(cleanTask, internalCompileTask)); | ||
|
||
gulp.task('build', buildTask); | ||
|
||
gulp.task('publish', gulp.series(buildTask, vscePublishTask)); | ||
|
||
gulp.task('package', gulp.series(buildTask, vscePackageTask)); |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
i18n/pl/out/commands/workspace/switchWorkspaceInNewWindow.i18n.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"noWorkspacesFound.text": "No workspaces found" | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
{ | ||
"configuration.title": "vscode-workspace-manager configuration", | ||
"configuration.paths": "Paths of directories when `.code-workspace` files can be saved and then read from", | ||
"configuration.title": "Workspace Manager", | ||
"configuration.includeGlobPattern": "Paths of directories when `.code-workspace` files can be saved and then read from", | ||
"configuration.excludeGlobPattern": "Paths of directories when `.code-workspace` files can be saved and then read from", | ||
"configuration.codeExecutable": "Path to the executable file for VS Code", | ||
"configuration.codeInsidersExecutable": "Path to the executable file for VS Code Insiders", | ||
"configuration.showInActivityBar": "Whether or not to show the activity bar tree view container", | ||
"configuration.showInExplorer": "Whether or not to show the list of workspaces in the explorer tree view container", | ||
"command.refreshTreeData.title": "Workspace Manager: Odśwież Obszar Roboczy", | ||
"command.cacheWorkspace.title": "Workspace Manager: Odśwież Pamięć Podręczną Obszaru Roboczego", | ||
"command.saveWorkspace.title": "Workspace Manager: Zapisz Obszar Roboczy", | ||
"command.switchWorkspace.title": "Workspace Manager: Przełącz Obszar Roboczy", | ||
"command.switchWorkspaceInNewWindow.title": "Workspace Manager: Przełącz Obszar Roboczy w Nowym Oknie", | ||
"command.deleteWorkspace.title": "Workspace Manager: Usuń Obszar Roboczy", | ||
"command.reloadWorkspaces.title": "Workspace Manager: Odśwież Obszary Robocze", | ||
"command.closeWorkspace.title": "Workspace Manager: Zamknij Obszar Roboczy", | ||
"viewsContainers.activitybar.title": "Workspace Manager", | ||
"views.vscodeWorkspaceManagerViewContainer.title": "Obszary Robocze", | ||
"views.workspaceManager.title": "Obszary Robocze", | ||
"views.explorer.title": "Obszary Robocze" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.