Can this run as part of ember build
?
#522
Replies: 1 comment 1 reply
-
Hey @tansongyang – good question! We haven't expressly documented this anywhere, I think, so this is a good spot for it (and also I've converted this to a “Discussion”): the answer is no, and there is actually a forthcoming RFC to move away from injecting TS errors into There are a few additional reasons (besides “this is how the rest of the ecosystem tends to do it”) that we are moving that way:
Net, we will not be supporting direct integration with Bonus: We know this is mildly less convenient than just having a single command to run. For the developers at LinkedIn, we are using #!/bin/sh
NAME=ember-app
tmux new-session -s $NAME -d
tmux set-option -g mouse on
tmux split-window -h
# running yarn ts:watch here breaks cause of yarn recursion or something
tmux send-keys -t $NAME "yarn glint:watch" C-m
tmux last-pane
tmux send-keys -t $NAME "ember serve" C-m
if [ "$TERM_PROGRAM" = "iTerm.app" ]
then
tmux -CC attach -t $NAME
else
tmux attach -t $NAME
fi One big upside to this: if there are other things which should be part of your development experience—e.g. generating type definitions for the API or for CSS—those can similarly be their own scripts, with no need for them to be aware of some host build process. |
Beta Was this translation helpful? Give feedback.
-
Hello, and thanks for the great work on this!
We have enabled Glint by default in our project, and it's super helpful. However, the one inconvenient thing about it right now is that we have to run Glint manually to type check. It doesn't "just happen" as part of
ember build
,ember serve
, etc., the way TS does.Is this already documented somewhere, or is it on the roadmap? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions