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 #run method which doesn't write the files to disk #28

Merged
merged 1 commit into from Mar 21, 2014

Conversation

normanrz
Copy link
Contributor

I wanted to be able to execute the pipeline without writing the files to disk. So that I can post-process the files in another in-memory build tool like gulp.

@leeola
Copy link
Contributor

leeola commented Aug 16, 2014

@normanrz If i may ask, what is your workflow for using run() with Gulp? Do you have any examples of this? I'd be quite curious.

@normanrz
Copy link
Contributor Author

Sure. I use gulp for preparing all of my assets and metalsmith only for the blog posts and static html pages. So, I built a bridge (transform stream) that passes files from gulp into metalsmith and back to gulp: https://github.com/scalableminds/metal-common/blob/master/lib/gulp_bridge.coffee

Then I use it with something like

gulp.src("src/blog/**/*")
  .pipe(gulpBridge((metal) ->
    metal
      .use(markdown())
      .use(templates("handlebars"))
  ))
  .pipe(gulp.dest("dist"))

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

3 participants