Skip to content
This repository has been archived by the owner on May 17, 2019. It is now read-only.

Build initial scaffolder #1

Merged
merged 1 commit into from
Jan 2, 2018
Merged

Build initial scaffolder #1

merged 1 commit into from
Jan 2, 2018

Conversation

mlmorg
Copy link
Contributor

@mlmorg mlmorg commented Dec 16, 2017

This is an initial implementation of a scaffolding tool that can be used to scaffold Fusion projects, plugins and potentially other items in the future. The expectation is that this will stay fairly generic, but consuming libraries (e.g. create-fusion-app or create-fusion-plugin) would include more specific CLIs.

For now, this library has a basic implementation: It takes a path to a template and a project name and copies the files in the template into a new directory, and allows for interpolation of values into files in the template via nunjucks when using a .njk extension.

Not yet implemented is a way to gather options/values to be passed to the nunjucks compiler through an index.js file at the root of the template. In addition, we may want to do dependency installation as part of the scaffolder and possibly more...

Fixes #1

This is an initial implementation of a scaffolding tool that can be used to scaffold Fusion projects, plugins and potentially other items in the future. The expectation is that this will stay fairly generic, but consuming libraries (e.g. `create-fusion-app` or `create-fusion-plugin`) would include more specific CLIs.

For now, this library has a basic implementation: It takes a path to a template and a project name and copies the files in the template into a new directory, and allows for interpolation of values into files in the template via nunjucks when using a `.njk` extension.

Not yet implemented is a way to gather options/values to be passed to the nunjucks compiler through an `index.js` file at the root of the template. In addition, we may want to do dependency installation as part of the scaffolder and possibly more...
@mlmorg mlmorg changed the title Initial Scaffolder Implement Initial Scaffolder Dec 16, 2017
Copy link
Contributor

@KevinGrandon KevinGrandon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leaving an early review here in case you want to land before your trip. Great start!

@mlmorg mlmorg changed the title Implement Initial Scaffolder Build initial scaffolder Jan 2, 2018
@mlmorg
Copy link
Contributor Author

mlmorg commented Jan 2, 2018

!merge

@old-fusion-bot old-fusion-bot bot merged commit fe7abe6 into master Jan 2, 2018
@mlmorg mlmorg deleted the mlmorg/scaffolder branch March 3, 2018 06:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants