diff --git a/cookiecutter.json b/cookiecutter.json deleted file mode 100644 index be66367..0000000 --- a/cookiecutter.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "_meta_description": "This file controls the cookiecutter project creation. Run it with: 'cookiecutter /Users/evan/git/harmon-ops/dev/newProjectTemplate'.", - "_meta_potential_types": [ - "astro", - "astrowind", - "nextjs", - "t3", - "wdc", - "sst", - "python", - "fastapi", - "flask", - "django", - "dashboard", - "control panel", - "go", - "terraform", - "pulumi", - "automattion / pipeline", - "ansible", - "kestra", - "datascience", - "java" - ], - "project_name": "TODO: project_name", - "project_slug": "{{ cookiecutter.project_name.lower().replace(' ', '-') }}", - "project_description": "TODO: project_description", - "project_type": [ - "basic", - "project", - "business", - "script", - "infrastructure", - "docker-compose" - ], - "project_deployment": [ - "netlify", - "vercel", - "gcp", - "firebase", - "supabase", - "aws", - "do", - "azure", - "cloudflare", - "github_pages", - "cloudflare_pages" - ], - "git_init": "no", - "git_provider": ["github", "gitlab"], - "include_github_workflows": "yes", - "include_github_issue_templates": "yes", - "create_github_remote": "no", - "ai_tool": ["openai", "anthropic", "perplexity", "gemini"], - "include_code_templates": "yes", - "include_design_files": "yes", - "include_devcontainer": "no", - "project_url": "TODO: project_url", - "repo_url": "TODO: repo_url - generate from author_github_username", - "organization": "TODO: organization", - "organization_url": "TODO: organization_url", - "organization_email": "TODO: organization_email - generate from info@organization_url", - "author_first_name": "Evan", - "author_last_name": "Harmon", - "author_email": "evan@evanharmon.com", - "author_url": "https://evanharmon.com", - "author_github_username": "evanharmon1", - "license": ["mit", "private"], - "add_obsidian_project": "no", - "run_task_bootstrap": "no", - "run_task_install": "no", - "docker_hub_username": "evanharmon1", - "docker_image": "TODO: docker_image", - "data": { - "author_full_name": "{{ cookiecutter.author_first_name ~ ' ' ~ cookiecutter.author_last_name }}", - "country": "United States", - "state": "Kansas", - "year": "TODO: year", - "datestamp": "TODO: datestamp", - "timestamp": "TODO: timestamp", - "project_color": "TODO: cookiecutter.random_color", - "projects_directory": "~/git", - "projects_directory_full": "/Users/{{ cookiecutter.author_first_name }}/git", - "opanapi_key": "TODO: opanapi_key", - "anthropic_key": "TODO: anthropic_key", - "perplexity_key": "TODO: perplexity_key", - "gemini_key": "TODO: gemini_key" - }, - "_copy_without_render": ["*.html", "*.github", "*scriptTemplates"] -} diff --git a/{{ cookiecutter.project_slug }}/.ansible-lint-ignore b/cp/.ansible-lint-ignore similarity index 100% rename from {{ cookiecutter.project_slug }}/.ansible-lint-ignore rename to cp/.ansible-lint-ignore diff --git a/{{ cookiecutter.project_slug }}/.devcontainer/bash_history b/cp/.devcontainer/bash_history similarity index 100% rename from {{ cookiecutter.project_slug }}/.devcontainer/bash_history rename to cp/.devcontainer/bash_history diff --git a/{{ cookiecutter.project_slug }}/.devcontainer/bashrc.override.sh b/cp/.devcontainer/bashrc.override.sh similarity index 100% rename from {{ cookiecutter.project_slug }}/.devcontainer/bashrc.override.sh rename to cp/.devcontainer/bashrc.override.sh diff --git a/{{ cookiecutter.project_slug }}/.devcontainer/devcontainer.json b/cp/.devcontainer/devcontainer.json.jinja similarity index 98% rename from {{ cookiecutter.project_slug }}/.devcontainer/devcontainer.json rename to cp/.devcontainer/devcontainer.json.jinja index 76ed71f..4de2d7b 100644 --- a/{{ cookiecutter.project_slug }}/.devcontainer/devcontainer.json +++ b/cp/.devcontainer/devcontainer.json.jinja @@ -1,6 +1,6 @@ // For format details, see https://containers.dev/implementors/json_reference/ { - "name": "{{ cookiecutter.project_name }}", + "name": "{{ project_name }}", "dockerComposeFile": [ "../docker-compose.local.yml" ], diff --git a/{{ cookiecutter.project_slug }}/.github/ISSUE_TEMPLATE/bug_report.md b/cp/.github/ISSUE_TEMPLATE/bug_report.md similarity index 100% rename from {{ cookiecutter.project_slug }}/.github/ISSUE_TEMPLATE/bug_report.md rename to cp/.github/ISSUE_TEMPLATE/bug_report.md diff --git a/{{ cookiecutter.project_slug }}/.github/ISSUE_TEMPLATE/config.yml b/cp/.github/ISSUE_TEMPLATE/config.yml similarity index 100% rename from {{ cookiecutter.project_slug }}/.github/ISSUE_TEMPLATE/config.yml rename to cp/.github/ISSUE_TEMPLATE/config.yml diff --git a/{{ cookiecutter.project_slug }}/.github/ISSUE_TEMPLATE/feature_request.md b/cp/.github/ISSUE_TEMPLATE/feature_request.md similarity index 100% rename from {{ cookiecutter.project_slug }}/.github/ISSUE_TEMPLATE/feature_request.md rename to cp/.github/ISSUE_TEMPLATE/feature_request.md diff --git a/{{ cookiecutter.project_slug }}/.github/ISSUE_TEMPLATE/general_issue.md b/cp/.github/ISSUE_TEMPLATE/general_issue.md similarity index 100% rename from {{ cookiecutter.project_slug }}/.github/ISSUE_TEMPLATE/general_issue.md rename to cp/.github/ISSUE_TEMPLATE/general_issue.md diff --git a/{{ cookiecutter.project_slug }}/.github/ISSUE_TEMPLATE/task.md b/cp/.github/ISSUE_TEMPLATE/task.md similarity index 100% rename from {{ cookiecutter.project_slug }}/.github/ISSUE_TEMPLATE/task.md rename to cp/.github/ISSUE_TEMPLATE/task.md diff --git a/{{ cookiecutter.project_slug }}/.github/PULL_REQUEST_TEMPLATE.md b/cp/.github/PULL_REQUEST_TEMPLATE.md similarity index 100% rename from {{ cookiecutter.project_slug }}/.github/PULL_REQUEST_TEMPLATE.md rename to cp/.github/PULL_REQUEST_TEMPLATE.md diff --git a/{{ cookiecutter.project_slug }}/.github/workflows/security.yaml b/cp/.github/workflows/security.yaml similarity index 100% rename from {{ cookiecutter.project_slug }}/.github/workflows/security.yaml rename to cp/.github/workflows/security.yaml diff --git a/{{ cookiecutter.project_slug }}/.github/workflows/validate.yaml b/cp/.github/workflows/validate.yaml similarity index 100% rename from {{ cookiecutter.project_slug }}/.github/workflows/validate.yaml rename to cp/.github/workflows/validate.yaml diff --git a/{{ cookiecutter.project_slug }}/.gitignore b/cp/.gitignore similarity index 100% rename from {{ cookiecutter.project_slug }}/.gitignore rename to cp/.gitignore diff --git a/{{ cookiecutter.project_slug }}/.markdownlint.json b/cp/.markdownlint.json similarity index 100% rename from {{ cookiecutter.project_slug }}/.markdownlint.json rename to cp/.markdownlint.json diff --git a/{{ cookiecutter.project_slug }}/.pre-commit-config.yaml b/cp/.pre-commit-config.yaml similarity index 100% rename from {{ cookiecutter.project_slug }}/.pre-commit-config.yaml rename to cp/.pre-commit-config.yaml diff --git a/{{ cookiecutter.project_slug }}/.shellcheckrc b/cp/.shellcheckrc similarity index 100% rename from {{ cookiecutter.project_slug }}/.shellcheckrc rename to cp/.shellcheckrc diff --git a/{{ cookiecutter.project_slug }}/.vscode/settings.json b/cp/.vscode/settings.json similarity index 100% rename from {{ cookiecutter.project_slug }}/.vscode/settings.json rename to cp/.vscode/settings.json diff --git a/{{ cookiecutter.project_slug }}/Brewfile b/cp/Brewfile.jinja similarity index 98% rename from {{ cookiecutter.project_slug }}/Brewfile rename to cp/Brewfile.jinja index a5205f0..0f8cbea 100644 --- a/{{ cookiecutter.project_slug }}/Brewfile +++ b/cp/Brewfile.jinja @@ -1,5 +1,5 @@ #============================================================================== -# Brewfile - {{ cookiecutter.project_name }} +# Brewfile - {{ project_name }} #============================================================================== # Core #------------------------------------------------------------------------------ diff --git a/{{ cookiecutter.project_slug }}/CONTRIBUTING.md b/cp/CONTRIBUTING.md similarity index 100% rename from {{ cookiecutter.project_slug }}/CONTRIBUTING.md rename to cp/CONTRIBUTING.md diff --git a/{{ cookiecutter.project_slug }}/LICENSE b/cp/LICENSE.jinja similarity index 73% rename from {{ cookiecutter.project_slug }}/LICENSE rename to cp/LICENSE.jinja index f22d224..5d9d68e 100644 --- a/{{ cookiecutter.project_slug }}/LICENSE +++ b/cp/LICENSE.jinja @@ -1,7 +1,7 @@ -{%- if cookiecutter.license == "mit" -%} +{%- if license == "mit" -%} MIT License -Copyright (c) 2024 {{ cookiecutter.data.author_full_name }} +Copyright (c) 2024 {{ author_full_name }} Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -21,23 +21,23 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -{%- elif cookiecutter.license == "private" -%} -{{ cookiecutter.project_name }} License Agreement +{%- elif license == "private" -%} +{{ project_name }} License Agreement -Version 1.0, {{ cookiecutter.data.year }} +Version 1.0, {{ year }} 1. Grant of License -This software and associated documentation files (the “Software”) are licensed, not sold, to you by {{ cookiecutter.organization }} (“Licensor”) for use strictly in accordance with the terms of this License Agreement. Subject to your compliance with the terms of this License, Licensor grants you a limited, non-exclusive, non-transferable, and revocable license to use the Software solely for your personal or internal business purposes. +This software and associated documentation files (the “Software”) are licensed, not sold, to you by {{ organization }} (“Licensor”) for use strictly in accordance with the terms of this License Agreement. Subject to your compliance with the terms of this License, Licensor grants you a limited, non-exclusive, non-transferable, and revocable license to use the Software solely for your personal or internal business purposes. 2. Restrictions You may not: - • Copy, modify, distribute, or create derivative works of the Software. - • Sublicense, rent, lease, or lend the Software. - • Reverse engineer, decompile, or disassemble the Software, except where such restriction is prohibited by applicable law. - • Use the Software for any commercial or public use without explicit written permission from Licensor. + • Copy, modify, distribute, or create derivative works of the Software. + • Sublicense, rent, lease, or lend the Software. + • Reverse engineer, decompile, or disassemble the Software, except where such restriction is prohibited by applicable law. + • Use the Software for any commercial or public use without explicit written permission from Licensor. 3. Ownership @@ -57,7 +57,7 @@ TO THE EXTENT PERMITTED BY APPLICABLE LAW, LICENSOR SHALL NOT BE LIABLE FOR ANY 7. Governing Law -This License shall be governed by and construed in accordance with the laws of {{ cookiecutter.data.country }}. Any legal action or proceeding arising under this License shall be brought exclusively in the courts located in {{ cookiecutter.data.country }}. +This License shall be governed by and construed in accordance with the laws of {{ country }}. Any legal action or proceeding arising under this License shall be brought exclusively in the courts located in {{ country }}. 8. Entire Agreement diff --git a/{{ cookiecutter.project_slug }}/README.md b/cp/README.md.jinja similarity index 82% rename from {{ cookiecutter.project_slug }}/README.md rename to cp/README.md.jinja index 10410d8..3e299aa 100644 --- a/{{ cookiecutter.project_slug }}/README.md +++ b/cp/README.md.jinja @@ -1,5 +1,5 @@ -# {{ cookiecutter.project_name }} -Author: {{ cookiecutter.data.author_full_name }} +# {{ project_name }} +Author: {{ author_full_name }} ## Setup & Installation @@ -43,4 +43,4 @@ Alternatively, you can use `just` via the `justfile` ### Building, Deploying, & CI/CD ## Todo -[todo.md](<{{ cookiecutter.project_slug }}/todo.md>) +[todo.md]({{ project_slug }}/todo.md) diff --git a/{{ cookiecutter.project_slug }}/Taskfile.yml b/cp/Taskfile.yml.jinja similarity index 96% rename from {{ cookiecutter.project_slug }}/Taskfile.yml rename to cp/Taskfile.yml.jinja index 4ee7c40..38cbabc 100644 --- a/{{ cookiecutter.project_slug }}/Taskfile.yml +++ b/cp/Taskfile.yml.jinja @@ -1,3 +1,4 @@ +# Taskfile for {{ project_name }} version: "3" tasks: boostrap: diff --git a/{{ cookiecutter.project_slug }}/codeTemplates/automationTemplates/ansible/touch b/cp/codeTemplates/automationTemplates/ansible/touch similarity index 100% rename from {{ cookiecutter.project_slug }}/codeTemplates/automationTemplates/ansible/touch rename to cp/codeTemplates/automationTemplates/ansible/touch diff --git a/{{ cookiecutter.project_slug }}/codeTemplates/automationTemplates/ci/touch b/cp/codeTemplates/automationTemplates/ci/touch similarity index 100% rename from {{ cookiecutter.project_slug }}/codeTemplates/automationTemplates/ci/touch rename to cp/codeTemplates/automationTemplates/ci/touch diff --git a/{{ cookiecutter.project_slug }}/codeTemplates/automationTemplates/kestra/touch b/cp/codeTemplates/automationTemplates/kestra/touch similarity index 100% rename from {{ cookiecutter.project_slug }}/codeTemplates/automationTemplates/kestra/touch rename to cp/codeTemplates/automationTemplates/kestra/touch diff --git a/{{ cookiecutter.project_slug }}/codeTemplates/scriptTemplates/goScriptTemplate.go b/cp/codeTemplates/scriptTemplates/goScriptTemplate.go similarity index 100% rename from {{ cookiecutter.project_slug }}/codeTemplates/scriptTemplates/goScriptTemplate.go rename to cp/codeTemplates/scriptTemplates/goScriptTemplate.go diff --git a/{{ cookiecutter.project_slug }}/codeTemplates/scriptTemplates/pythonScriptTemplate.py b/cp/codeTemplates/scriptTemplates/pythonScriptTemplate.py similarity index 100% rename from {{ cookiecutter.project_slug }}/codeTemplates/scriptTemplates/pythonScriptTemplate.py rename to cp/codeTemplates/scriptTemplates/pythonScriptTemplate.py diff --git a/{{ cookiecutter.project_slug }}/codeTemplates/scriptTemplates/shellScriptTemplate.sh b/cp/codeTemplates/scriptTemplates/shellScriptTemplate.sh similarity index 100% rename from {{ cookiecutter.project_slug }}/codeTemplates/scriptTemplates/shellScriptTemplate.sh rename to cp/codeTemplates/scriptTemplates/shellScriptTemplate.sh diff --git a/{{ cookiecutter.project_slug }}/codeTemplates/serverlessFunctionTemplates/touch b/cp/codeTemplates/serverlessFunctionTemplates/touch similarity index 100% rename from {{ cookiecutter.project_slug }}/codeTemplates/serverlessFunctionTemplates/touch rename to cp/codeTemplates/serverlessFunctionTemplates/touch diff --git a/{{ cookiecutter.project_slug }}/codeTemplates/webTemplates/netlifyForm b/cp/codeTemplates/webTemplates/netlifyForm similarity index 100% rename from {{ cookiecutter.project_slug }}/codeTemplates/webTemplates/netlifyForm rename to cp/codeTemplates/webTemplates/netlifyForm diff --git a/cp/copier.yml b/cp/copier.yml new file mode 100644 index 0000000..403f17a --- /dev/null +++ b/cp/copier.yml @@ -0,0 +1,188 @@ +# questions for Copier new project template +# This file controls the Copier new project utilty. +# Run it with: `copier path/to/template path/to/destination` E.g, `copier harmon-stack .`. + +# Potential types: astro, astrowind, nextjs, t3, wdc, sst, python, fastapi, flask, django, dashboard, control panel, go, terraform, pulumi, automattion / pipeline, ansible, kestra, datascience, java + +# "_copy_without_render": ["*.html", "*.github", "*scriptTemplates"] + +project_name: + type: str + default: "Project Name" + +project_slug: + type: str + default: "project-slug" + # "{{ project_name.lower().replace(' ', '-') }}" + +project_description: + type: str + default: "TODO: project_description" + +project_type: + type: str + choices: + - basic + - project + - business + - script + - infrastructure + - docker-compose + +project_deployment: + type: str + choices: + - netlify + - vercel + - gcp + - firebase + - supabase + - aws + - do + - azure + - cloudflare + - github_pages + - cloudflare_pages + +git_init: + type: bool + default: no + +git_provider: + type: str + choices: + - github + - gitlab + +include_github_workflows: + type: bool + default: yes + +include_github_issue_templates: + type: bool + default: yes + +create_github_remote: + type: bool + default: no + +ai_tool: + type: str + choices: + - openai + - anthropic + - perplexity + - gemini + +include_code_templates: + type: bool + default: yes + +include_design_files: + type: bool + default: yes + +include_devcontainer: + type: bool + default: no + +repo_url: + type: str + default: "https://{{ git_provider }}.com/{{ author_git_provider_username }}/{{ project_slug }}" + +project_url: + type: str + default: "TODO: project_url" + +organization: + type: str + default: "TODO: organization" + +organization_url: + type: str + default: "TODO: organization_url" + +organization_email: + type: str + default: "info@{{ organization_url }}" + +author_first_name: + type: str + default: Evan + +author_last_name: + type: str + default: Harmon + +author_full_name: + type: str + default: "Evan Harmon" + # "{{ author_first_name }} + {{ author_last name }}" + +author_email: + type: str + default: "evan@evanharmon.com" + +author_url: + type: str + default: "https://evanharmon.com" + +author_git_provider_username: + type: str + default: evanharmon1 + +license: + type: str + choices: + - mit + - private + +add_obsidian_project: + type: bool + default: no + +run_task_bootstrap: + type: bool + default: no + +run_task_install: + type: bool + default: no + +docker_hub_username: + type: str + default: evanharmon1 + +docker_image: + type: str + default: "TODO: docker_image" + +projects_directory: ~/git + +projects_directory_full: "/Users/{{ author_first_name }}/git" + +country: United States + +state: Kansas + +year: "TODO: year" + +datestamp: "TODO: datestamp" + +timestamp: "TODO: timestamp" + +project_color: "TODO: random_color" + +opanapi_key: "TODO: opanapi_key" + +anthropic_key: "TODO: anthropic_key" + +perplexity_key: "TODO: perplexity_key" + +gemini_key: "TODO: gemini_key" + +tasks: + - before: + - command: echo "Starting project generation..." + - after: + - command: echo "Project generated successfully." diff --git a/{{ cookiecutter.project_slug }}/data/touch b/cp/data/touch similarity index 100% rename from {{ cookiecutter.project_slug }}/data/touch rename to cp/data/touch diff --git a/{{ cookiecutter.project_slug }}/design/archHomeNetwork.graphml b/cp/design/archHomeNetwork.graphml similarity index 100% rename from {{ cookiecutter.project_slug }}/design/archHomeNetwork.graphml rename to cp/design/archHomeNetwork.graphml diff --git a/{{ cookiecutter.project_slug }}/design/archTemplate.md b/cp/design/archTemplate.md similarity index 100% rename from {{ cookiecutter.project_slug }}/design/archTemplate.md rename to cp/design/archTemplate.md diff --git a/{{ cookiecutter.project_slug }}/design/archUseCase.graphml b/cp/design/archUseCase.graphml similarity index 100% rename from {{ cookiecutter.project_slug }}/design/archUseCase.graphml rename to cp/design/archUseCase.graphml diff --git a/{{ cookiecutter.project_slug }}/design/colors b/cp/design/colors similarity index 100% rename from {{ cookiecutter.project_slug }}/design/colors rename to cp/design/colors diff --git a/{{ cookiecutter.project_slug }}/design/favicon b/cp/design/favicon similarity index 100% rename from {{ cookiecutter.project_slug }}/design/favicon rename to cp/design/favicon diff --git a/{{ cookiecutter.project_slug }}/design/heroImage b/cp/design/heroImage similarity index 100% rename from {{ cookiecutter.project_slug }}/design/heroImage rename to cp/design/heroImage diff --git a/{{ cookiecutter.project_slug }}/design/icon b/cp/design/icon similarity index 100% rename from {{ cookiecutter.project_slug }}/design/icon rename to cp/design/icon diff --git a/{{ cookiecutter.project_slug }}/design/image1 b/cp/design/image1 similarity index 100% rename from {{ cookiecutter.project_slug }}/design/image1 rename to cp/design/image1 diff --git a/{{ cookiecutter.project_slug }}/design/image2 b/cp/design/image2 similarity index 100% rename from {{ cookiecutter.project_slug }}/design/image2 rename to cp/design/image2 diff --git a/{{ cookiecutter.project_slug }}/design/image3 b/cp/design/image3 similarity index 100% rename from {{ cookiecutter.project_slug }}/design/image3 rename to cp/design/image3 diff --git a/{{ cookiecutter.project_slug }}/design/logo b/cp/design/logo similarity index 100% rename from {{ cookiecutter.project_slug }}/design/logo rename to cp/design/logo diff --git a/{{ cookiecutter.project_slug }}/design/profileImage b/cp/design/profileImage similarity index 100% rename from {{ cookiecutter.project_slug }}/design/profileImage rename to cp/design/profileImage diff --git a/{{ cookiecutter.project_slug }}/design/wireframeTemplate.konty b/cp/design/wireframeTemplate.konty similarity index 100% rename from {{ cookiecutter.project_slug }}/design/wireframeTemplate.konty rename to cp/design/wireframeTemplate.konty diff --git a/{{ cookiecutter.project_slug }}/docs/CHECKLIST.md b/cp/docs/CHECKLIST.md.jinja similarity index 93% rename from {{ cookiecutter.project_slug }}/docs/CHECKLIST.md rename to cp/docs/CHECKLIST.md.jinja index 6c61b43..097fbf1 100644 --- a/{{ cookiecutter.project_slug }}/docs/CHECKLIST.md +++ b/cp/docs/CHECKLIST.md.jinja @@ -1,6 +1,6 @@ -# Checklist - {{ cookiecutter.project_name }} +# Checklist - {{ project_name }} -- [ ] cd {{ cookiecutter.data.projects_directory }}/{{ cookiecutter.project_slug }} +- [ ] cd {{ projects_directory }}/{{ project_slug }} - [ ] git init or import template, etc. - [ ] create initial release - `git tag -a v0.0.1 -m "Initial release version 0.0.1"` - [ ] Create releast in GitHub (Or gh cli - gh relase create) diff --git a/{{ cookiecutter.project_slug }}/docs/howzit.md b/cp/docs/howzit.md.jinja similarity index 72% rename from {{ cookiecutter.project_slug }}/docs/howzit.md rename to cp/docs/howzit.md.jinja index 9c762b1..bf4b8c0 100644 --- a/{{ cookiecutter.project_slug }}/docs/howzit.md +++ b/cp/docs/howzit.md.jinja @@ -1,4 +1,4 @@ -# Howzit - {{ cookiecutter.project_name }} +# Howzit - {{ project_name }} [howzit - BrettTerpstra.com](https://brettterpstra.com/projects/howzit/) ## Dev diff --git a/{{ cookiecutter.project_slug }}/infra/docker/docker-compose-db.yml b/cp/infra/docker/docker-compose-db.yml similarity index 100% rename from {{ cookiecutter.project_slug }}/infra/docker/docker-compose-db.yml rename to cp/infra/docker/docker-compose-db.yml diff --git a/{{ cookiecutter.project_slug }}/infra/docker/docker-compose.yml b/cp/infra/docker/docker-compose.yml similarity index 100% rename from {{ cookiecutter.project_slug }}/infra/docker/docker-compose.yml rename to cp/infra/docker/docker-compose.yml diff --git a/{{ cookiecutter.project_slug }}/infra/docker/dockerVol/a b/cp/infra/docker/dockerVol/a similarity index 100% rename from {{ cookiecutter.project_slug }}/infra/docker/dockerVol/a rename to cp/infra/docker/dockerVol/a diff --git a/{{ cookiecutter.project_slug }}/justfile b/cp/justfile.jinja similarity index 78% rename from {{ cookiecutter.project_slug }}/justfile rename to cp/justfile.jinja index 29491f9..65ccae2 100644 --- a/{{ cookiecutter.project_slug }}/justfile +++ b/cp/justfile.jinja @@ -1,4 +1,4 @@ -# Example Justfile - {{ cookiecutter.project_name }} +# Example Justfile - {{ project_name }} alias b := build diff --git a/{{ cookiecutter.project_slug }}/netlify.toml b/cp/netlify.toml similarity index 100% rename from {{ cookiecutter.project_slug }}/netlify.toml rename to cp/netlify.toml diff --git a/cp/requirements.txt.jinja b/cp/requirements.txt.jinja new file mode 100644 index 0000000..9d7c45f --- /dev/null +++ b/cp/requirements.txt.jinja @@ -0,0 +1,3 @@ +# Python requirements for {{ project_name }} + +whispers diff --git a/{{ cookiecutter.project_slug }}/test/whisperConfig.yml b/cp/test/whisperConfig.yml similarity index 100% rename from {{ cookiecutter.project_slug }}/test/whisperConfig.yml rename to cp/test/whisperConfig.yml diff --git a/{{ cookiecutter.project_slug }}/todo.md b/cp/todo.md.jinja similarity index 80% rename from {{ cookiecutter.project_slug }}/todo.md rename to cp/todo.md.jinja index 59ac25f..a9966f7 100644 --- a/{{ cookiecutter.project_slug }}/todo.md +++ b/cp/todo.md.jinja @@ -1,4 +1,4 @@ -# Todo - {{ cookiecutter.project_name }} +# Todo - {{ project_name }} Use with [na by BrettTerpstra.com](https://brettterpstra.com/projects/na/) Also putting todos inline with VS Code Tree Extesion diff --git a/{{ cookiecutter.project_slug }}/{{ cookiecutter.project_slug}}.code-workspace b/cp/{{ project_slug}}.code-workspace.jinja similarity index 100% rename from {{ cookiecutter.project_slug }}/{{ cookiecutter.project_slug}}.code-workspace rename to cp/{{ project_slug}}.code-workspace.jinja diff --git a/cp/{{_copier_conf.answers_file}}.jinja b/cp/{{_copier_conf.answers_file}}.jinja new file mode 100644 index 0000000..ea97bd4 --- /dev/null +++ b/cp/{{_copier_conf.answers_file}}.jinja @@ -0,0 +1,2 @@ +# Changes here will be overwritten by Copier +{{ _copier_answers|to_nice_yaml -}} \ No newline at end of file diff --git a/hooks/post_gen_project.py b/hooks/post_gen_project.py deleted file mode 100644 index 1e2d75a..0000000 --- a/hooks/post_gen_project.py +++ /dev/null @@ -1,42 +0,0 @@ -import os -import shutil - -def remove_folder_if_not_needed(root_path, folder_name, condition): - """ - Remove the specified folder if the condition is met. - - :param root_path: The root path of the generated project. - :param folder_name: The name of the folder to remove (relative to the root path). - :param condition: The condition that must be met to remove the folder. - """ - folder_path = os.path.join(root_path, folder_name) # Construct the full path - - if condition == 'no': - # Check if the folder exists before trying to remove it - if os.path.isdir(folder_path): - shutil.rmtree(folder_path, ignore_errors=True) - print(f"Removed folder: {folder_path}") - else: - print(f"Folder {folder_path} does not exist, skipping.") - -def main(): - # Get the root directory of the generated project (where the script is running) - root_path = os.getcwd() - print(f"root_path: {root_path}") - - # The cookiecutter context - devcontainer_condition = '{{ cookiecutter.include_devcontainer }}' - code_templates_condition = '{{ cookiecutter.include_code_templates }}' - design_files_condition = '{{ cookiecutter.include_design_files }}' - github_workflows_condition = '{{ cookiecutter.include_github_workflows }}' - github_issue_templates_condition = '{{ cookiecutter.include_github_issue_templates }}' - - # Use the reusable function for different folders - remove_folder_if_not_needed(root_path, '.devcontainer', devcontainer_condition) - remove_folder_if_not_needed(root_path, 'codeTemplates', code_templates_condition) - remove_folder_if_not_needed(root_path, 'design', design_files_condition) - remove_folder_if_not_needed(root_path, '.github/workflows', github_workflows_condition) - remove_folder_if_not_needed(root_path, '.github/ISSUE_TEMPLATE', github_issue_templates_condition) - -if __name__ == "__main__": - main() diff --git a/hooks/pre_gen_project.py b/hooks/pre_gen_project.py deleted file mode 100644 index ebc6a6f..0000000 --- a/hooks/pre_gen_project.py +++ /dev/null @@ -1,38 +0,0 @@ -# import os -# import datetime -# import json - -# # OPEN AI False solution - use jinja extensions instead - -# # Function to update the context in the cookiecutter configuration -# def update_cookiecutter_context(context_file, context_updates): -# with open(context_file, 'r') as f: -# context = json.load(f) - -# # Update context with the new variables -# context.update(context_updates) - -# with open(context_file, 'w') as f: -# json.dump(context, f, indent=4) - -# def main(): -# # Get current time, date, and directory -# current_time = datetime.datetime.now().strftime("%H:%M:%S") -# current_date = datetime.datetime.now().strftime("%Y-%m-%d") -# current_directory = os.getcwd() - -# # Path to the cookiecutter context file -# context_file = 'cookiecutter.json' - -# # Dictionary of new context variables -# context_updates = { -# "current_time": current_time, -# "current_date": current_date, -# "current_directory": current_directory -# } - -# # Update the cookiecutter.json context -# update_cookiecutter_context(context_file, context_updates) - -# if __name__ == "__main__": -# main() diff --git a/{{ cookiecutter.project_slug }}/.env/.env.local b/{{ cookiecutter.project_slug }}/.env/.env.local deleted file mode 100644 index fb96d2d..0000000 --- a/{{ cookiecutter.project_slug }}/.env/.env.local +++ /dev/null @@ -1,4 +0,0 @@ -#============================================================================== -# .env.local -#============================================================================== -isProd=False diff --git a/{{ cookiecutter.project_slug }}/.env/.env.prod b/{{ cookiecutter.project_slug }}/.env/.env.prod deleted file mode 100644 index 469def4..0000000 --- a/{{ cookiecutter.project_slug }}/.env/.env.prod +++ /dev/null @@ -1,4 +0,0 @@ -#============================================================================== -# .env.prod -#============================================================================== -isProd=True diff --git a/{{ cookiecutter.project_slug }}/.meta/Code Project - {{ cookiecutter.project_name }}.bunch b/{{ cookiecutter.project_slug }}/.meta/Code Project - {{ cookiecutter.project_name }}.bunch deleted file mode 100644 index 7b871bb..0000000 --- a/{{ cookiecutter.project_slug }}/.meta/Code Project - {{ cookiecutter.project_name }}.bunch +++ /dev/null @@ -1,9 +0,0 @@ ---- -title: Code Project - {{ cookiecutter.project_name }} 🪛 ---- -< snippet.code - -$ open -a 'Visual Studio Code' {{ cookiecutter.data.projects_directory }}/{{ cookiecutter.project_slug }}/{{ cookiecutter.project_slug }}.code-workspace -%Visual Studio Code^ - -< snippet.maximize diff --git a/{{ cookiecutter.project_slug }}/requirements.txt b/{{ cookiecutter.project_slug }}/requirements.txt deleted file mode 100644 index 1244581..0000000 --- a/{{ cookiecutter.project_slug }}/requirements.txt +++ /dev/null @@ -1,3 +0,0 @@ -# Python requirements for {{ cookiecutter.project_name }} - -whispers