Skip to content

Generate TypeScript or JavaScript source code #410

Closed
@angularsen

Description

I think it would be awesome to reuse the code generator scripts to generate TypeScript and/or JavaScript code and get that published on NPM. I don't currently have a need for this myself and haven't looked into what already exists, but I imagine we have an opportunity to contribute something valuable here.

As a start, someone should figure out the structure of the generated code and what makes sense in those languages, and draft up a proposal in bullet form.

They key features are listed on the README front page. Static typing is obviously a win for TypeScript and other typed languages. Quantity representations (value+unit) and unit conversions seems obvious.
Quantity and unit parsing should be useful. The WPF sample app probably best resembles how this would be used in front-end web development.

Difficulty hard as it requires drafting up the architecture for an entirely new code base. You probably also need experience with modern front-end build tools like webpack and publishing proper packages to NPM, as well as figure out how our current code base and features can best be translated to a new language. Finally you need to modify our existing code generator scripts to output entirely new code.

Hard - but fun! :-)

Related: #409

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions