Skip to content

The lang option doesn't seem correct, maybe it should be project type? #23

@rsdoiel

Description

@rsdoiel

The types of files generated are impacted by both the language of implementation and the deployment context. Example JavaScript might be a target but how you install the package will very depending on if you're targeting browser only, Deno only or the browser and Deno.

I can also see CMTools being used for documentation projects like a breamer presentation rendered with Pandoc. The --lang option doesn't seem a good fit there.

As the number of generated files increases the transform.ts module is going to get long. Maybe transform.ts holds the defaults then there is additional modules for project type, e.g. transform_jsbrowser.ts, transform_pandoc.ts.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions