Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added asset revision. #293

Closed
wants to merge 1 commit into from
Closed

Added asset revision. #293

wants to merge 1 commit into from

Conversation

hivre
Copy link

@hivre hivre commented Mar 22, 2015

See the discussion at #255 this is the napkin-solution.
I have made the least changes to the current setup of the gulp file.

  • adds two new plugins: rev-all and rev-napkin
    • Rev-all takes care of adding revisions numbers to assets.
    • Rev-Napkin removes the (duplicate) un-revved files from the stream
  • moved HTML minification to the build task, as it interferes with the revision management
  • added default ignores for revisons: all html files, favicon, touch-icons and robots.txt

* adds two new plugins: rev-all and rev-napkin
  * Rev-all takes care of adding revisions numbers to assets.
  * Rev-Napkin removes the (duplicate) un-revved files from the stream
* moved HTML minification to the build task, as it interferes with the revision management
* added default ignores for revisons: all html files, favicon, touch-icons and robots.txt
@silvenon
Copy link
Member

It seems to work correctly and gives a nice colorful output.

screenshot 2015-04-10 15 53 39

Two questions:

  1. I noticed there's a new version of gulp-rev-all with some breaking changes, would you care to update to the latest version?
  2. The output seems a bit too verbose. Perhaps silent is best? I think the new option is called debug, so perhaps set that to false.

@sindresorhus your thoughts as the author of gulp-rev? 😃

@sindresorhus
Copy link
Member

@silvenon Not sure what more to say. I've already said I don't like this complication and I think it will cause a lot of support requests, but totally up to you. You're also not using gulp-rev, but gulp-rev-all.

@silvenon
Copy link
Member

Ok, I take full responsibility if it gets out of hand 😃

I'd like to continue with this then, so @hivre, when you have time, please address my 2 questions.

@@ -131,7 +130,12 @@ gulp.task('wiredep', function () {
});

gulp.task('build', ['jshint', 'html', 'images', 'fonts', 'extras'], function () {
return gulp.src('dist/**/*').pipe($.size({title: 'build', gzip: true}));
return gulp.src('dist/**/*', {base: 'dist'})
.pipe($.revAll({ignore: ['favicon.ico', 'apple-touch-icon.png', 'robots.txt', '.html']}))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/smysnk/gulp-rev-all/blob/591d18d4247f287b0821896f8a266b6f7128963c/README.md#upgrading-to-v08x

New Feature: Ignoring files has changed, ignore option has been removed and has been replaced with dontGlobal, dontRenameFile, dontUpdateReference, dontSearchFile which allows for more control and less ambiguity on what is being ignored

@arthurvr
Copy link
Member

arthurvr commented May 1, 2015

I'd like to continue with this then, so @hivre, when you have time, please address my 2 questions.

ping @hivre :)

@arthurvr
Copy link
Member

ping @hivre - also needs a rebase :)

@silvenon
Copy link
Member

We'll have to continue this in another PR, one of these days 😃

@hivre
Copy link
Author

hivre commented Jul 31, 2015

I'm sorry for the lack of communications. Startup collapsed, new job busy which didn't have any programming.

If it is still needed, i'm happy to finish this. I noticed a new version of the revving plugins that solve some issues we had before.

@silvenon
Copy link
Member

Sure, if you're up for finishing, I'd be happy to merge 😉

@hivre
Copy link
Author

hivre commented Jul 31, 2015

Great.
I'll pick this up this weekend.

@silvenon
Copy link
Member

No pressure.

@hivre
Copy link
Author

hivre commented Aug 3, 2015

see #360 for a new attempt.

from an earlier comment:

  1. I noticed there's a new version of gulp-rev-all with some breaking changes, would you care to update to the latest version?

done

  1. The output seems a bit too verbose. Perhaps silent is best? I think the new option is called debug, so perhaps set that to false.

done (set debug: true in the options list to get it back)

Close this one?

@silvenon
Copy link
Member

silvenon commented Aug 5, 2015

👍

@silvenon silvenon closed this Aug 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants