Docker image for unwrapping template repositories using EJS
-
Create a repository and run:
docker run -v $PWD:/data -e DIR=$PWD -e INIT=true extenda/unwrap-template
This will create the following structrure:
- .template/
- files/
- options.json
- README.md
- init.sh
- README.md (link to .template/README.md)
- .template/
-
Place all the template files in
.template/files
folder. -
Update
.template/options.json
with the default variables that are used to unwrap the template.
-
Update
.template/options.json
file with your specific variables. -
Run:
bash .template/init.sh
or directly:
docker run -v $PWD:/data extenda/unwrap-template
Files from the
files
folder will be copied to the current working directory and transformed with EJS using.template/options.json
as the input.For more info on transformation see EJS docs.