I’m trying to use deps-new to generate a template, then use that template to generate a new project.
clojure -Tnew template :name dfornika/mytemplate
This creates a new directory ‘mytemplate’ with this directory structure.
mytemplate
├── build.clj
├── CHANGELOG.md
├── deps.edn
├── doc
│ └── intro.md
├── LICENSE
├── pom.xml
├── README.md
├── resources
│ └── dfornika
│ └── mytemplate
│ ├── root
│ │ ├── build.clj
│ │ ├── CHANGELOG.md
│ │ ├── deps.edn
│ │ ├── doc
│ │ │ └── intro.md
│ │ ├── LICENSE
│ │ ├── pom.xml
│ │ ├── README.md
│ │ └── resources
│ ├── src
│ │ └── main.clj
│ ├── template.edn
│ └── test
│ └── main_test.clj
├── src
│ └── dfornika
│ └── mytemplate.clj
└── test
└── dfornika
└── mytemplate_test.clj
Now I’d like to use that template to generate a project.
cd mytemplate
clj -Tnew create :template dfornika/mytemplate :name dfornika/newproject :target-dir ../newproject
…but I’m getting an error message:
Execution error (ExceptionInfo) at org.corfield.new/create (new.clj:41).
Unable to find template.edn for dfornika/mytemplate
Full report at:
/tmp/clojure-7825932627563344434.edn
Does anyone have advice on what I may be doing wrong?