mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2025-08-27 13:09:22 +00:00
Add npm run ci command
This commit is contained in:
parent
344f12280c
commit
932b9c513f
10
CONTEXT.md
10
CONTEXT.md
@ -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.
|
@ -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"
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user