Skip to content
This repository has been archived by the owner on Sep 15, 2023. It is now read-only.

Commit

Permalink
removes outdated gulp-rev-napkin for one that has been maintained mor…
Browse files Browse the repository at this point in the history
…e recently [updates #524]
  • Loading branch information
benjtinsley committed Jan 19, 2018
1 parent f7b317b commit 57ba80b
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 13 deletions.
4 changes: 2 additions & 2 deletions gulpfile.js/tasks/rev/rev-assets.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var gulp = require('gulp')
var path = require('path')
var rev = require('gulp-rev')
var revNapkin = require('gulp-rev-napkin');
var revDel = require('gulp-rev-delete-original');

// 1) Add md5 hashes to assets referenced by CSS and JS files
gulp.task('rev-assets', function() {
Expand All @@ -11,7 +11,7 @@ gulp.task('rev-assets', function() {
return gulp.src([path.resolve(process.env.PWD, PATH_CONFIG.dest,'**/*'), ignoreThese])
.pipe(rev())
.pipe(gulp.dest(PATH_CONFIG.dest))
.pipe(revNapkin({ verbose: false, force: true }))
.pipe(revDel())
.pipe(rev.manifest(path.resolve(process.env.PWD, PATH_CONFIG.dest, 'rev-manifest.json'), {merge: true}))
.pipe(gulp.dest(''))
})
4 changes: 2 additions & 2 deletions gulpfile.js/tasks/rev/rev-css.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
var gulp = require('gulp')
var path = require('path')
var rev = require('gulp-rev')
var revNapkin = require('gulp-rev-napkin')
var revDel = require('gulp-rev-delete-original')

// 3) Rev and compress CSS and JS files (this is done after assets, so that if a
// referenced asset hash changes, the parent hash will change as well
gulp.task('rev-css', function(){
return gulp.src(path.resolve(process.env.PWD, PATH_CONFIG.dest,'**/*.css'))
.pipe(rev())
.pipe(gulp.dest(PATH_CONFIG.dest))
.pipe(revNapkin({verbose: false, force: true}))
.pipe(revDel())
.pipe(rev.manifest(path.resolve(process.env.PWD, PATH_CONFIG.dest, 'rev-manifest.json'), {merge: true}))
.pipe(gulp.dest(''))
})
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
"gulp-rename": "1.2.2",
"gulp-replace": "^0.5.4",
"gulp-rev": "7.1.2",
"gulp-rev-napkin": "0.1.0",
"gulp-rev-replace": "0.4.3",
"gulp-sass": "^3.1.0",
"gulp-sequence": "0.4.6",
Expand All @@ -69,6 +68,7 @@
"devDependencies": {
"babel-preset-env": "^1.6.1",
"chai": "^3.5.0",
"gulp-rev-delete-original": "^0.2.3",
"mocha": "3.2.0"
}
}
21 changes: 13 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2835,13 +2835,12 @@ gulp-replace@^0.5.4:
readable-stream "^2.0.1"
replacestream "^4.0.0"

gulp-rev-[email protected]:
version "0.1.0"
resolved "https://registry.npmjs.org/gulp-rev-napkin/-/gulp-rev-napkin-0.1.0.tgz#e2f885e75fe72b7f04df218da9249202a62bb81b"
gulp-rev-delete-original@^0.2.3:
version "0.2.3"
resolved "https://registry.yarnpkg.com/gulp-rev-delete-original/-/gulp-rev-delete-original-0.2.3.tgz#81f3f95db3bd3a324923df6d235ae953c2ac038d"
dependencies:
gulp-util "^3.0.1"
rimraf "^2.2.8"
through2 "^0.6.3"
rimraf "^2.3.4"
through2 "^0.6.5"

[email protected]:
version "0.4.3"
Expand Down Expand Up @@ -2924,7 +2923,7 @@ [email protected]:
cheerio "0.*"
gulp-util "^3.0.0"

gulp-util@>=3.0.0, gulp-util@^3.0, gulp-util@^3.0.0, gulp-util@^3.0.1, gulp-util@^3.0.6, gulp-util@^3.0.7, gulp-util@^3.0.8:
gulp-util@>=3.0.0, gulp-util@^3.0, gulp-util@^3.0.0, gulp-util@^3.0.6, gulp-util@^3.0.7, gulp-util@^3.0.8:
version "3.0.8"
resolved "https://registry.npmjs.org/gulp-util/-/gulp-util-3.0.8.tgz#0054e1e744502e27c04c187c3ecc505dd54bbb4f"
dependencies:
Expand Down Expand Up @@ -5440,6 +5439,12 @@ rimraf@2, rimraf@^2.2.8, rimraf@^2.4.3, rimraf@^2.5.1, rimraf@^2.6.1:
dependencies:
glob "^7.0.5"

rimraf@^2.3.4:
version "2.6.2"
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.2.tgz#2ed8150d24a16ea8651e6d6ef0f47c4158ce7a36"
dependencies:
glob "^7.0.5"

rimraf@~2.2.0:
version "2.2.8"
resolved "https://registry.npmjs.org/rimraf/-/rimraf-2.2.8.tgz#e439be2aaee327321952730f99a8929e4fc50582"
Expand Down Expand Up @@ -5997,7 +6002,7 @@ through2@^0.5.0:
readable-stream "~1.0.17"
xtend "~3.0.0"

through2@^0.6.0, through2@^0.6.1, through2@^0.6.3:
through2@^0.6.0, through2@^0.6.1, through2@^0.6.5:
version "0.6.5"
resolved "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz#41ab9c67b29d57209071410e1d7a7a968cd3ad48"
dependencies:
Expand Down

0 comments on commit 57ba80b

Please sign in to comment.