You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,20 +15,19 @@ This project is a cross-desktop platform to making webapps with python as the ba
15
15
- Selecting between GTK or Qt.
16
16
- This app is built with the intention to make it cross-desktop platform. For Windows, Linux and macOS. GTK and Qt is a option for Linux, as this is required for picking the correct renderer. And this options is only meant for Linux and will be asked in all platform.
17
17
- Selecting frameworks.
18
-
- The user currently has 4 different options to pick for their project: That being:
18
+
- The user currently has 4 different options to pick for their project:
19
19
- Vanilla
20
20
- Svelte
21
21
- React
22
22
- Vue
23
23
- Selecting variant.
24
24
- This being able to use JavaScript or TypeScript.
25
25
- Selecting their NodeJS Package Manager
26
-
- The user has 2 different options to pick for their project: That being:
26
+
- The user has 2 different options to pick for their project:
27
27
- npm : NodeJS's default package manager.
28
28
- pnpm : A faster alternative to npm.
29
-
-
30
29
-[@src/initialize.py](src/initialize.py)
31
-
-This is where when the user confirms that it's ready to be initialized, it starts here. This includes:
30
+
-When the user confirms that it's ready to be initialized, it starts here. This includes:
32
31
- Copying icons.
33
32
- From `{pyderProjectRoot}/icon/*` to `{userProject}/icon/`
34
33
- Creating file structure.
@@ -42,7 +41,7 @@ This project is a cross-desktop platform to making webapps with python as the ba
42
41
- Dev mode being, running the page at `http://localhost:5173`.
43
42
- Compiled mode being, running the page at `src/frontend/dist/index.html`.
44
43
-`run.py`
45
-
-This is where the user can run the flags like `dev`, `compile`, `test`.
44
+
-The user can run the flags like `dev`, `compile`, `test`.
46
45
-`dev` flag:
47
46
- This will run the development server in `src/frontend/` from `subprocess.Popen`, which will open the server in a thread.
48
47
- And after a second, it will run pywebview and opening a page at `http://localhost:5173`.
@@ -54,7 +53,7 @@ This project is a cross-desktop platform to making webapps with python as the ba
54
53
- It first builds the app in `src/frontend/` with nothing special. Just doing `npm/pnpm run build`.
55
54
- Then, instead of building for python, it will open the window. That's it.
56
55
-`src/backend/api.py`
57
-
-This is where the user can do all their Python contacting things. There's only one function and that's getting the user's operating system, and then returning their config path.
56
+
-The user can do all their Python contacting things. There's only one function and that's getting the user's operating system, and then returning their config path.
58
57
-`.gitignore`
59
58
- This just has the ignores for pnpm, python and other things. Mainly used when the user wants to put their project to GitHub, GitLab, GitBucket, etc...
60
59
-`pyder.py`
@@ -104,7 +103,9 @@ Instead of using [@main.py](main.py), you should use [@tests.py](tests.py) and c
104
103
105
104
You should NOT touch [@CONTRIBUTING.md](CONTRIBUTING.md), [@README.md](README.md), [@LICENSE](LICENSE), and [@CHANGELOG.md](CHANGELOG.md). These files are not meant to touch by a LLM. Same thing applies to `git` commands too. Except for `git diff`, `git status` and other commands that doesn't change anything.
106
105
107
-
This project prefers to have every variable and functions to be `camelCase`, as it it widely used around the whole project. Please do NOT use anything other than `camelCase`.
106
+
This project prefers to have every variable and functions to be `camelCase`, as it it widely used around the whole project. Please do NOT use anything other than `camelCase`. Always keep the code readable, simple, and follow my exact coding style I made.
107
+
108
+
If something isn't clear. Please refer to asking me instead of hallucinating.
print.log("If you're lazy (like me), just copy this code below. This for macOS/Linux.")
382
407
print.log(f" cd {projectID}/src/frontend/ && {packageManager} install && cd ../.. && venv/bin/python run.py dev")
383
-
print.log("For windows powershell.")
384
-
print.log(f" cd {projectID}\\src\\frontend\\ && {packageManager} install && cd ..\\.. && venv\\Scripts\\python run.py dev")
408
+
print.log("For windows powershell <7.")
409
+
print.log(f" cd project-test\\src\\frontend; if ($?) {{ {packageManager} install }}; if ($?) {{ cd ..\\.. }}; if ($?) {{ venv\\Scripts\\python run.py dev }}")
410
+
print.log("For windows powershell 7+.")
411
+
print.log(f" cd {projectID}\\src\\frontend && {packageManager} install && cd ..\\.. && venv\\Scripts\\python run.py dev")
385
412
print.empty()
386
413
387
414
print.log("To compile after installing the frontend dependencies, run:")
0 commit comments