Skip to content

Commit

Permalink
Init turborepo
Browse files Browse the repository at this point in the history
  • Loading branch information
zomars committed Feb 10, 2022
1 parent 0bc511a commit c9b1f52
Show file tree
Hide file tree
Showing 5 changed files with 12,332 additions and 16 deletions.
25 changes: 9 additions & 16 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,17 @@
.env

# dependencies
/node_modules
/.pnp
node_modules
.pnp
.pnp.js
/.yarn

# testing
/coverage
.nyc_output
playwright/videos
playwright/screenshots
playwright/artifacts
playwright/results
playwright/reports/*
coverage

# next.js
/.next/
/out/

# production
/build
.next/
out/
build

# misc
.DS_Store
Expand All @@ -33,14 +24,14 @@ playwright/reports/*
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local
.env.*

# vercel
.vercel

Expand All @@ -60,3 +51,5 @@ yarn-error.log*

# Typescript
tsconfig.tsbuildinfo
# turbo
.turbo
1 change: 1 addition & 0 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"analyze": "ANALYZE=true next build",
"analyze:server": "BUNDLE_ANALYZE=server next build",
"analyze:browser": "BUNDLE_ANALYZE=browser next build",
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf .next",
"dev": "next dev",
"db-up": "docker-compose up -d",
"db-migrate": "yarn prisma migrate dev && yarn format-schemas",
Expand Down
39 changes: 39 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"name": "calcom-monorepo",
"version": "0.0.0",
"private": true,
"workspaces": [
"apps/*",
"packages/*"
],
"scripts": {
"build": "turbo run build",
"clean": "turbo run clean && rm -rf node_modules",
"dev": "turbo run dev --parallel",
"lint": "turbo run lint",
"format": "prettier --write \"**/*.{ts,tsx,md}\""
},
"devDependencies": {
"@trivago/prettier-plugin-sort-imports": "2.0.4",
"husky": "^7.0.1",
"lint-staged": "^11.1.2",
"prettier": "^2.3.2",
"prettier-plugin-tailwindcss": "^0.1.6",
"turbo": "latest"
},
"lint-staged": {
"apps/**/*.{js,ts,jsx,tsx}": [
"prettier --write",
"eslint --fix"
],
"*.json": [
"prettier --write"
]
},
"engines": {
"node": ">=14.x",
"npm": ">=7.0.0",
"yarn": ">=1.19.0 < 2.0.0"
},
"packageManager": "yarn@1.22.17"
}
17 changes: 17 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"pipeline": {
"build": {
"dependsOn": ["^build"],
"outputs": ["dist/**", ".next/**"]
},
"clean": {
"cache": false
},
"lint": {
"outputs": []
},
"dev": {
"cache": false
}
}
}

0 comments on commit c9b1f52

Please sign in to comment.