feat: enhance project configuration with type checking and improved .gitignore entries
This commit is contained in:
+28
-5
@@ -1,20 +1,43 @@
|
|||||||
|
# OS & Editor
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
.vscode/*
|
||||||
|
!.vscode/settings.json
|
||||||
|
!.vscode/tasks.json
|
||||||
|
!.vscode/launch.json
|
||||||
|
!.vscode/extensions.json
|
||||||
|
|
||||||
|
# Dependencies
|
||||||
node_modules
|
node_modules
|
||||||
|
.pnpm-store
|
||||||
|
|
||||||
|
# Turborepo & Cache
|
||||||
.turbo
|
.turbo
|
||||||
|
.cache
|
||||||
|
|
||||||
|
# Environment Variables (Security)
|
||||||
|
.env
|
||||||
|
.env.local
|
||||||
|
.env.*.local
|
||||||
|
*.local
|
||||||
|
|
||||||
|
# Logs
|
||||||
*.log
|
*.log
|
||||||
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
pnpm-debug.log*
|
||||||
|
|
||||||
|
# Standard Web Build Outputs
|
||||||
dist
|
dist
|
||||||
dist-ssr
|
dist-ssr
|
||||||
*.local
|
|
||||||
.env
|
|
||||||
.cache
|
|
||||||
server/dist
|
server/dist
|
||||||
public/dist
|
public/dist
|
||||||
|
|
||||||
# storybook
|
# Storybook Build Outputs
|
||||||
*storybook.log
|
*storybook.log
|
||||||
storybook-static
|
storybook-static
|
||||||
|
|
||||||
# Electron
|
# Electron Build Outputs
|
||||||
out/
|
out/
|
||||||
release/
|
release/
|
||||||
web-dist/
|
web-dist/
|
||||||
@@ -11,7 +11,8 @@
|
|||||||
"package": "pnpm run build && electron-builder --config electron-builder.yml",
|
"package": "pnpm run build && electron-builder --config electron-builder.yml",
|
||||||
"package:win": "pnpm run build && electron-builder --win --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: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": {
|
"dependencies": {
|
||||||
"electron-updater": "^6.3.9"
|
"electron-updater": "^6.3.9"
|
||||||
@@ -26,4 +27,4 @@
|
|||||||
"tsx": "^4.19.0",
|
"tsx": "^4.19.0",
|
||||||
"typescript": "5.5.4"
|
"typescript": "5.5.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{"program":{"fileNames":[],"fileInfos":[],"root":[],"options":{"composite":true}},"version":"5.5.4"}
|
||||||
@@ -7,7 +7,8 @@
|
|||||||
"dev": "vite --clearScreen false",
|
"dev": "vite --clearScreen false",
|
||||||
"build": "tsc && vite build",
|
"build": "tsc && vite build",
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
"lint": "eslint \"src/**/*.ts\""
|
"lint": "eslint \"src/**/*.ts\"",
|
||||||
|
"typecheck": "tsc --noEmit"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@repo/ui": "workspace:*",
|
"@repo/ui": "workspace:*",
|
||||||
@@ -27,4 +28,4 @@
|
|||||||
"typescript": "5.5.4",
|
"typescript": "5.5.4",
|
||||||
"vite": "^5.1.4"
|
"vite": "^5.1.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -9,7 +9,8 @@
|
|||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
"lint": "eslint \"src/**/*.ts\"",
|
"lint": "eslint \"src/**/*.ts\"",
|
||||||
"test": "vitest run",
|
"test": "vitest run",
|
||||||
"test:watch": "vitest --watch"
|
"test:watch": "vitest --watch",
|
||||||
|
"typecheck": "tsc --noEmit"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@repo/ui": "workspace:*",
|
"@repo/ui": "workspace:*",
|
||||||
|
|||||||
+4
-1
@@ -19,7 +19,10 @@
|
|||||||
"package:linux": "pnpm run build:desktop && cd apps/desktop && pnpm run package:linux",
|
"package:linux": "pnpm run build:desktop && cd apps/desktop && pnpm run package:linux",
|
||||||
"lint": "turbo run lint",
|
"lint": "turbo run lint",
|
||||||
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
|
"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": {
|
"devDependencies": {
|
||||||
"prettier": "^3.2.5",
|
"prettier": "^3.2.5",
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "eslint \"**/*.ts\"",
|
"lint": "eslint \"**/*.ts\"",
|
||||||
"test": "vitest run",
|
"test": "vitest run",
|
||||||
"test:watch": "vitest --watch"
|
"test:watch": "vitest --watch",
|
||||||
|
"typecheck": "tsc --noEmit"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"crypto-js": "^4.2.0",
|
"crypto-js": "^4.2.0",
|
||||||
|
|||||||
@@ -84,7 +84,8 @@ describe('EncryptionUtils', () => {
|
|||||||
|
|
||||||
it('should return an empty string if input is malformed (Graceful Fail)', () => {
|
it('should return an empty string if input is malformed (Graceful Fail)', () => {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
// 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 malformedData = 'invalid-base64-string-@@@';
|
||||||
const result = service.decrypt(malformedData);
|
const result = service.decrypt(malformedData);
|
||||||
|
|||||||
+2
-2
@@ -24,9 +24,9 @@
|
|||||||
"^lint"
|
"^lint"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"check-types": {
|
"typecheck": {
|
||||||
"dependsOn": [
|
"dependsOn": [
|
||||||
"^check-types"
|
"^typecheck"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"dev": {
|
"dev": {
|
||||||
|
|||||||
Reference in New Issue
Block a user