-
Notifications
You must be signed in to change notification settings - Fork 506
Closed
Labels
Description
From discussion in #1453
Npm-based formatters require an npm install call to prepare running the npm process for formatting.
It would be nice if we could speedup that part (or alltogether prevent it, if it is not needed).
Some ideas:
- Store the
node_modules-directory andpackage.jsonsomewhere in build-folder and copy/link those on later calls. - Similar, but more longevity: Store these folders/files somewhere in
$HOME/.cache/spotless/npmand reuse/copy/link them from there? - Gradle-specific: Leverage gradle's build-cache by creating a gradle task that generates the
package.jsonandnode_modulesdir as (cachable) output. A second/third run would then just receive these files/folders from the build cache?