You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Format code: `bun run format` -- fixes all prettier formatting issues
17
+
- Build the application: `bun run build` -- takes 10 seconds from clean state. NEVER CANCEL.
18
+
- Run type checking: `bun run check` -- validates TypeScript and Svelte components (currently fails due to QPDF WASM types)
20
19
21
20
### Development Workflow
22
21
23
-
- Start development server: `npm run dev` -- serves on http://localhost:5173/
24
-
- Start production preview: `npm run preview` -- serves built app on http://localhost:4173/
22
+
- Start development server: `bun run dev` -- serves on http://localhost:5173/
23
+
- Start production preview: `bun run build && bun run preview` -- serves built app on http://localhost:4173/
25
24
- The dev server supports hot reload and the app initializes QPDF WASM module successfully
26
25
27
26
### Linting and Code Quality
28
27
29
-
- Format code: `npm run format` -- uses Prettier to format all files
30
-
-**IMPORTANT**: `npm run lint` currently fails due to ESLint circular dependency issue in the configuration. This is a known issue that does not affect the build process.
31
-
- Always run `npm run format` before committing changes
32
-
- Use prettier for code formatting, not ESLint for this project
28
+
- Format code: `bun run format`
29
+
- Lint code: `bun run lint`
33
30
34
31
## Application Architecture
35
32
@@ -68,90 +65,6 @@ Always reference these instructions first and fallback to search or bash command
68
65
- QPDF WASM integration: Client-side PDF processing and encryption
69
66
- Progressive Web App features: Service worker, offline support, installability
70
67
71
-
## Validation and Testing
72
-
73
-
### Manual Testing Scenarios
74
-
75
-
After making changes, ALWAYS test these scenarios:
76
-
77
-
1.**Basic file encryption**:
78
-
- Start dev server: `npm run dev`
79
-
- Navigate to http://localhost:5173/
80
-
- Verify the "Choose File" button appears
81
-
- Enter a user password
82
-
- Confirm encryption button becomes enabled
83
-
84
-
2.**Advanced permissions**:
85
-
- Toggle "Advanced Permissions" checkbox
86
-
- Verify owner password field appears
87
-
- Test all permission checkboxes and the printing dropdown
0 commit comments