feat: enhance project configuration with type checking and improved .gitignore entries

This commit is contained in:
Firman Ramdhani
2026-04-06 12:23:49 +07:00
parent 8c7b6d3017
commit 50592f27f3
9 changed files with 47 additions and 15 deletions
+28 -5
View File
@@ -1,20 +1,43 @@
# OS & Editor
.DS_Store
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
# Dependencies
node_modules
.pnpm-store
# Turborepo & Cache
.turbo
.cache
# Environment Variables (Security)
.env
.env.local
.env.*.local
*.local
# Logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
# Standard Web Build Outputs
dist
dist-ssr
*.local
.env
.cache
server/dist
public/dist
# storybook
# Storybook Build Outputs
*storybook.log
storybook-static
# Electron
# Electron Build Outputs
out/
release/
web-dist/
+2 -1
View File
@@ -11,7 +11,8 @@
"package": "pnpm run build && electron-builder --config electron-builder.yml",
"package:win": "pnpm run build && electron-builder --win --config electron-builder.yml",
"package:mac": "pnpm run build && electron-builder --mac --config electron-builder.yml",
"package:linux": "pnpm run build && electron-builder --linux --config electron-builder.yml"
"package:linux": "pnpm run build && electron-builder --linux --config electron-builder.yml",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"electron-updater": "^6.3.9"
+1
View File
@@ -0,0 +1 @@
{"program":{"fileNames":[],"fileInfos":[],"root":[],"options":{"composite":true}},"version":"5.5.4"}
+2 -1
View File
@@ -7,7 +7,8 @@
"dev": "vite --clearScreen false",
"build": "tsc && vite build",
"preview": "vite preview",
"lint": "eslint \"src/**/*.ts\""
"lint": "eslint \"src/**/*.ts\"",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@repo/ui": "workspace:*",
+2 -1
View File
@@ -9,7 +9,8 @@
"preview": "vite preview",
"lint": "eslint \"src/**/*.ts\"",
"test": "vitest run",
"test:watch": "vitest --watch"
"test:watch": "vitest --watch",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@repo/ui": "workspace:*",
+4 -1
View File
@@ -19,7 +19,10 @@
"package:linux": "pnpm run build:desktop && cd apps/desktop && pnpm run package:linux",
"lint": "turbo run lint",
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
"test": "turbo run test"
"test": "turbo run test",
"typecheck": "turbo run typecheck",
"clean:workspaces": "rm -rf node_modules **/*/node_modules .turbo **/*/.turbo dist **/*/dist out **/*/out web-dist **/*/web-dist release **/*/release",
"nuke": "pnpm run clean:workspaces && pnpm install && pnpm build"
},
"devDependencies": {
"prettier": "^3.2.5",
+2 -1
View File
@@ -8,7 +8,8 @@
"scripts": {
"lint": "eslint \"**/*.ts\"",
"test": "vitest run",
"test:watch": "vitest --watch"
"test:watch": "vitest --watch",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"crypto-js": "^4.2.0",
@@ -84,7 +84,8 @@ describe('EncryptionUtils', () => {
it('should return an empty string if input is malformed (Graceful Fail)', () => {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const consoleSpy = vi.spyOn(console, 'error').mockImplementation(() => {});
// const consoleSpy = vi.spyOn(console, 'error').mockImplementation(() => {});
vi.spyOn(console, 'error').mockImplementation(() => {});
const malformedData = 'invalid-base64-string-@@@';
const result = service.decrypt(malformedData);
+2 -2
View File
@@ -24,9 +24,9 @@
"^lint"
]
},
"check-types": {
"typecheck": {
"dependsOn": [
"^check-types"
"^typecheck"
]
},
"dev": {