Skip to content

justjake/browserify-cache-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

browserify-cache-api

api for caching and reusing discovered dependencies for browserify

jsdf/browserify-cache-api is used by browserify-incremental and browserify-assets

justjake/browserify-cache-api is used by no one, for any purpose.

  var b = browserify(browserifyCache.args);
  browserifyCache(b, opts);
  // browserify dependency discovery and loading is now cached

under construction

  • validate caches using file hashes instead of file mtimes.
  • store finished bundle in cache for perfect validations.
  • make metadata gathering and invalidation (hashing, mtimes, etc) pluggable.
  • relativize paths in cache.json files to the Browserify opts.basedir.
  • add pluggable cache backed systems which handle load and store of Cache instances.
    • would it be better to just provide the whole cache in the callback, and let the user handle that? In that case, also need to provide option hook for loading.
  • write new files in ES6

About

browserify-cache-api using hashing instead of mtimes

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%