Skip to content

Commit

Permalink
Initial turbo test
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbenincasa committed Mar 6, 2024
1 parent 3fb5699 commit 5817fc5
Show file tree
Hide file tree
Showing 6 changed files with 149 additions and 31 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ build/
log.txt
*.db
.DS_Store
.turbo
.turbo/
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@
"license": "Zlib",
"scripts": {
"preinstall": "npx only-allow pnpm",
"clean": "del-cli --force ./bin ./dist ./.dizquetv ./web/public/bundle.js",
"dist": "./make_dist.sh"
"dev": "turbo run dev"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"esbuild": "^0.19.5",
"eslint": "^8.45.0",
"turbo": "^1.12.4",
"typescript": "^5.2.2"
}
},
"packageManager": "pnpm@8.15.4+sha256.cea6d0bdf2de3a0549582da3983c70c92ffc577ff4410cbf190817ddc35137c2"
}
145 changes: 124 additions & 21 deletions pnpm-lock.yaml

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

1 change: 0 additions & 1 deletion server/scripts/bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ await esbuild.build({
inject: ['cjs-shim.ts'],
packages: 'external',
tsconfig: './tsconfig.build.json',
logLevel: 'verbose',
// external: [
// 'mysql',
// 'mysql2',
Expand Down
17 changes: 17 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "https://turbo.build/schema.json",
"pipeline": {
"build": {
"dependsOn": ["^build"],
"outputs": ["build/**"]
},
"bundle": {
"dependsOn": ["build"],
"outputs": ["build/**", "dist/**"]
},
"dev": {
"cache": false,
"persistent": true
}
}
}
8 changes: 3 additions & 5 deletions types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0",
"description": "",
"scripts": {
"build": "tsc -p tsconfig.json",
"build": "tsup src/index.ts --format esm --dts -d build/",
"clean": "rimraf build",
"dev": "nodemon -e ts --watch src --ignore build/ -e .json,.ts,.yml,.yaml,.js -x tsc --project tsconfig.json"
},
Expand All @@ -18,16 +18,14 @@
"eslint": "8.45.0",
"nodemon": "^3.1.0",
"rimraf": "^5.0.5",
"tsup": "^8.0.2",
"typescript": "5.2.2"
},
"dependencies": {
"zod": "^3.22.4"
},
"exports": {
".": {
"types": "./build/src/index.d.ts",
"default": "./build/src/index.js"
},
".": "./src/index.ts",
"./package.json": "./package.json",
"./schemas": {
"types": "./build/src/schemas/index.d.ts",
Expand Down

0 comments on commit 5817fc5

Please sign in to comment.