mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2025-07-12 22:03:29 +02:00
add tunnel plugin package
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
AntOSDK: development API for AntOS based applications/projects
|
||||
|
||||
## Change logs
|
||||
- 0.0.12: TS worker now allows user specific compile options (defined un build file)
|
||||
- 0.0.11: Update AntOS API v1.2.1
|
||||
- 0.0.10: fix binary readfile bug
|
||||
- 0.0.9: Fix locale gen bug
|
||||
|
@ -89,11 +89,21 @@ class TSJob extends AntOSDKBaseJob {
|
||||
useCaseSensitiveFileNames: () => true,
|
||||
writeFile: (path, data) => js_code = `${js_code}\n${data}`
|
||||
};
|
||||
const program = ts.createProgram(files, {
|
||||
const compile_options = {
|
||||
"target": "es6",
|
||||
"skipLibCheck": true,
|
||||
"downlevelIteration": true
|
||||
}, host);
|
||||
};
|
||||
// Allow user override compile options
|
||||
if(this.job.data.options)
|
||||
{
|
||||
for(let k in this.job.data.options)
|
||||
{
|
||||
compile_options[k] = this.job.data.options[k];
|
||||
}
|
||||
}
|
||||
console.log("TS compile options", compile_options);
|
||||
const program = ts.createProgram(files,compile_options , host);
|
||||
const result = program.emit();
|
||||
const diagnostics = result.diagnostics.concat((ts.getPreEmitDiagnostics(program)));
|
||||
const errors = [];
|
||||
|
@ -7,7 +7,7 @@
|
||||
"author": "Xuan Sang LE",
|
||||
"email": "mrsang@iohub.dev"
|
||||
},
|
||||
"version": "0.0.11-a",
|
||||
"version": "0.0.12-a",
|
||||
"category": "Development",
|
||||
"iconclass": "fa fa-cog",
|
||||
"mimes": [
|
||||
|
Reference in New Issue
Block a user