-
Notifications
You must be signed in to change notification settings - Fork 708
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
Add support for bower-install #2
Comments
There isn't. I could make it a priority this coming week to make the conversion over, but if anyone else had more knowledge on the subject of |
@sindresorhus probably has the best Gulp knowledge on the team. I would check out https://github.com/gulpjs/gulp/blob/master/docs/writing-a-plugin/README.md if you need some help getting started. In terms of priority, I would say this isn't huge but would be a nice-to-have for sometime this month, even if it's later :) |
No need for a gulp plugin, we can just use wiredep directly. Gulp isn't grunt. |
@sindresorhus how can i achieve the same result as grunt-bower-install with wiredep? |
@luisrudge you read the wiredep docs |
yes. but grunt-bower-install is way cleaner than wiredep. Maybe i didn't understand wiredep completely? |
I don't know where to put this, but it should just be: var wiredep = require('wiredep');
// When this is executed, it will run the transformation
// (inject the dependencies into your html)
wiredep({
directory: 'app/bower_components',
bowerJson: require('bower.json'),
src: 'app/index.html',
ignorePath: 'app/'
}); |
@stephenplusplus great, thanks! |
Wouldn't a gulp-y wrapper still be advantageous? I'd like being able to say something like this: gulp.task('bower', function () {
return gulp.src('app/*.html').
.pipe($.wiredep())
.pipe(gulp.dest('dist/'));
}); |
@passy sure, but that doesn't work with how wiredep currently works. wiredep must then accept an array of src strings instead of src paths. gulp works on in-memory files. |
I'm happy with Sindre's recommendation of just using wiredep directly. |
@stephenplusplus Thanks for that snippet.
|
fixed in 2b8a837 |
Will be back with full Traceur support sometime in the future
- update the context lines of the changes because they were out of date - swap the order of changes yeoman#2 and yeoman#3 since they were swapped in the gulpfile - remove instructions for generating sourcemaps, because sourcemaps are now already included by default - some other small changes such as from main.less to *.less
Is there a plugin equivalent for
grunt-bower-install
for gulp? If not, should we strip any tags related to this?cc @stephenplusplus
The text was updated successfully, but these errors were encountered: