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

Caching build #118

Open
ArtemMiller opened this issue Jan 17, 2022 · 1 comment
Open

Caching build #118

ArtemMiller opened this issue Jan 17, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@ArtemMiller
Copy link

webpack 5 has a file cache.
I wish mochapack would use it.

Now it turns out that the build server spends 160 seconds building, and the tests themselves run 5 seconds.

the next time, he collects everything again and spends + - the same amount of war. When, could collect only changed files

@ArtemMiller ArtemMiller added the enhancement New feature or request label Jan 17, 2022
@215699p
Copy link

215699p commented Mar 31, 2022

Adding my 2c.

We use vue-test-utils which uses mochapack under the hood.

In our CI environment, we run our unit tests which involves mochapack compiling our sources before the tests run - we see a similar balance between compile & test times as the comment above.

There's currently no way to cache these compiled sources between runs or even locally.

Ideally, we would like to be able to compile with one npm script (maybe a flag on mochapack?), and test with another - this would allow us to cache the output of the compilation in a docker layer, greatly speeding up our CI & local development!

Thanks!

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

No branches or pull requests

2 participants