[mod] stub for output "frontend-typescript"

This commit is contained in:
Christian Fraß 2023-08-07 10:50:07 +02:00
parent 7e14087045
commit 5540bffe6d
3 changed files with 24 additions and 0 deletions

View file

@ -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(

View 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,
};

View file

@ -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 …"