[mod] stub for output "frontend-typescript"
This commit is contained in:
parent
7e14087045
commit
5540bffe6d
|
|
@ -9,6 +9,7 @@ async function main(
|
|||
"database-sqlite": output_database_sqlite,
|
||||
"database-mysql": output_database_mysql,
|
||||
"backend-typescript": output_backend_typescript,
|
||||
"frontend-typescript": output_frontend_typescript,
|
||||
};
|
||||
|
||||
const arg_handler = new lib_plankton.args.class_handler(
|
||||
|
|
|
|||
22
source/outputs/frontend_typescript.ts
Normal file
22
source/outputs/frontend_typescript.ts
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
namespace _sindri.outputs.frontend.typescript
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
export function render(
|
||||
input_data
|
||||
) : string
|
||||
{
|
||||
return lib_plankton.string.coin(
|
||||
"const sindri_abstract = {{value}};",
|
||||
{
|
||||
"value": JSON.stringify(input_data),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
const output_frontend_typescript : type_output = {
|
||||
"render": _sindri.outputs.frontend.typescript.render,
|
||||
};
|
||||
|
|
@ -22,6 +22,7 @@ source/outputs/jsonschema.ts \
|
|||
source/outputs/database_sqlite.ts \
|
||||
source/outputs/database_mysql.ts \
|
||||
source/outputs/backend_typescript.ts \
|
||||
source/outputs/frontend_typescript.ts \
|
||||
source/conf.ts \
|
||||
source/main.ts
|
||||
@ ${cmd_log} "compiling …"
|
||||
|
|
|
|||
Loading…
Reference in a new issue