Phase 0: fix typecheck, format, build; remove stray emit; pin port via env
CI / Lint, typecheck, test, build (push) Failing after 22s

This commit is contained in:
Mavis
2026-06-02 16:07:09 +00:00
parent 7b19c54943
commit 938ba042b3
23 changed files with 6693 additions and 83 deletions
+1 -1
View File
@@ -6,7 +6,7 @@
"description": "3D real-time solar system viewer",
"scripts": {
"dev": "vite --port 3001",
"build": "tsc -p tsconfig.build.json && vite build",
"build": "tsc --noEmit && vite build",
"preview": "vite preview --port 3001",
"typecheck": "tsc --noEmit",
"lint": "echo 'no linter yet'",
+2 -8
View File
@@ -148,11 +148,7 @@ function Scene({ bodies, ut }: { bodies: CelestialBody[]; ut: number }) {
if (body.sphereOfInfluence === 0 || body.sphereOfInfluence === Infinity) {
// Star: render but skip orbit
if (body.kind === 'star') {
const geo = new THREE.SphereGeometry(
Math.max(body.radius, 1e8),
32,
16,
);
const geo = new THREE.SphereGeometry(Math.max(body.radius, 1e8), 32, 16);
const mat = new THREE.MeshBasicMaterial({ color: 0xffcc33 });
const mesh = new THREE.Mesh(geo, mat);
scene.add(mesh);
@@ -287,9 +283,7 @@ export function App() {
</div>
<div style={{ marginTop: 4 }}>UT {formatUtAsKspDate(ut)}</div>
<div style={{ display: 'flex', gap: '0.25rem', marginTop: 8 }}>
<button onClick={() => setPlaying((p) => !p)}>
{playing ? '⏸' : '▶'}
</button>
<button onClick={() => setPlaying((p) => !p)}>{playing ? '⏸' : '▶'}</button>
<button onClick={() => setUt(0)}>Reset</button>
{[1, 60, 3600, 86400].map((s) => (
<button
-7
View File
@@ -1,7 +0,0 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"noEmit": false
},
"include": ["src/**/*"]
}
+1 -1
View File
@@ -7,6 +7,6 @@
"module": "ESNext",
"moduleResolution": "Bundler"
},
"include": ["src/**/*"],
"include": ["src/**/*", "src/**/*.d.ts"],
"references": [{ "path": "./tsconfig.node.json" }]
}