2.0.9 • Published 2 years ago
@pro-vision/assemble-lite v2.0.9
assemble-lite
Minimal Tool to render Handlebars-Files via Node.
Installation
npm i @pro-vision/assemble-lite -D
Usage
const assembleLite = require('@pro-vision/assemble-lite');
assembleLite({
baseDir: 'src/pages/',
partials: 'src/components/**/*.hbs',
pages: 'src/pages/**/*.hbs',
templates: 'src/templates/**/*.hbs',
data: [
'src/components/**/*.json',
'src/components/**/*.yaml',
'src/templates/**/*.json',
'src/templates/**/*.yml'
],
helpers: 'src/helpers/*.js',
target: 'target/pages',
}).then(() => {
console.log('done!!');
});
Configuration
key | type | usage |
---|---|---|
baseDir | path | Defines base directory |
partials | glob | glob[] | where are the partials |
pages | glob | glob[] | where are the pages |
templates | glob | glob[] | where are the templates |
data | glob | glob[] | where is the data |
helpers | glob | glob[] | where are the custom handlebars-helpers (the collection from handlebars-helpers is already included - out of the box) |
target | glob | glob[] | defines, where to put the rendered files |
2.0.9
2 years ago
2.0.7
3 years ago
2.0.8
3 years ago
2.0.5
4 years ago
2.0.6
4 years ago
2.0.3
4 years ago
2.0.2
4 years ago
2.0.4
4 years ago
2.0.1
4 years ago
2.0.0
5 years ago
1.2.3-alpha.28
5 years ago
1.2.3-alpha.8
5 years ago
1.2.3-alpha.23
5 years ago
1.2.2
5 years ago
1.2.1
5 years ago
1.2.0
5 years ago
1.1.2
6 years ago
1.1.1
6 years ago
1.1.0
6 years ago
1.0.4
6 years ago
1.0.3
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago