mirror of
https://github.com/lxsang/antos-frontend.git
synced 2024-12-26 17:38:20 +01:00
update terser setting
This commit is contained in:
parent
096890c136
commit
b4fb5473e4
4
Makefile
4
Makefile
@ -69,9 +69,9 @@ lite: build_javascripts build_themes build_packages
|
|||||||
ts:
|
ts:
|
||||||
-rm -rf dist
|
-rm -rf dist
|
||||||
tsc -p tsconfig.json
|
tsc -p tsconfig.json
|
||||||
cat `find dist/core/ -name "*.d.ts"` > /tmp/antos.d.ts
|
cat `find dist/core/ -name "*.d.ts"` > d.ts/antos.d.ts
|
||||||
rm `find dist/ -name "*.d.ts"`
|
rm `find dist/ -name "*.d.ts"`
|
||||||
cat src/core.dts /tmp/antos.d.ts > /tmp/corelib.d.ts
|
cat d.ts/*.d.ts > /tmp/corelib.d.ts
|
||||||
-rm src/packages/CodePad/libs/corelib.d.ts.zip
|
-rm src/packages/CodePad/libs/corelib.d.ts.zip
|
||||||
zip -j src/packages/CodePad/libs/corelib.d.ts.zip /tmp/corelib.d.ts
|
zip -j src/packages/CodePad/libs/corelib.d.ts.zip /tmp/corelib.d.ts
|
||||||
|
|
||||||
|
10079
d.ts/antos.d.ts
vendored
Normal file
10079
d.ts/antos.d.ts
vendored
Normal file
File diff suppressed because it is too large
Load Diff
17722
src/core.dts → d.ts/core.d.ts
vendored
17722
src/core.dts → d.ts/core.d.ts
vendored
File diff suppressed because it is too large
Load Diff
33483
d.ts/jquery.d.ts
vendored
Normal file
33483
d.ts/jquery.d.ts
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@ -1086,26 +1086,22 @@ namespace OS {
|
|||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
const r = await this.b64(t);
|
const r = await this.b64(t);
|
||||||
try {
|
const result = await API.handle.write(
|
||||||
const result = await API.handle.write(
|
this.path,
|
||||||
this.path,
|
r as string
|
||||||
r as string
|
);
|
||||||
);
|
if (result.error) {
|
||||||
if (result.error) {
|
return reject(
|
||||||
return reject(
|
API.throwe(
|
||||||
API.throwe(
|
__(
|
||||||
__(
|
"{0}: {1}",
|
||||||
"{0}: {1}",
|
result.error,
|
||||||
result.error,
|
this.path
|
||||||
this.path
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
);
|
)
|
||||||
}
|
);
|
||||||
return resolve(result);
|
|
||||||
} catch (e_1) {
|
|
||||||
return reject(__e(e_1));
|
|
||||||
}
|
}
|
||||||
|
return resolve(result);
|
||||||
} catch (e_2) {
|
} catch (e_2) {
|
||||||
return reject(__e(e_2));
|
return reject(__e(e_2));
|
||||||
}
|
}
|
||||||
@ -1945,7 +1941,6 @@ namespace OS {
|
|||||||
* @return {*} {Promise<void>}
|
* @return {*} {Promise<void>}
|
||||||
*/
|
*/
|
||||||
export function mkar(src: string, dest: string): Promise<void> {
|
export function mkar(src: string, dest: string): Promise<void> {
|
||||||
console.log(src, dest);
|
|
||||||
return new Promise(async (resolve, reject) => {
|
return new Promise(async (resolve, reject) => {
|
||||||
try {
|
try {
|
||||||
await API.requires("os://scripts/jszip.min.js");
|
await API.requires("os://scripts/jszip.min.js");
|
||||||
|
@ -379,7 +379,7 @@ namespace OS {
|
|||||||
let code = await API.VFS.cat(meta.javascripts.map(v => `${meta.root}/${v}`), src);
|
let code = await API.VFS.cat(meta.javascripts.map(v => `${meta.root}/${v}`), src);
|
||||||
if (!debug) {
|
if (!debug) {
|
||||||
const options = {
|
const options = {
|
||||||
toplevel: true,
|
toplevel: false,
|
||||||
compress: {
|
compress: {
|
||||||
passes: 3,
|
passes: 3,
|
||||||
},
|
},
|
||||||
|
Binary file not shown.
@ -6,8 +6,7 @@
|
|||||||
"lib": [
|
"lib": [
|
||||||
"es6", "dom", "es2017"
|
"es6", "dom", "es2017"
|
||||||
],
|
],
|
||||||
"outDir": "dist",
|
"outDir": "dist"
|
||||||
"removeComments": true
|
|
||||||
},
|
},
|
||||||
"include": ["src/**/*.ts"]
|
"include": ["src/**/*.ts"]
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user