diff --git a/.gitignore b/.gitignore index f3d82b3..c25480b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ dist node_modules .env -coverage \ No newline at end of file +coverage +.turbo \ No newline at end of file diff --git a/client/package.json b/client/package.json index da5232c..5d56464 100644 --- a/client/package.json +++ b/client/package.json @@ -5,7 +5,8 @@ "type": "module", "scripts": { "dev": "vite", - "build": "tsc && vite build", + "build": "vite build", + "check-types": "tsc --noEmit", "lint": "eslint src/**/*.{ts,tsx}", "format": "eslint src/**/*.{ts,tsx} --fix", "preview": "vite preview", diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..fb8071e --- /dev/null +++ b/package-lock.json @@ -0,0 +1,54 @@ +{ + "name": "expense-tracker", + "version": "0.0.1", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "expense-tracker", + "version": "0.0.1", + "license": "ISC", + "dependencies": { + "undici-types": "^5.26.5" + }, + "devDependencies": { + "turbo": "^2.0.9" + } + }, + "node_modules/turbo": { + "version": "2.0.9", + "resolved": "https://registry.npmjs.org/turbo/-/turbo-2.0.9.tgz", + "integrity": "sha512-QaLaUL1CqblSKKPgLrFW3lZWkWG4pGBQNW+q1ScJB5v1D/nFWtsrD/yZljW/bdawg90ihi4/ftQJ3h6fz1FamA==", + "dev": true, + "bin": { + "turbo": "bin/turbo" + }, + "optionalDependencies": { + "turbo-darwin-64": "2.0.9", + "turbo-darwin-arm64": "2.0.9", + "turbo-linux-64": "2.0.9", + "turbo-linux-arm64": "2.0.9", + "turbo-windows-64": "2.0.9", + "turbo-windows-arm64": "2.0.9" + } + }, + "node_modules/turbo-windows-64": { + "version": "2.0.9", + "resolved": "https://registry.npmjs.org/turbo-windows-64/-/turbo-windows-64-2.0.9.tgz", + "integrity": "sha512-ZVo0apxUvaRq4Vm1qhsfqKKhtRgReYlBVf9MQvVU1O9AoyydEQvLDO1ryqpXDZWpcHoFxHAQc9msjAMtE5K2lA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/undici-types": { + "version": "5.28.4", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.28.4.tgz", + "integrity": "sha512-3OeMF5Lyowe8VW0skf5qaIE7Or3yS9LS7fvMUI0gg4YxpIBVg0L8BxCmROw2CcYhSkpR68Epz7CGc8MPj94Uww==" + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..62ba1ce --- /dev/null +++ b/package.json @@ -0,0 +1,23 @@ +{ + "name": "expense-tracker", + "version": "0.0.0", + "description": "`git clone https://github.com/9akashnp8/expense-tracker.git`", + "main": "index.js", + "dependencies": { + "undici-types": "^5.26.5" + }, + "devDependencies": { + "turbo": "^2.0.9" + }, + "scripts": { + "dev": "turbo dev", + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "", + "license": "ISC", + "packageManager": "npm@10.2.4", + "workspaces": [ + "client", + "server" + ] +} diff --git a/server/package.json b/server/package.json index 543ffd2..27c856f 100644 --- a/server/package.json +++ b/server/package.json @@ -1,11 +1,12 @@ { - "name": "learn-express-ts", - "version": "1.0.0", + "name": "server", + "version": "0.0.0", "description": "", "main": "index.ts", "type": "module", "scripts": { "build": "npx tsc", + "check-types": "tsc --noEmit", "start": "node dist/src/app.js", "dev": "concurrently \"npx tsc --watch\" \"nodemon -q dist/src/app.js\"", "test": "jest", diff --git a/turbo.json b/turbo.json new file mode 100644 index 0000000..54d9e70 --- /dev/null +++ b/turbo.json @@ -0,0 +1,15 @@ +{ + "$schema": "https://turbo.build/schema.json", + "tasks": { + "build": { + "outputs": ["dist/**"] + }, + "check-types": { + "dependsOn": ["^check-types"] + }, + "dev": { + "persistent": true, + "cache": false + } + } +} \ No newline at end of file