Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

broccoli-caching-writer

Package Overview
Dependencies
Maintainers
2
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-caching-writer - npm Package Versions

124

0.5.3

Diff

Changelog

Source

0.5.3

  • Ensure that errors are not thrown if _destDir has not been setup yet.
rwjblue
published 0.5.2 •

Changelog

Source

0.5.2

  • Use _destDir for tracking the internal destination directory. This prevents collisions if inheritors use the common destDir name as a property.
rwjblue
published 0.5.1 •

Changelog

Source

0.5.1

  • Allow easy inheritance. In your package's index.js:
var CachingWriter = require('broccoli-caching-writer');

module.exports = CachingWriter.extend({
  init: function(inputTrees, options) {
    /* do additional setup here */
  },

  updateCache: function(srcPaths, destDir) {
    /* do main processing */
  }
});

Then in a consuming Brocfile:

var MyFoo = require('my-foo'); // package from above

var tree = new MyFoo([someInput], { some: 'options' });
rwjblue
published 0.5.0 •

Changelog

Source

0.5.0

  • Allow filtering on files to include/exclude when determining when to invalidate the cache. This allows you to use simple regular expressions to prevent invalidating the cache when files that do not affect the tree in question are changed.
var outputTree = compileCompass(inputTree, {
  filterFromCache: {
    include: [
      /.(scss|sass)$/   // only base the input tree’s hash on *.scss and *.sass files
    ]
  }
});

This does not affect what files make it to the output tree at all, rather it only makes it easier for subclasses to only rebuild when file types they care about change.

  • Symlink from cache instead of manually hard-linking. This should be a speed improvement for posix platforms, and will soon be able to take advantage of improvements for Windows (for those curious stay tuned on Windows support here).

  • Allow multiple input trees. If an array of trees is passed to the constructor, all trees will be read and their collective output will be used to calculate the cache (any trees invalidating causes updateCache to be called).

    The default now is to assume that an array of trees is allowed, if you want to opt-out of this behavior set enforceSingleInputTree to true on your classes prototype.

    By default an array of paths will now be the first argument to updateCache (instead of a single path in prior versions). The enforceSingleInputTree property also controls this.

  • Due to the changes above (much more being done in our constructor), inheritors are now required to call the broccoli-caching-writer constructor from their own.

rwjblue
published 0.4.2 •

rwjblue
published 0.4.1 •

rwjblue
published 0.4.0 •

rwjblue
published 0.3.1 •

rwjblue
published 0.3.0 •

rwjblue
published 0.2.2 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc