Add npm run ci command

This commit is contained in:
Alex Gleason 2025-04-18 12:44:37 -05:00
parent 344f12280c
commit 932b9c513f
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
2 changed files with 9 additions and 2 deletions

View File

@ -186,6 +186,12 @@ The `AccountSwitcher` component displays a "Log in" button when the user is logg
## Testing Your Changes ## Testing Your Changes
Whenever you modify code, you should test your changes after you're finished. Whenever you modify code, you should test your changes after you're finished by running:
To test your changes, run `npm run build`. The task is not considered finished until there are no build errors. ```bash
npm run ci
```
This command will typecheck the code and attempt to build it.
Your task is not considered finished until this test passes without errors.

View File

@ -7,6 +7,7 @@
"dev": "npm i && vite", "dev": "npm i && vite",
"build": "npm i && vite build", "build": "npm i && vite build",
"build:dev": "npm i && vite build --mode development", "build:dev": "npm i && vite build --mode development",
"ci": "npm i && tsc --noEmit && vite build",
"lint": "npm i && eslint .", "lint": "npm i && eslint .",
"preview": "npm i && vite preview" "preview": "npm i && vite preview"
}, },