Skip to content

Commit f05bf90

Browse files
Merge pull request #6 from justinfarrelldev/ctp1_support
Added unstable support for CTP1
2 parents 627d7b2 + 890c549 commit f05bf90

39 files changed

Lines changed: 2571 additions & 233 deletions

.eslintrc.cjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,11 @@ module.exports = {
178178
'functional/no-return-void': 'off',
179179
'functional/no-throw-statements': 'off',
180180

181+
'jsdoc/check-tag-names': 'off',
181182
'no-undef': 'off',
182183
'no-unused-vars': 'off',
183184
'vitest/max-expects': 'off',
185+
184186
'vitest/no-hooks': 'off',
185187
},
186188
},

.github/copilot-instructions.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
**CRITICAL: Always output the results of any commands you run to temp.log (in the root directory), then read that to get the results of the previous command. This ensures that you can read it - there is a bug at the moment that will prevent you from reading commands directly. Use tee when doing this so I can see the command running without having to open temp.log. You should NOT have to run "echo "Starting header test creation" | tee temp.log" or similar - only do it for test runs and other important commands. Echo should almost never be present.**
2+
3+
STEPS TO FOLLOW:
4+
5+
Try your best to follow the linting rules the first time, that way you will not have to come back to change the code later (see .eslintrc.cjs in the root).
6+
7+
Before starting ANY new features or editing existing features, create tests for the feature, run the tests you created (they should fail) and use test-driven development (red-green testing) to ensure the feature works according to the spec you filled out. Mock and stub anything that needs to be mocked / stubbed, but don't overdo it.
8+
9+
Instead of writing the whole files at once, write the files in incremental steps - writing a function at a time (so you don't corrupt it).
10+
11+
Once each step is completed, run "npm run lint" and fix any issues (warnings OR errors) that pop up. Additionally, run the tests with "npm test -- run" and fix any test failures that remain. You are not allowed to change any linting rules, styling rules or any testing rules.
12+
13+
If a single React component has more than 5 useState / state management calls, convert it to use a React reducer as a part of your task.
14+
15+
TOOLS TO USE:
16+
17+
A pre-install hook will prevent you from ever using npm. Use npm, not pnpm (pnpm has issues with Electron).
18+
19+
Use Vitest and Playwright for tests.
20+
21+
Use eslint for linting. You can use the ESLint MCP server to check the current ESLint status.
22+
23+
You can add packages (especially if they make the job significantly easier). Make sure that if you want to add a package, you tell me the reasoning first.
24+
25+
ALWAYS run tests without watch mode so I don't have to cancel / quit the runs for you.
26+
27+
The "diffing" portion of the repository (applyModsToInstallWithMerge, etc.) are legacy and must be kept intact, but should not be considered for refactoring or actual use.

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,7 @@ out/
88

99
.vite/*
1010

11-
debug
11+
debug
12+
examples
13+
14+
temp.log

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
There are a few different steps to get started with this repo. To get started, you will need:
44

5-
- `Node` and `npm` installed (nvm is highly recommended - the repo is set up so that you can simply run `nvm use` in the root to install the correct versions automatically)
5+
- `Node` and `npm` installed (nvm is highly recommended - the repo is set up so that you can simply run `nvm use` in the root to install the correct versions automatically)
66

77
From here, you can start the dev server with:
88

@@ -18,6 +18,6 @@ Code should be formatted with [Prettier](https://prettier.io/). The recommended
1818

1919
Relevant unit or integration tests are always appreciated, but not necessarily required (yet). Eventually, the plan is 80% test coverage, but this project has ballooned quite a lot.
2020

21-
Submit all code via a pull-request on GitHub. I understand it may be a bit hypocritical (given I have just pushed to main since the beginning), but I was the sole contributor for the two years before this project was open-sourced, so there was no need to use PRs. That said, I am going to use PRs for all future contributions as that is the expectation going forward.
21+
Submit all code via a pull-request on GitHub. I understand it may be a bit hypocritical (given I have just pushed to main since the beginning), but I was the sole contributor for the two years before this project was open-sourced, so there was no need to use PRs. That said, I am going to use PRs for all future contributions as that is the expectation going forward.
2222

23-
Before you submit your PR, ensure that there are NO warnings or errors with ESLint by running `npm run lint`. After that, make sure all tests pass with `npm test`. If both of these work, feel free to submit the PR!
23+
Before you submit your PR, ensure that there are NO warnings or errors with ESLint by running `npm run lint`. After that, make sure all tests pass with `npm test`. If both of these work, feel free to submit the PR!

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,20 @@ Most mods can just be applied in a single click, including scenario mods. Incomp
3131

3232
![image](https://github.com/user-attachments/assets/dfe0ecf7-fd5d-48a5-aa7a-739cfc19fc50)
3333

34-
3534
## Change Your Theme
3635

3736
You can change your themes with a click of a button to any of DaisyUI's wonderful themes. These include light modes, dark modes and most modes in-between!
3837

3938
### Light:
39+
4040
![image](https://github.com/user-attachments/assets/438322aa-7ed9-4efd-bd12-6aaf365d9ebb)
4141

4242
### Dark:
43+
4344
![image](https://github.com/user-attachments/assets/64e5ad90-541a-46ef-beae-2830bd1a568d)
4445

45-
### Halloween:
46+
### Halloween:
47+
4648
![image](https://github.com/user-attachments/assets/8befd4a6-c3ad-44a3-a752-4afcb2717006)
4749

4850
... and many more!

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<meta name="A mod manager created for the 1999 game Call to Power, as well as the 2000 sequel Call to Power II."
99
content="Call to Power Mod Manager" />
1010
<meta http-equiv="Content-Security-Policy" content="script-src 'self';" />
11-
<title>Call to Power Mod Manager (Alpha)</title>
11+
<title>Call to Power Mod Manager (Beta)</title>
1212
<link rel="stylesheet" href="src/css/tailwind.css" />
1313
</head>
1414

nguid.ctp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ͱ�]G�A�*7_��

0 commit comments

Comments
 (0)