Skip to content
This repository has been archived by the owner on Oct 15, 2021. It is now read-only.

Commit

Permalink
fix: adapt breaking changes of updated dev dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mischah committed Feb 11, 2018
1 parent d60d3e1 commit 9c2ff57
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 6 deletions.
11 changes: 6 additions & 5 deletions gulp/tasks/handlebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import gulpsmith from 'gulpsmith';
const layouts = require('metalsmith-layouts');
const inPlace = require('metalsmith-in-place');
const registerHelpers = require('metalsmith-register-helpers');
const registerPartials = require('metalsmith-discover-partials');

import {settings, useHandlebars} from '../config';

Expand All @@ -25,14 +26,14 @@ function handlebars(done) {
.use(registerHelpers({
directory: 'src/handlebars/helpers'
}))
.use(registerPartials({
directory: 'src/handlebars/partials',
pattern: /\.hbs$/
}))
.use(layouts({ // Wrap layouts around content pages
engine: 'handlebars',
rename: false,
directory: 'src/handlebars/layouts',
default: 'default.hbs',
pattern: '*.hbs',
partials: 'src/handlebars/partials',
partialExtension: '.hbs'
pattern: '*.hbs'
}))
.use(inPlace({ // Render handlebars content pages
engineOptions: {
Expand Down
44 changes: 44 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
"jstransformer-handlebars": "^1.1.0",
"merge-stream": "^1.0.1",
"metalsmith": "^2.3.0",
"metalsmith-discover-partials": "^0.1.0",
"metalsmith-in-place": "^4.1.1",
"metalsmith-layouts": "^2.1.0",
"metalsmith-register-helpers": "^0.4.0",
Expand Down
3 changes: 2 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ const dev = {
},
stats: {
timings: true,
version: false
version: false,
colors: true
}
};

Expand Down

0 comments on commit 9c2ff57

Please sign in to comment.