Skip to content

Commit

Permalink
Ajuste na geração do pacote para distribuição
Browse files Browse the repository at this point in the history
  • Loading branch information
brodao2 committed Dec 19, 2023
1 parent 0575003 commit 2fa76f0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
30 changes: 15 additions & 15 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ const internalCompileTask = function () {
};

const internalCompileWebpack = function () {
return run('npm run compile:views').exec();
return run('npm run compile:views-production').exec();
};

//A opção NODE_ENV=production fara com que os fontes gerados sejam "minificados" e nao incluirá os "sourcemaps".
//A opção NODE_ENV=production fara com que os fontes gerados sejam "minificados" e não incluirá os "sourcemaps".
//Para desenvolvimento e debug, talvez seja melhor usar a opção comentada abaixo.
const internalCompileEsBuildProd = function () {
return run("cross-env NODE_ENV=production node esbuild.js").exec();
Expand All @@ -77,18 +77,18 @@ const doCompile = function (buildNls) {
.src()
.pipe(sourcemaps.init())
.pipe(tsProject());
//.pipe(buildNls ? nls.rewriteLocalizeCalls() : es.through())
// .pipe(
// buildNls
// ? nls.createAdditionalLanguageFiles(languages, "i18n", "out")
// : es.through()
// )
// .pipe(
// buildNls
// ? nls.bundleMetaDataFiles("ms-vscode.tds-vscode", "out")
// : es.through()
// )
//.pipe(buildNls ? nls.bundleLanguageFiles() : es.through());
//.pipe(buildNls ? nls.rewriteLocalizeCalls() : es.through())
// .pipe(
// buildNls
// ? nls.createAdditionalLanguageFiles(languages, "i18n", "out")
// : es.through()
// )
// .pipe(
// buildNls
// ? nls.bundleMetaDataFiles("ms-vscode.tds-vscode", "out")
// : es.through()
// )
//.pipe(buildNls ? nls.bundleLanguageFiles() : es.through());

if (inlineMap && inlineSource) {
r = r.pipe(sourcemaps.write());
Expand Down Expand Up @@ -120,7 +120,7 @@ const vscePackageTask = function () {
};

const vscePackagePrereleaseTask = function () {
return vsce.createVSIX({'preRelease':true});
return vsce.createVSIX({ 'preRelease': true });
};

gulp.task("publish", gulp.series(buildTask, vscePublishTask));
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"compile:parse_4gl": "pegjs -o ./src/parser/4gl-parser.js ./syntaxes/4gl.pegjs",
"compile:extension": "tsc -p ./src",
"compile:views": "webpack --mode development",
"compile:views-production": "webpack --mode production",
"compile:esbuild": "node ./esbuild.js",
"compile-test": "tsc -p ./test",
"--LINT--": "",
Expand Down

0 comments on commit 2fa76f0

Please sign in to comment.