broccoli-asset-rev
Advanced tools
Comparing version 0.2.0 to 0.3.0
@@ -17,2 +17,3 @@ var Fingerprint = require('./fingerprint'); | ||
this.exclude = options.exclude || []; | ||
this.generateAssetMap = options.generateAssetMap; | ||
this.generateRailsManifest = options.generateRailsManifest; | ||
@@ -19,0 +20,0 @@ this.prepend = options.prepend || ''; |
@@ -20,2 +20,3 @@ var fs = require('fs'); | ||
this.description = options.description; | ||
this.generateAssetMap = options.generateAssetMap; | ||
this.generateRailsManifest = options.generateRailsManifest; | ||
@@ -71,2 +72,11 @@ } | ||
Fingerprint.prototype.writeAssetMap = function (destDir) { | ||
var toWrite = { | ||
assets: this.assetMap, | ||
prepend: this.prepend | ||
}; | ||
fs.writeFileSync(destDir + '/assets/assetMap.json', JSON.stringify(toWrite)); | ||
}; | ||
Fingerprint.prototype.writeRailsManifest = function(destDir) { | ||
@@ -107,2 +117,6 @@ var assetRegex = /^assets\//, | ||
return Filter.prototype.write.apply(this, arguments).then(function() { | ||
if (!!self.generateAssetMap) { | ||
self.writeAssetMap(destDir); | ||
} | ||
if (!!self.generateRailsManifest) { | ||
@@ -109,0 +123,0 @@ self.writeRailsManifest(destDir); |
{ | ||
"name": "broccoli-asset-rev", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "broccoli asset revisions (fingerprint)", | ||
@@ -5,0 +5,0 @@ "main": "lib/asset-rev.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8937
156