Skip to content
Snippets Groups Projects
Commit f4182045 authored by Andreas Fernandez's avatar Andreas Fernandez Committed by Daniel Goerz
Browse files

[TASK] Improve consecutive build performance

To improve the consecutive build experience, several caches now kick in
to only lint and compile files that are necessary.

Following changes are done in this patch:

- added cache for eslint
- build TypeScript incremental
- don't mangle TypeScript twice in a full build

To be able to utilize the `--incremental` feature of TypeScript,
generated files are not removed anymore before a build, since TypeScript
needs the previously compiled files for comparision.

The `tsclean` grunt task has been renamed to `clear-build` and is now
executed right before any *full* build.

Side note: on the patch authors machine, the command `grunt scripts`
went from ~30 seconds to ~8 seconds after second invokation.

Resolves: #90187
Releases: master
Change-Id: I2a6cc204aa059411b4d0b26e2e153ff944d190ad
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63019


Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarRichard Haeser <richard@maxserv.com>
Tested-by: default avatarDaniel Goerz <daniel.goerz@posteo.de>
Reviewed-by: default avatarRichard Haeser <richard@maxserv.com>
Reviewed-by: default avatarDaniel Goerz <daniel.goerz@posteo.de>
parent c815bf3e
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment