-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcopier.yml
101 lines (83 loc) · 2.07 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
_subdirectory: template
_templates_suffix: .jinja
_answers_file: .copier-answers.fastapi-quasar.yml
_tasks:
- "[ -f README.md ] || touch backend/README.md"
- "poetry --directory backend install"
- "npm --prefix frontend install"
- "[ -d .git ] && pre-commit install --install-hooks || true"
project_name:
type: str
help: Project name
project_description:
type: str
help: Project description
repository_provider:
type: str
help: Repository provider
default: GitHub
choices:
- GitHub
- GitLab
repository_host:
type: str
help: Repository host
when: "{{ repository_provider == 'GitLab' }}"
default: "{{ 'gitlab.com' if repository_provider == 'GitLab' else 'github.com' }}"
repository_username:
type: str
help: Repository username
repository_name:
type: str
help: Repository name
default: "{{ project_name|lower|replace('_', '-')|replace(' ', '-') }}"
repository_url:
type: str
help: Repository URL
default: "https://{{ repository_host if repository_provider == 'GitLab' else 'github.com' }}/{{ repository_username }}/{{ repository_name }}"
copyright_license:
type: str
help: Project license
default: MIT
choices:
- MIT
-
use_docker:
type: bool
help: Use Docker?
default: true
package_distribution_name:
type: str
help: Package distribution name (for `pip install NAME`)
default: "{{ project_name|lower|replace('_', '-')|replace(' ', '-') }}"
package_import_name:
type: str
help: Package import name (for `import NAME` in Python code)
default: "{{ project_name|lower|replace('-', '_')|replace(' ', '_') }}"
use_dotenv:
type: bool
help: Use dotenv?
default: true
use_database:
type: bool
help: Use database?
default: false
when: "{{ use_dotenv }}"
database_type:
type: str
help: Database type
default: mysql
when: "{{ use_database }}"
choices:
- mysql
- postgres
- sqlite
use_database_migrations:
type: bool
help: Use database migrations?
default: "{{ true if use_database else false }}"
when: "{{ use_database }}"
use_versionizer:
type: bool
help: Use versionizer?
default: true