Skip to content

[Feature Request] Schematics: Run local a schematic written in TypeScript directly (ts-node integration) #13858

Description

@lacolaco

🚀 Feature request

Command (mark with an x)

- [x] schematics

Description

Schematics runner can accept a JavsScript file as a factory of a schematic.
To create boilerplates in my app, it seems a good solution to create local schematics. But it is not easy to get ready.
Writing schematics without TypeScript's help is tough and unsafe. But schematics cannot use them. We have to do manually transpiling with tsc and executing the output JS. Very primitive and boring.

Describe the solution you'd like

If schematics runner can handle TypeScript files directly, developers are free from non-essencial jobs and the repository can keep clean.

I think ts-node/register can help it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: @angular-devkit/schematicsfeatureLabel used to distinguish feature request from other issuesfeature: insufficient votesLabel to add when the not a sufficient number of votes or comments from unique authors

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions