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

Make Metalsmith interoperable with Gulp #29

Closed
normanrz opened this issue Mar 21, 2014 · 3 comments
Closed

Make Metalsmith interoperable with Gulp #29

normanrz opened this issue Mar 21, 2014 · 3 comments
Labels

Comments

@normanrz
Copy link
Contributor

There are quite a few build tools that have popped up in the last months. Gulp is one of them. It is based on node streams and has a very fast-growing plugin ecosystem. However, it doesn't have great metaphors for 1:n file transformations, like Sass-imports or RequireJS optimization. Because of the tree-transformations possible in Metalsmith plugins, it is a better fit for these kind of tasks.

I was wondering if it was a good idea to make Metalsmith ready for interoperation. Gulp uses Vinyl for representing files which is very similar to Metalsmith's representation. There could be a very thin adapter. Other than that Metalsmith would need a way to accept in-memory files as input instead of disk-only. For in-memory output, I made #28.

I'm curious, what you guys think.

@ianstormtaylor
Copy link
Contributor

thanks! i like the idea of exposing #run :) added in 0.5.0

@normanrz
Copy link
Contributor Author

Cool. I like the new #run, too :-)

@normanrz
Copy link
Contributor Author

Passing a dir to new Metalsmith(dir) seems a bit weird for this, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants