-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
What can be cached
setup-env- npm workspace folder (.npmrc, package-lock.json, node_modules)
npm-publish- inputs
- build output, using dependent task output? careful though, it is known to struggle with Nx cloud agents
- outputs
- list of packages in registry under
.../storage/.verdaccio-db.jsone.g.: `{"list":[""],"secret":"esKM34zA53wetObgi5f0Uu1e7iObmm+f"}`` - tarball of package under
.../storage/@push-based/<package-name>-<version>.tgz
e.g.:{workspaceRoot}/${environmentsDir}/{args.environmentProject}/storage/@push-based/${packageName}, package.jsonof package under.../storage/@push-based/<package-name>/package.json
- list of packages in registry under
- inputs
npm-install- outputs
- list of installed packages under
.../package.json - list of installed packages under
.../package-lock.json - source of package under
.../node_modules/@push-based/<package-name>/*
mehh, we know the node_modules reputation
- list of installed packages under
- inputs:
- output of npm-publish(?), package.json
- concerns: chicken-egg problem.
- when only caching
package-lock.json, we still need to run<packageManager> install, separate install in 2 steps? - when caching node_modules, obviously cache takes lot of room!
- to install dependencies and generate lock file, we need the Verdaccio server running
- when only caching
- outputs
Caching scenarios
- what can be cached?
- is more small caches better
- how to visualize scenarios
- what is a worse/best case for e2e tests
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels