Skip to content

docs: project template design - root and custom directories #474

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
practicalli-johnny opened this issue May 16, 2025 · 0 comments
Open
Assignees

Comments

@practicalli-johnny
Copy link
Contributor

practicalli-johnny commented May 16, 2025

Describe project template design with respect to different directories in resources/template-domain/, e.g. resources/practicalli/

Existing content:
https://practical.li/clojure/clojure-cli/projects/templates/design-templates/

root

All directories and files are copies as they are into the root directory of the new project.

Use for any files that do not need template rules, e.g. the :transform in the template.edn for the project.

Custom directories

Use custom directories when rules should be applied to files and directories when copying.

  • build
  • src
  • test

src and test paths have the domain namespace added, using the top key value, e.g. [["src" "src/{{top/file}}"]] will create files under src/practicalli/

The main src and test namespace can be set using the file key value, e.g. using {{main/file}} src/practicalli/gameboard.cljandtest/practicalli/gameboard_test.clj`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Options
Development

No branches or pull requests

1 participant