Skip to content

Conversation

@masakura
Copy link

@masakura masakura commented Mar 4, 2017

I wan to use File object properties, when invoke spawn,

  gulp.src('book/index.adoc')
    .pipe(spawn({
      cmd: 'asciidoctor-pdf',
      args: file => ['-B', file.base, '-b', 'pdf', '-o-', '-'], // Change base directory to 'book'
      filename: basename => `${basename}.pdf`,
    }))
    .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.

1 participant