-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcopier.yml
359 lines (301 loc) · 7.25 KB
/
copier.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
# copier.yml for the Copier new project template tool
# Run it with: `copier copy path/to/harmon-stack path/to/new-project --trust`
# E.g: `copier copy harmon-stack new-project --trust`
project_name:
type: str
help: "NAME: Formal name of the project (Project Name)"
placeholder: "Formal Project Name"
project_slug:
type: str
help: "SLUG: Project slug (project-slug)"
placeholder: "{{ project_name.lower().replace(' ', '-') }}"
default: "{{ project_name.lower().replace(' ', '-') }}"
project_description:
type: str
help: "DESCRIPTION: Short description of the project"
placeholder: "TODO: project_description"
default: "TODO: project_description"
project_type:
type: str
help: "TYPE: Type of project?"
choices:
- code
- project
- business
- documentation
- other
default: code
bunch_add:
type: bool
help: "BUNCH: Add Bunch file to project?"
default: yes
obsidian_project_add:
type: bool
help: "OBSIDIAN: Add Obsidian project to Obsidian directory?"
default: no
license:
type: str
help: "LICENSE: Add license?"
choices:
- mit
- private
default: mit
git_provider:
type: str
help: "GIT PROVIDER: Git provider for the project"
choices:
- github
- gitlab
- other
- none
default: github
when: false
git_init:
type: bool
help: "INIT: Initialize git repo?"
default: yes
github_remote_create:
type: bool
help: "GITHUB REMOTE: Create a remote repo on GitHub (gh repo create)? If yes, choose to create repo from local."
default: no
github_release_init:
type: bool
help: "RELEASE: Create an initial release on GitHub (git tag v0.0.1 & gh release create)?"
default: no
github_collaboration_templates:
type: bool
help: "COLLABORATION: Include GitHub Issue templates, CONTRIBUTING.md, and CODE_OF_CONDUCT.md files?"
default: no
ci_cd:
type: str
help: "CI/CD: Add CI/CD files?"
choices:
- github_actions
- none
- gitlab_ci
default: github_actions
# Mostly default good defaults (Most Nos) below here vvv so usually just smash enter from here
run_task_bootstrap:
type: bool
help: "TASK BOOTSTRAP: Run 'task bootstrap' command?"
default: no
run_task_install:
type: bool
help: "TASK INSTALL: Run 'task install' command?"
default: no
design_files:
type: bool
help: "DESIGN: Add design files (e.g. wireframe tools, architecture diagramming tools, etc.)?"
default: no
code_templates:
type: bool
help: "CODE TEMPLATES: Add code templates? (scripts, web forms, automation, serverless functions, etc.)?"
default: no
infra:
type: str
help: "INFRA: Add Infrastructure, hosting, cloud provider, deployment target, or IaC tools?"
multiselect: true
choices:
- none
- docker
- terraform
- pulumi
- cloudformation
- netlify
- vercel
- unraid
- gcp
- firebase
- supabase
- aws
- do
- azure
- cloudflare
- github_pages
- cloudflare_pages
default: none
observability:
type: str
help: "OBSERVABILITY: Add observability tools"
multiselect: true
choices:
- none
- uptime_kuma
- healthcheck
default: none
# Configuration Management
ansible:
type: bool
help: "Ansible: Add Ansible setup?"
default: yes
data_folder:
type: bool
help: "DATA: Add data folder?"
default: no
devcontainer:
type: bool
help: ".DEVCONTAINER: Add .devcontainer?"
default: no
justfile:
type: bool
help: "Include 'justfile' task runner?"
default: no
when: false
howzit:
type: bool
help: "Include 'howzit' build file?"
default: no
when: false
author_first_name:
type: str
default: Evan
when: false
author_last_name:
type: str
default: Harmon
when: false
author_full_name:
type: str
placeholder: "{{ author_first_name + ' ' + author_last_name }}"
default: "{{ author_first_name + ' ' + author_last_name }}"
when: false
author_email:
type: str
default: "[email protected]"
when: false
author_url:
type: str
default: "https://evanharmon.com"
when: false
author_git_provider_username:
type: str
default: evanharmon1
when: false
project_url:
type: str
default: "TODO: project_url"
repo_url:
type: str
default: "https://{{ git_provider }}.com/{{ author_git_provider_username }}/{{ project_slug }}"
when: false
organization:
type: str
default: "Harmon Ops"
when: false
organization_url:
type: str
default: "https://harmonops.com"
when: false
organization_email:
type: str
default: "[email protected]"
when: false
docker_hub_username:
type: str
default: evanharmon1
when: false
docker_image:
type: str
default: "TODO: docker_image"
when: false
# Paths
projects_directory:
type: str
default: ~/git
when: false
projects_directory_full:
type: str
default: "/Users/{{ author_first_name }}/git"
when: false
bunches_directory:
type: str
default: "/Users/evan/Library/Mobile Documents/com~apple~CloudDocs/Bunches"
when: false
obsidian_directory:
type: str
default: "/Users/evan/Local/Memex"
when: false
# Demographics
country:
type: str
default: United States
when: false
state:
type: str
default: Kansas
when: false
# Date & Time
current_date:
type: str
default: "{{ '%Y-%m-%d' | strftime }}"
when: false
current_year:
type: str
default: "{{ '%Y' | strftime }}"
when: false
current_time:
type: str
default: "{{ '%H:%M:%S' | strftime }}"
when: false
ai_tool:
type: str
choices:
- none
- openai
- anthropic
- perplexity
- gemini
- cursor
defult: none
when: false
# API Keys
# _ai_tool_key:
# when: false
# secret: true
# default: "TODO: ai_tool_key"
# _opanapi_key:
# when: false
# secret: true
# default: "TODO: opanapi_key"
# _anthropic_key:
# when: false
# secret: true
# default: "TODO: anthropic_key"
# _perplexity_key:
# when: false
# secret: true
# default: "TODO: perplexity_key"
# _gemini_key:
# when: false
# secret: true
# default: "TODO: gemini_key"
# _cursor_key:
# when: false
# secret: true
# default: "TODO: cursor_key"
_tasks:
- command: echo "*******************************************************************"
- command: echo "******************** STARTING TASKS SECTION ***********************"
- command: echo "*******************************************************************"
- command: "echo '_bunches_directory is set to: {{ _bunches_directory }}'"
- command: "echo '_obsidian_directory is set to: {{ _obsidian_directory }}'"
- command: git init
when: "{{ git_init }}"
- command: gh repo create
when: "{{ github_remote_create }}"
- command: task ghReleaseInit
when: "{{ github_release_init }}"
- command: task bunchAdd
when: "{{ bunch_add }}"
- command: task obsidianAdd
when: "{{ obsidian_project_add }}"
- command: echo "==================================================================="
- command: echo "============== HARMON STACK PROJECT CREATION COMPLETE ============="
- command: echo "==================================================================="
# Copier Settings
# Automatically use this directory as the root for the copier template
_subdirectory: template
# Automatically set any variables that contain password or key in copier.yml to be marked as secrets and not added to the .copier-answers.yml file
_secret_questions:
- password
- key