2.0.9 • Published 2 years ago

@pro-vision/assemble-lite v2.0.9

Weekly downloads
36
License
ISC
Repository
github
Last release
2 years ago

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

keytypeusage
baseDirpathDefines base directory
partialsglob | glob[]where are the partials
pagesglob | glob[]where are the pages
templatesglob | glob[]where are the templates
dataglob | glob[]where is the data
helpersglob | glob[]where are the custom handlebars-helpers (the collection from handlebars-helpers is already included - out of the box)
targetglob | 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