Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
NullVoxPopuli opened this issue Jul 4, 2023 · 2 comments
Closed

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

NullVoxPopuli opened this issue Jul 4, 2023 · 2 comments

Comments

@NullVoxPopuli
Copy link
Contributor

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",

embroider-build/addon-blueprint#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
Copy link
Member

dfreeman commented Jul 4, 2023

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
Copy link
Member

Fixed in #637

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants