0.1.19 • Published 2 years ago
@resolute/repack v0.1.19
repack
Revamp TODO
- ESM package
- Hot module reload for config.ts and build.ts
Marko@5- SVGO@latest
- Throttle processing globally to a configurable number of “lanes”
- Stream all inputs FS + Got
- Got etag caching
- Hash the input stream
- Write to temporary file and rename to hash
- Handle video probing
- Use project dir config for
- rollup?
- .babelrc.json
- terser?
- tsconfig?
- marko?
- svgo.config.js
INPUTS
- Source
- File Path
- Hash: calculate MD5
- URL
- Hash: etag Header in HEAD request
- File Path
- Options
- Normalize > sort > JSON.stringify > hash
STATES
Given a Source + Options, which requires either reading the file from disk (local MD5) or evaluating the etag
from the HEAD request of an external URL, the cached variant either exists in a local cache or does not exist.
If it exists, return the cached variant.
If it does not, POST rio the Source + Options to generate the variant and write the cache? TODO: lock file? Maybe the Map() can return a promise to act as a lock file?
0.1.19
2 years ago
0.1.18
3 years ago
0.1.15
3 years ago
0.1.16
3 years ago
0.1.17
3 years ago
0.1.14
4 years ago
0.1.11
4 years ago
0.1.12
4 years ago
0.1.13
4 years ago
0.1.10
4 years ago
0.1.8
4 years ago
0.1.9
4 years ago
0.1.7
4 years ago
0.1.6
4 years ago
0.1.5
4 years ago
0.1.4
4 years ago
0.1.3
5 years ago
0.1.2
5 years ago
0.1.1
5 years ago
0.1.0
5 years ago
0.0.4
5 years ago
0.0.3
5 years ago
0.0.2
6 years ago
0.0.1
6 years ago