Skip to content

Commit

Permalink
v0.0.24
Browse files Browse the repository at this point in the history
  • Loading branch information
vanvianen committed Jan 3, 2024
1 parent fcd3aef commit 64b97f2
Show file tree
Hide file tree
Showing 10 changed files with 51 additions and 42 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.23
0.0.24
7 changes: 1 addition & 6 deletions dist/js/config/terser.config.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,7 @@ declare const terserConfig: {
arrows: boolean;
};
mangle: {
properties: {
bare_returns: boolean;
html5_comments: boolean;
shebang: boolean;
spidermonkey: boolean;
};
properties: boolean;
};
format: {
comments: boolean;
Expand Down
9 changes: 1 addition & 8 deletions dist/js/config/terser.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,7 @@ const terserConfig = {
mangle: {
// mangle options
// Mangle names for obfuscation and size reduction
// properties: true, // Mangle property names
properties: {
// mangle property options
bare_returns: false, //support top level return statements
html5_comments: true, // (default true)
shebang: true, //(default true) -- support #!command as the first line
spidermonkey: false
}
properties: true
},
format: {
// format options (can also use `output` for backwards compatibility)
Expand Down
2 changes: 1 addition & 1 deletion dist/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pack.gl",
"version": "0.0.23",
"version": "0.0.24",
"description": "Package Builder.",
"keywords": [
"pack.gl",
Expand Down
16 changes: 8 additions & 8 deletions dist/ts/config/terser.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,14 @@ const terserConfig = {
mangle: {
// mangle options
// Mangle names for obfuscation and size reduction
// properties: true, // Mangle property names
properties: {
// mangle property options
bare_returns: false, //support top level return statements
html5_comments: true, // (default true)
shebang: true, //(default true) -- support #!command as the first line
spidermonkey: false, // (default false) -- accept a Spidermonkey (Mozilla) AST
}
properties: true, // Mangle property names
// properties: {
// // mangle property options
// // bare_returns: false, //support top level return statements
// html5_comments: true, // (default true)
// shebang: true, //(default true) -- support #!command as the first line
// spidermonkey: false, // (default false) -- accept a Spidermonkey (Mozilla) AST
// }
},
format: {
// format options (can also use `output` for backwards compatibility)
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "pack.gl",
"description": "Package Builder.",
"version": "0.0.23",
"version": "0.0.24",
"config": {
"version_short": "0.0"
},
Expand Down Expand Up @@ -95,7 +95,7 @@
"icon.gl": "^0.0.1",
"loop.gl": "^0.0.1",
"mini-css-extract-plugin": "^2.7.6",
"pack.gl": "^0.0.22",
"pack.gl": "^0.0.23",
"page.gl": "^0.0.1",
"postcss-loader": "^7.3.3",
"postcss-preset-env": "^9.1.2",
Expand Down
2 changes: 1 addition & 1 deletion script/js/index.js.map

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

23 changes: 22 additions & 1 deletion script/ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {
PackageCreator,
VersionWriter,
TypeScriptCompiler,
// JavaScriptMinifier,
JavaScriptMinifier,
StylizedLogger,
gl_installer,
readPackageJson,
Expand Down Expand Up @@ -128,6 +128,27 @@ async function main() {
await tsCompiler.compile(tsFiles, outputDir);
// console.log('TypeScript compilation completed.');

// Rename Ts
// --------------------------------------------------------------------

// await fileRenamer.renameFile(
// path.join(CONFIG.path.js_output, 'index.js'),
// path.join(CONFIG.path.js_output, `${packageConfig.name}.js`),
// )


// Minify JavaScript
// --------------------------------------------------------------------
// const jsMinifier = new JavaScriptMinifier();
// await jsMinifier.minifyFile(
// path.join(CONFIG.path.js_output, 'index.js'),
// path.join(CONFIG.path.js_output, `${packageConfig.name}.min.js`),
// )
// .then(() => console.log('JavaScript minification completed.'))
// .catch(console.error);





} catch (error) {
Expand Down
16 changes: 8 additions & 8 deletions src/ts/config/terser.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,14 @@ const terserConfig = {
mangle: {
// mangle options
// Mangle names for obfuscation and size reduction
// properties: true, // Mangle property names
properties: {
// mangle property options
bare_returns: false, //support top level return statements
html5_comments: true, // (default true)
shebang: true, //(default true) -- support #!command as the first line
spidermonkey: false, // (default false) -- accept a Spidermonkey (Mozilla) AST
}
properties: true, // Mangle property names
// properties: {
// // mangle property options
// // bare_returns: false, //support top level return statements
// html5_comments: true, // (default true)
// shebang: true, //(default true) -- support #!command as the first line
// spidermonkey: false, // (default false) -- accept a Spidermonkey (Mozilla) AST
// }
},
format: {
// format options (can also use `output` for backwards compatibility)
Expand Down

0 comments on commit 64b97f2

Please sign in to comment.