1.1.11 • Published 3 years ago

fusion-scaffolder v1.1.11

Weekly downloads
10
License
MIT
Repository
github
Last release
3 years ago

Build status

fusion-scaffolder

Scaffolds new projects from templates.

Installation

Requires node 8.0.0 or above.

yarn add fusion-scaffolder

Usage

As an API:

import scaffold from 'fusion-scaffolder';

scaffold({
  path: 'path/to/template',
  project: 'project-name'
}).then(...).catch(...);

As a CLI:

Usage: fusion-scaffold <path-to-template> <project-name>

Options:

  -h, --help     Output usage information
  -v, --version  Output the version number

Template

The template from which a project is scaffolded MUST have a content/ folder and an index.js file at the root. The content/ folder will hold the template files that will be used in a newly scaffolded project. The index.js file will be called prior to scaffolding in order to gather required context/values to be passed to files that are compiled via nunjucks. Any .njk file in the content/ folder will be compiled with nunjucks, using values obtained via the scaffold CLI as well as the implementation of index.js, and the .njk extension will be removed upon scaffolding.

1.1.11

3 years ago

1.1.10

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.9

5 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

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

0.0.2

7 years ago

0.0.2-0

7 years ago

0.0.1

7 years ago