How to use the coffeeify.compile function in coffeeify

To help you get started, we’ve selected a few coffeeify examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github thlorenz / caching-coffeeify / index.js View on Github external
function end() {
    var hash = getHash(data)
      , cached = cache[file];

    if (!cached || cached.hash !== hash) {
      coffeeify.compile(file, data, function(error, result) {
        if (error) return stream.emit('error', error);
        cache[file] = { compiled: result, hash: hash };
        stream.queue(result);
        stream.queue(null);
      });
    } else {
      stream.queue(cache[file].compiled);
      stream.queue(null);
    }
  }

coffeeify

browserify plugin for coffeescript with support for mixed .js and .coffee files

MIT
Latest version published 7 years ago

Package Health Score

56 / 100
Full package analysis

Popular coffeeify functions