-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Create the system for scaffolding a project from templates that are placed in https://github.com/lancer-kit/forge-templates repo.
Each template is expected to be in separate directory.
Specification for the templates will be placed in schema.yml file.
The schema for such template system will be defined by:
- template key
- template folder name prefix
- necessary template fields spec
- field name
- field type
Expected schema.yml file structure:

Expected .forge directory structure:

As a result Scaffold will have such algorithm of project generation:
- read
schema.ymlfile in.forgedirectory; - read CLI flag values (Go Modules, Git Repository integration etc.) and validate them;
- form
map[string]interface{}struct for template population; - validate the templates with template schema fields spec;
- generate the project to the CLI flag
--outpath.
The schema file, along with templates directories and predefined Bindata code will be placed in .forge directory.
Metadata
Metadata
Assignees
Labels
No labels
