gulp-rev-all
Advanced tools
Comparing version 0.9.7 to 0.9.8
var Through = require('through2'); | ||
var Revisioner = require('./revisioner'); | ||
var gutil = require('gulp-util'); | ||
var PluginError = gutil.PluginError; | ||
var PluginError = require('plugin-error'); | ||
@@ -6,0 +5,0 @@ var PLUGIN_NAME = 'gulp-rev-all'; |
{ | ||
"name": "gulp-rev-all", | ||
"version": "0.9.7", | ||
"version": "0.9.8", | ||
"description": "Static asset revisioning by appending content hash to filenames: unicorn.css => unicorn.098f6bcd.css, also re-writes references in each file to new reved name.", | ||
"main": "index.js", | ||
"dependencies": { | ||
"chalk": "~0.4.0", | ||
"gulp-util": "~2.2.14", | ||
"chalk": "^1.1.3", | ||
"fancy-log": "^1.3.2", | ||
"merge": "^1.2.0", | ||
"through2": "~0.4.0" | ||
"plugin-error": "^0.1.2", | ||
"through2": "~0.4.0", | ||
"vinyl": "^2.1.0" | ||
}, | ||
@@ -12,0 +14,0 @@ "devDependencies": { |
@@ -1,2 +0,4 @@ | ||
var Gutil = require('gulp-util'); | ||
var Vinyl = require('vinyl'); | ||
var fancyLog = require('fancy-log'); | ||
var chalk = require('chalk'); | ||
var Merge = require('merge'); | ||
@@ -39,3 +41,3 @@ var Path = require('path'); | ||
// Enable / Disable logger based on supplied options | ||
this.log = (this.options.debug) ? Gutil.log : function () {}; | ||
this.log = (this.options.debug) ? fancyLog : function () {}; | ||
@@ -86,3 +88,3 @@ // Make tools available client side callbacks supplied in options | ||
var file = new Gutil.File({ | ||
var file = new Vinyl({ | ||
cwd: this.pathCwd, | ||
@@ -102,3 +104,3 @@ base: this.pathBase, | ||
var file = new Gutil.File({ | ||
var file = new Vinyl({ | ||
cwd: this.pathCwd, | ||
@@ -269,3 +271,3 @@ base: this.pathBase, | ||
}; | ||
this.log('gulp-rev-all:', 'Found', referenceType, 'reference [', Gutil.colors.magenta(reference.path), '] -> [', Gutil.colors.green(reference.file.path), '] in [', Gutil.colors.blue(fileResolveReferencesIn.revPathOriginal), ']'); | ||
this.log('gulp-rev-all:', 'Found', referenceType, 'reference [', chalk.magenta(reference.path), '] -> [', chalk.green(reference.file.path), '] in [', chalk.blue(fileResolveReferencesIn.revPathOriginal), ']'); | ||
} else if (fileResolveReferencesIn.revReferencePaths[reference.path].file.revPathOriginal === reference.file.revPathOriginal) { | ||
@@ -275,3 +277,3 @@ // Append the other regexes to account for inconsitent use | ||
} else { | ||
this.log('gulp-rev-all:', 'Possible ambiguous reference detected [', Gutil.colors.red(fileResolveReferencesIn.revReferencePaths[reference.path].path), ' (', fileResolveReferencesIn.revReferencePaths[reference.path].file.revPathOriginal, ')] <-> [', Gutil.colors.red(reference.path), '(', Gutil.colors.red(reference.file.revPathOriginal), ')]'); | ||
this.log('gulp-rev-all:', 'Possible ambiguous reference detected [', chalk.red(fileResolveReferencesIn.revReferencePaths[reference.path].path), ' (', fileResolveReferencesIn.revReferencePaths[reference.path].file.revPathOriginal, ')] <-> [', chalk.red(reference.path), '(', chalk.red(reference.file.revPathOriginal), ')]'); | ||
} | ||
@@ -278,0 +280,0 @@ } |
94
test.js
@@ -6,3 +6,3 @@ var RevAll = require('./index'); | ||
var gulp = require('gulp'); | ||
var Gutil = require('gulp-util'); | ||
var Vinyl = require('vinyl'); | ||
var es = require('event-stream'); | ||
@@ -1170,3 +1170,3 @@ | ||
var file = new Gutil.File({ | ||
var file = new Vinyl({ | ||
path: '/first/second/third/index.html', | ||
@@ -1176,3 +1176,3 @@ base: base | ||
var fileReference = new Gutil.File({ | ||
var fileReference = new Vinyl({ | ||
path: '/first/second/third/script.js', | ||
@@ -1197,3 +1197,3 @@ base: base | ||
var file = new Gutil.File({ | ||
var file = new Vinyl({ | ||
path: '/first/second/third/other.js', | ||
@@ -1203,3 +1203,3 @@ base: base | ||
var fileReference = new Gutil.File({ | ||
var fileReference = new Vinyl({ | ||
path: '/first/second/third/script.js', | ||
@@ -1228,3 +1228,3 @@ base: base | ||
var file = new Gutil.File({ | ||
var file = new Vinyl({ | ||
path: '/first/second/third/index.html', | ||
@@ -1234,3 +1234,3 @@ base: base | ||
var fileReference = new Gutil.File({ | ||
var fileReference = new Vinyl({ | ||
path: '/first/second/third/other.html', | ||
@@ -1255,3 +1255,3 @@ base: base | ||
var file = new Gutil.File({ | ||
var file = new Vinyl({ | ||
path: '/first/second/third/index.html', | ||
@@ -1261,3 +1261,3 @@ base: base | ||
var fileReference = new Gutil.File({ | ||
var fileReference = new Vinyl({ | ||
path: '/first/second/third/fourth/other.html', | ||
@@ -1283,3 +1283,3 @@ base: base | ||
var file = new Gutil.File({ | ||
var file = new Vinyl({ | ||
path: 'c:\\first\\second\\third\\index.html', | ||
@@ -1289,3 +1289,3 @@ base: base | ||
var fileReference = new Gutil.File({ | ||
var fileReference = new Vinyl({ | ||
path: 'c:\\first\\second\\third\\fourth\\other.html', | ||
@@ -1315,3 +1315,3 @@ base: base | ||
var file = new Gutil.File({ | ||
var file = new Vinyl({ | ||
path: '/first/second/third/index.html', | ||
@@ -1321,3 +1321,3 @@ base: base | ||
var fileReference = new Gutil.File({ | ||
var fileReference = new Vinyl({ | ||
path: '/first/second/index.html', | ||
@@ -1341,3 +1341,3 @@ base: base | ||
var file = new Gutil.File({ | ||
var file = new Vinyl({ | ||
path: '/first/second/third/index.html', | ||
@@ -1347,3 +1347,3 @@ base: base | ||
var fileReference = new Gutil.File({ | ||
var fileReference = new Vinyl({ | ||
path: '/first/second/other/index.html', | ||
@@ -1367,3 +1367,3 @@ base: base | ||
var file = new Gutil.File({ | ||
var file = new Vinyl({ | ||
path: '/first/second/third/index.html', | ||
@@ -1373,3 +1373,3 @@ base: base | ||
var fileReference = new Gutil.File({ | ||
var fileReference = new Vinyl({ | ||
path: '/first/second/thirder/index.html', | ||
@@ -1393,3 +1393,3 @@ base: base | ||
var file = new Gutil.File({ | ||
var file = new Vinyl({ | ||
path: '/first/second/third/index.html', | ||
@@ -1399,3 +1399,3 @@ base: base | ||
var fileReference = new Gutil.File({ | ||
var fileReference = new Vinyl({ | ||
path: '/first/second/other/advanced/index.html', | ||
@@ -1423,3 +1423,3 @@ base: base | ||
var file = new Gutil.File({ | ||
var file = new Vinyl({ | ||
path: '/first/second/third/fourth/index.html', | ||
@@ -1429,3 +1429,3 @@ base: base | ||
var fileReference = new Gutil.File({ | ||
var fileReference = new Vinyl({ | ||
path: '/first/second/index.html', | ||
@@ -1449,3 +1449,3 @@ base: base | ||
var file = new Gutil.File({ | ||
var file = new Vinyl({ | ||
path: '/first/second/third/fourth/index.html', | ||
@@ -1455,3 +1455,3 @@ base: base | ||
var fileReference = new Gutil.File({ | ||
var fileReference = new Vinyl({ | ||
path: '/first/second/other/index.html', | ||
@@ -1475,3 +1475,3 @@ base: base | ||
var file = new Gutil.File({ | ||
var file = new Vinyl({ | ||
path: '/first/second/third/fourth/fifth/index.html', | ||
@@ -1481,3 +1481,3 @@ base: base | ||
var fileReference = new Gutil.File({ | ||
var fileReference = new Vinyl({ | ||
path: '/first/second/other/index.html', | ||
@@ -1509,3 +1509,3 @@ base: base | ||
var file = new Gutil.File({ | ||
var file = new Vinyl({ | ||
path: '/first/second/third/index.html', | ||
@@ -1515,3 +1515,3 @@ base: base | ||
var fileReference = new Gutil.File({ | ||
var fileReference = new Vinyl({ | ||
path: '/first/second/third/script.js', | ||
@@ -1536,3 +1536,3 @@ base: base | ||
var file = new Gutil.File({ | ||
var file = new Vinyl({ | ||
path: '/first/second/third/other.js', | ||
@@ -1542,3 +1542,3 @@ base: base | ||
var fileReference = new Gutil.File({ | ||
var fileReference = new Vinyl({ | ||
path: '/first/second/third/script.js', | ||
@@ -1567,3 +1567,3 @@ base: base | ||
var file = new Gutil.File({ | ||
var file = new Vinyl({ | ||
path: '/first/second/third/index.html', | ||
@@ -1573,3 +1573,3 @@ base: base | ||
var fileReference = new Gutil.File({ | ||
var fileReference = new Vinyl({ | ||
path: '/first/second/third/other.html', | ||
@@ -1594,3 +1594,3 @@ base: base | ||
var file = new Gutil.File({ | ||
var file = new Vinyl({ | ||
path: '/first/second/third/index.html', | ||
@@ -1600,3 +1600,3 @@ base: base | ||
var fileReference = new Gutil.File({ | ||
var fileReference = new Vinyl({ | ||
path: '/first/second/third/fourth/other.html', | ||
@@ -1625,3 +1625,3 @@ base: base | ||
var file = new Gutil.File({ | ||
var file = new Vinyl({ | ||
path: '/first/second/third/index.html', | ||
@@ -1631,3 +1631,3 @@ base: base | ||
var fileReference = new Gutil.File({ | ||
var fileReference = new Vinyl({ | ||
path: '/first/second/index.html', | ||
@@ -1652,3 +1652,3 @@ base: base | ||
var file = new Gutil.File({ | ||
var file = new Vinyl({ | ||
path: '/first/second/third/index.html', | ||
@@ -1658,3 +1658,3 @@ base: base | ||
var fileReference = new Gutil.File({ | ||
var fileReference = new Vinyl({ | ||
path: '/first/second/other/index.html', | ||
@@ -1679,3 +1679,3 @@ base: base | ||
var file = new Gutil.File({ | ||
var file = new Vinyl({ | ||
path: '/first/second/thirder/index.html', | ||
@@ -1685,3 +1685,3 @@ base: base | ||
var fileReference = new Gutil.File({ | ||
var fileReference = new Vinyl({ | ||
path: '/first/second/third/index.html', | ||
@@ -1706,3 +1706,3 @@ base: base | ||
var file = new Gutil.File({ | ||
var file = new Vinyl({ | ||
path: '/first/second/third/index.html', | ||
@@ -1712,3 +1712,3 @@ base: base | ||
var fileReference = new Gutil.File({ | ||
var fileReference = new Vinyl({ | ||
path: '/first/second/other/advanced/index.html', | ||
@@ -1737,3 +1737,3 @@ base: base | ||
var file = new Gutil.File({ | ||
var file = new Vinyl({ | ||
path: '/first/second/third/fourth/index.html', | ||
@@ -1743,3 +1743,3 @@ base: base | ||
var fileReference = new Gutil.File({ | ||
var fileReference = new Vinyl({ | ||
path: '/first/second/index.html', | ||
@@ -1764,3 +1764,3 @@ base: base | ||
var file = new Gutil.File({ | ||
var file = new Vinyl({ | ||
path: '/first/second/third/fourth/index.html', | ||
@@ -1770,3 +1770,3 @@ base: base | ||
var fileReference = new Gutil.File({ | ||
var fileReference = new Vinyl({ | ||
path: '/first/second/other/index.html', | ||
@@ -1791,3 +1791,3 @@ base: base | ||
var file = new Gutil.File({ | ||
var file = new Vinyl({ | ||
path: '/first/second/third/fourth/fifth/index.html', | ||
@@ -1797,3 +1797,3 @@ base: base | ||
var fileReference = new Gutil.File({ | ||
var fileReference = new Vinyl({ | ||
path: '/first/second/other/index.html', | ||
@@ -1800,0 +1800,0 @@ base: base |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
1795
733411
6
47
1
+ Addedfancy-log@^1.3.2
+ Addedplugin-error@^0.1.2
+ Addedvinyl@^2.1.0
+ Addedansi-cyan@0.1.1(transitive)
+ Addedansi-gray@0.1.1(transitive)
+ Addedansi-red@0.1.1(transitive)
+ Addedansi-regex@2.1.1(transitive)
+ Addedansi-styles@2.2.1(transitive)
+ Addedansi-wrap@0.1.0(transitive)
+ Addedarr-diff@1.1.0(transitive)
+ Addedarr-flatten@1.1.0(transitive)
+ Addedarr-union@2.1.0(transitive)
+ Addedarray-slice@0.2.3(transitive)
+ Addedchalk@1.1.3(transitive)
+ Addedclone@2.1.2(transitive)
+ Addedclone-buffer@1.0.0(transitive)
+ Addedclone-stats@1.0.0(transitive)
+ Addedcloneable-readable@1.1.3(transitive)
+ Addedcolor-support@1.1.3(transitive)
+ Addedextend-shallow@1.1.4(transitive)
+ Addedfancy-log@1.3.3(transitive)
+ Addedhas-ansi@2.0.0(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addedkind-of@1.1.0(transitive)
+ Addedparse-node-version@1.0.1(transitive)
+ Addedplugin-error@0.1.2(transitive)
+ Addedprocess-nextick-args@2.0.1(transitive)
+ Addedreadable-stream@2.3.8(transitive)
+ Addedremove-trailing-separator@1.1.0(transitive)
+ Addedreplace-ext@1.0.1(transitive)
+ Addedsafe-buffer@5.1.2(transitive)
+ Addedstring_decoder@1.1.1(transitive)
+ Addedstrip-ansi@3.0.1(transitive)
+ Addedsupports-color@2.0.0(transitive)
+ Addedtime-stamp@1.1.0(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addedvinyl@2.2.1(transitive)
- Removedgulp-util@~2.2.14
- Removedansi-regex@0.2.1(transitive)
- Removedansi-styles@1.0.01.1.0(transitive)
- Removedarray-find-index@1.0.2(transitive)
- Removedcamelcase@2.1.1(transitive)
- Removedcamelcase-keys@2.1.0(transitive)
- Removedchalk@0.4.00.5.1(transitive)
- Removedclone-stats@0.0.1(transitive)
- Removedcurrently-unhandled@0.4.1(transitive)
- Removeddateformat@1.0.12(transitive)
- Removeddecamelize@1.2.0(transitive)
- Removedduplexer2@0.0.2(transitive)
- Removederror-ex@1.3.2(transitive)
- Removedfind-up@1.1.2(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedget-stdin@4.0.1(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedgulp-util@2.2.20(transitive)
- Removedhas-ansi@0.1.0(transitive)
- Removedhas-color@0.1.7(transitive)
- Removedhasown@2.0.2(transitive)
- Removedhosted-git-info@2.8.9(transitive)
- Removedindent-string@2.1.0(transitive)
- Removedis-arrayish@0.2.1(transitive)
- Removedis-core-module@2.15.1(transitive)
- Removedis-finite@1.1.0(transitive)
- Removedis-utf8@0.2.1(transitive)
- Removedload-json-file@1.1.0(transitive)
- Removedlodash._escapehtmlchar@2.4.1(transitive)
- Removedlodash._escapestringchar@2.4.1(transitive)
- Removedlodash._htmlescapes@2.4.1(transitive)
- Removedlodash._isnative@2.4.1(transitive)
- Removedlodash._objecttypes@2.4.1(transitive)
- Removedlodash._reinterpolate@2.4.1(transitive)
- Removedlodash._reunescapedhtml@2.4.1(transitive)
- Removedlodash._shimkeys@2.4.1(transitive)
- Removedlodash.defaults@2.4.1(transitive)
- Removedlodash.escape@2.4.1(transitive)
- Removedlodash.isobject@2.4.1(transitive)
- Removedlodash.keys@2.4.1(transitive)
- Removedlodash.template@2.4.1(transitive)
- Removedlodash.templatesettings@2.4.1(transitive)
- Removedlodash.values@2.4.1(transitive)
- Removedloud-rejection@1.6.0(transitive)
- Removedmap-obj@1.0.1(transitive)
- Removedmeow@3.7.0(transitive)
- Removedminimist@0.2.41.2.8(transitive)
- Removedmultipipe@0.1.2(transitive)
- Removednormalize-package-data@2.5.0(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedparse-json@2.2.0(transitive)
- Removedpath-exists@2.1.0(transitive)
- Removedpath-parse@1.0.7(transitive)
- Removedpath-type@1.1.0(transitive)
- Removedpify@2.3.0(transitive)
- Removedpinkie@2.0.4(transitive)
- Removedpinkie-promise@2.0.1(transitive)
- Removedread-pkg@1.1.0(transitive)
- Removedread-pkg-up@1.0.1(transitive)
- Removedreadable-stream@1.1.14(transitive)
- Removedredent@1.0.0(transitive)
- Removedrepeating@2.0.1(transitive)
- Removedresolve@1.22.8(transitive)
- Removedsemver@5.7.2(transitive)
- Removedsignal-exit@3.0.7(transitive)
- Removedspdx-correct@3.2.0(transitive)
- Removedspdx-exceptions@2.5.0(transitive)
- Removedspdx-expression-parse@3.0.1(transitive)
- Removedspdx-license-ids@3.0.20(transitive)
- Removedstrip-ansi@0.1.10.3.0(transitive)
- Removedstrip-bom@2.0.0(transitive)
- Removedstrip-indent@1.0.1(transitive)
- Removedsupports-color@0.2.0(transitive)
- Removedsupports-preserve-symlinks-flag@1.0.0(transitive)
- Removedthrough2@0.5.1(transitive)
- Removedtrim-newlines@1.0.0(transitive)
- Removedvalidate-npm-package-license@3.0.4(transitive)
- Removedvinyl@0.2.3(transitive)
- Removedxtend@3.0.0(transitive)
Updatedchalk@^1.1.3