-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathcopier.yml
72 lines (62 loc) · 1.93 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
project_name:
type: str
help: >-
Project name - used as both the Python package name and service name.
Must be lowercase, start with a letter, and use only letters and underscores.
Examples: my_project, awesome_django_app
default: "sampleapp"
validator: >-
[% if not project_name %]
Project name cannot be empty
[% elif not (project_name | regex_search('^[a-z][a-z_]*[a-z]$')) %]
Project name must be lowercase, start and end with a letter, and contain only letters and underscores
[% elif '_-' in project_name or '-_' in project_name or '__' in project_name %]
Project name cannot contain consecutive separators
[% elif project_name | length > 50 %]
Project name must be less than 50 characters
[% endif %]
project_name_verbose:
type: str
help: Human-friendly project name
default: "[[ project_name | replace('_', ' ') | title ]]"
author_name:
type: str
help: Author's name for pyproject and django admins
default: Anonymous
domain_name:
type: str
help: Production domain name
default: example.com
author_email:
type: str
help: Author's email for pyproject and django admins
default: "[[ author_name | lower | replace(' ', '-') ]]@[[domain_name]]"
description:
type: str
multiline: true
help: A short description of the project
default: A short description of the project.
version:
type: str
help: Initial version number
default: 0.1.0
_subdirectory: template
# Templates Customization
_envops:
block_end_string: "%]"
block_start_string: "[%"
comment_end_string: "#]"
comment_start_string: "[#"
keep_trailing_newline: true
variable_end_string: "]]"
variable_start_string: "[["
_tasks:
- "chmod +x manage.py"
- "chmod +x scripts/*.sh"
- "mise trust"
_message_after_copy: |
Project successfully created!
For new projects, run `mise new-project` from the project root to:
- setup database
- install python packages
- install node packages