Skip to content

Commit 3da0d52

Browse files
committed
Update structure to support multiple templates
1 parent b8615c4 commit 3da0d52

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+57
-45
lines changed

copier.yaml

Lines changed: 57 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,69 @@
1+
_subdirectory: "templates/"
2+
13
# pytauri-app
24
project_name:
3-
type: str
4-
help: Project name
5-
default: pytauri-app
5+
type: str
6+
help: Project name
7+
default: pytauri-app
68

79
package_type:
8-
type: str
9-
help: Package type
10-
choices:
11-
- wheel
12-
- complete
13-
default: wheel
10+
type: str
11+
help: Package type
12+
choices:
13+
- wheel
14+
- complete
15+
default: wheel
1416

1517

1618
# com.identifier.app
1719
identifier:
18-
type: str
19-
help: Identifier
20-
default: "com.{{project_name}}.app"
20+
type: str
21+
help: Identifier
22+
default: "com.{{ project_name }}.app"
2123

2224
package_manager:
23-
type: str
24-
help: Choose your package manager
25-
choices:
26-
- pnpm
27-
- yarn
28-
- npm
29-
- deno
30-
- bun
25+
type: str
26+
help: Choose your package manager
27+
choices:
28+
- pnpm
29+
# - yarn
30+
- npm
31+
# - deno
32+
# - bun
3133

3234
ui_template:
33-
type: str
34-
help: Choose your ui template
35-
choices:
36-
- Vanilla
37-
- Vue
38-
- Svelte
39-
- React
40-
- Solid
41-
- Angular
42-
- Preact
43-
default:
44-
Vanilla
45-
46-
ui_flavor:
47-
type: str
48-
help: Choose your ui flavor
49-
choices:
50-
- TypeScript
51-
- JavaScript
52-
53-
# TODO: Only execute init.py on complete package_type.
54-
# TODO: Remove scripts directory after copying.
55-
_tasks:
56-
- ["{{ _copier_python }}", scripts/init.py]
57-
# - "rmdir {{ project_name }}/scripts"
35+
type: str
36+
help: Choose your ui template
37+
choices:
38+
# - Vanilla
39+
- Vue
40+
# - Svelte
41+
- React
42+
# - Solid
43+
# - Angular
44+
# - Preact
45+
default:
46+
Vue
47+
48+
# We force TypeScript for now.
49+
#ui_flavor:
50+
# type: str
51+
# help: Choose your ui flavor
52+
# choices:
53+
# - TypeScript
54+
# - JavaScript
55+
56+
_message_after_copy: |
57+
Done. Now run:
58+
59+
$ cd {{ project_name }}
60+
$ uv venv --python-preference only-system
61+
$ .venv\Scripts\activate
62+
$ uv pip install -e src-tauri\src-python
63+
64+
65+
## TODO: Only execute init.py on complete package_type.
66+
## TODO: Remove scripts directory after copying.
67+
#_tasks:
68+
# - ["{{ _copier_python }}", scripts/init.py]
69+
## - "rmdir {{ project_name }}/scripts"

templates/{{ '.' }}/{{ project_name }}/src-tauri/src-python/src/{{ project_name }}/py.typed

Whitespace-only changes.

0 commit comments

Comments
 (0)