-
Notifications
You must be signed in to change notification settings - Fork 0
CLI Scripts
SunDevil311 edited this page Jun 15, 2025
·
3 revisions
- Development
- Pre-check / Sync
- Cleanup & Maintenance
- Testing
- Linting & Formatting
- Lighthouse / Performance
- Audits / Validation
- Lifecycle Hooks
The following CLI commands are available via npm run <script>
or
pnpm run <script>
.
Script | Description |
---|---|
dev |
Start development server with Vite |
preview |
Preview production build locally |
build |
Build the project with Vite |
dev:netlify |
Start local dev server using Netlify Dev (emulates serverless + headers) |
build:netlify |
Build using Netlify CLI |
css:bundle |
Bundle and minify CSS |
Β
Script | Description |
---|---|
prepare |
Run SvelteKit sync |
check |
Run SvelteKit sync and type check with svelte-check
|
check:watch |
Watch mode for type checks |
check:node |
Validate Node & npm versions match package.json engines
|
checkout |
Full local validation: check versions, test (incl. audit coverage), lint, typecheck |
verify |
Alias for checkout
|
Β
Script | Description |
---|---|
delete |
Remove build artifacts and node_modules
|
clean |
Fully reset environment and reinstall |
upgrade |
Update all dependencies via npm-check-updates
|
Β
Script | Description |
---|---|
test |
Alias for test:all
|
test:all |
Run both client and server test suites (incl. audit coverage) |
test:client |
Run client tests with Vitest |
test:server |
Run server-side tests with Vitest |
test:watch |
Watch mode for client tests |
test:coverage |
Collect coverage from both client and server |
test:e2e |
Runs E2E tests with up to 1 automatic retry on failure |
Β
Script | Description |
---|---|
lint |
Run ESLint on JS, MJS, and Svelte files |
lint:fix |
Auto-fix ESLint issues |
lint:jsdoc |
Check JSDoc annotations |
lint:css |
Run Stylelint on CSS and Svelte styles |
lint:md |
Lint Markdown content |
lint:all |
Run all linters and formatting checks |
format |
Run Prettier formatting check |
format:fix |
Auto-format code using Prettier |
Β
Script | Description |
---|---|
lhci |
Alias for Lighthouse CI |
lhci:run |
Run Lighthouse CI autorun |
Β
Script | Description |
---|---|
audit:coverage |
Warn about untested modules in src/ and scripts/
|
head:flatten |
Flatten headers for Netlify |
head:validate |
Validate headers file against project config |
Β
Script | Description |
---|---|
postinstall |
Ensures version check after install |
π Related Repositories
π‘ This page is part of the internal wiki for Network Proβ’. To contribute or suggest changes, see Contributing to the Wiki.
Copyright Β© 2025
Network Pro Strategies
Network Proβ’, the shield logo, and the "Locking Down Networks...β’" slogan are trademarks of Network Pro Strategies.
Licensed under CC BY 4.0 and the GNU GPL, as published by the Free Software Foundation, either version 3 of the license or (at your option) any later version.