Skip to content

Feature/turborepo #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
dist
node_modules
.env
coverage
coverage
.turbo
3 changes: 2 additions & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
54 changes: 54 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
5 changes: 3 additions & 2 deletions server/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
15 changes: 15 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "https://turbo.build/schema.json",
"tasks": {
"build": {
"outputs": ["dist/**"]
},
"check-types": {
"dependsOn": ["^check-types"]
},
"dev": {
"persistent": true,
"cache": false
}
}
}