twolfson / gulp.spritesmith

Convert a set of images into a spritesheet and CSS variables via gulp
The Unlicense
1.08k stars 81 forks source link

Why the renaming from gulp-spritesmith to gulp.spritesmith? #4

Closed backflip closed 10 years ago

backflip commented 10 years ago

gulp-spritesmith would allow the use of gulp-load-plugins

twolfson commented 10 years ago

gulp-spritesmith was registered to another repo during the development of this repo. Unfortunately, I did not find that out until I was ready to publish. As a result, I renamed it to gulp.spritesmith.

https://www.npmjs.org/package/gulp-spritesmith

The requisite for being a gulp plugin is to list a gulpplugin keyword in the pacakge.json. If gulp-load-plugins is not following that convention, please file that as an issue to the author.

See (5) on https://github.com/gulpjs/gulp/blob/3.5/docs/writing-a-plugin/guidelines.md

backflip commented 10 years ago

You're right. And I just realized I can provide a custom lookup pattern to gulp-load-plugins.

backflip commented 10 years ago

If anyone has the same issue:

var plugins = require('gulp-load-plugins')({
        pattern: 'gulp{-,.}*',
        replaceString: /gulp(\-|\.)/
    });

This will load both plugins starting with "gulp-" and "gulp.".