typed-ember / glint

TypeScript powered tooling for Glimmer templates
https://typed-ember.gitbook.io/glint
MIT License
110 stars 51 forks source link

Option to not clear the screen when in watch mode? #597

Closed NullVoxPopuli closed 10 months ago

NullVoxPopuli commented 1 year ago

Over in the v2-addon blueprint, we're proposing changing compilation to use:

    "start": "concurrently 'npm:start:*'",
    "start:js": "rollup --config --watch --no-watch.clearScreen",
    "start:types": "glint --build --watch",

https://github.com/embroider-build/addon-blueprint/pull/136

But, it seems glint doesn't have a flag to disable the screen clearing? I see that this is the file where the option would be added: https://github.com/typed-ember/glint/blob/main/packages/core/src/cli/index.ts, but how does screen clearing work? https://github.com/search?q=repo%3Atyped-ember%2Fglint%20clear&type=code

dfreeman commented 1 year ago

how does screen clearing work

That's not something we're doing ourselves, it's TypeScript. They have a --preserveWatchOutput flag, though, and that may be something we can pass through to the compiler API—but some of their CLI flags don't have any public programmatic equivalent, so someone will have to do a bit of investigation there.

dfreeman commented 10 months ago

Fixed in #637