-
Notifications
You must be signed in to change notification settings - Fork 99
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
perf: don't use middleware if has build #1148
Conversation
I think this could be a nice perf improvement. I've experienced the same and agree that it doesn't make sense to run the type-checking middleware when you're just using an existing build. |
FWIW, the ember-cli PR should land into the [email protected] cycle today/tomorrow. |
Thanks @rwjblue I'll update this PR, add a test and remove the |
f15e30a
to
63d2691
Compare
I've updated the PR ready for review, removing the One of the required checks are failing |
Thank you! One of us will try to get to this in the next couple days! |
`ember serve` and `ember test` has a `path` flag to specify an existing ember build to use, without rebuilding. `ember-cli-typescript` will add typechecking middleware regardless of ember using an existing build, the typechecking middleware is not required. This can slow down the initial request to express server significantly. For instance one of my projects spends 49 secs for initial typecheck on first request. ```sh $ DEBUG=*:* ember s --path dist ... – Serving on http://localhost:4200/admin/ ... ember-cli-typescript:typecheck-worker Typecheck complete (0 diagnostics) +49s ... ```
63d2691
to
df02218
Compare
Rebased on master |
@chriskrycho is there anything I can do to help get this over line and merged? Is the testing approach good or is there a better way of doing it? |
test: suggested updates for testing if typecheck middleware is installed
Released in 4.0.0-rc.1 |
This PR depends on a PR formergedember-cli
being merged first, see ember-cli/ember-cli#9205ember serve
andember test
has apath
flag to specifyan existing ember build to use, without rebuilding.
ember-cli-typescript
will add typechecking middleware regardless of ember using an existing
build, the typechecking middleware is not required. This can slow
down the initial request to express server significantly.
For instance one project spends 49 secs for initial typecheck on first
request.