Gulp plugin for Assemble.
Since gulp-assemble is using the v0.5.0-alpha branch of Assemble, this is not ready to be used unless you're willing to deal with daily changes, broken code, and lack of documentation.
Install with npm (actually this is doing a git clone
while we're in alpha):
npm i assemble/gulp-assemble && assemble/handlebars-helpers#v0.6.0
Next, cd into the project and run npm install
to install dependencies.
Example gulpfile.js with gulp-assemble and gulp-htmlmin:
var gulp = require('gulp');
var assemble = require('gulp-assemble');
var htmlmin = require('gulp-htmlmin');
var options = {
data: 'data/*.json',
partials: 'templates/partials/*.hbs',
layoutdir: 'templates/layouts/'
};
gulp.task('assemble', function () {
gulp.src('templates/pages/*.hbs')
.pipe(assemble(options))
.pipe(htmlmin())
.pipe(gulp.dest('_gh_pages/'));
});
gulp.task('default', ['assemble']);
Brian Woodward
Copyright (c) 2014 Brian Woodward, contributors.
Released under the MIT license
This file was generated by gulp-verb on May 05, 2014.