-
-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move project to Monorepo (Turborepo) (#46)
* feat: init turborepo * chore: ignore packs * refactor: ci and dependabot * fix: ci skips * fix: format both apps
- Loading branch information
Showing
50 changed files
with
447 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
node_modules | ||
.env | ||
build/ | ||
.turbo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
dist | ||
build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.env | ||
build/ | ||
package | ||
*.tgz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
src | ||
.turbo |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
"name": "tgvcbot", | ||
"version": "0.2.5", | ||
"description": "Telegram Bot to Play Music in Voice Chat", | ||
"private": true, | ||
"main": "build/app.js", | ||
"scripts": { | ||
"dev": "ts-node src/app.ts", | ||
"test": "tsc --noEmit", | ||
"build": "rimraf build && tsc", | ||
"start": "node build/app.js", | ||
"lint": "eslint . --ext .ts --max-warnings=0", | ||
"fix": "npm run lint -- --fix", | ||
"prepare": "husky install" | ||
}, | ||
"author": { | ||
"email": "[email protected]", | ||
"name": "Arnab XD" | ||
}, | ||
"workspaces": [ | ||
"apps/*" | ||
], | ||
"license": "Apache-2.0", | ||
"devDependencies": { | ||
"@grammyjs/types": "^2.7.0", | ||
"@types/html-escaper": "^3.0.0", | ||
"@types/node": "^15.12.4", | ||
"@types/sharp": "^0.30.2", | ||
"rimraf": "^3.0.2", | ||
"ts-node": "^10.0.0", | ||
"typescript": "^4.6.3" | ||
}, | ||
"dependencies": { | ||
"@mapbox/node-pre-gyp": "^1.0.9", | ||
"@napi-rs/canvas": "^0.1.21", | ||
"axios": "^0.27.1", | ||
"dotenv": "^16.0.0", | ||
"envalid": "^7.3.1", | ||
"grammy": "^1.8.0", | ||
"html-escaper": "^3.0.3", | ||
"sharp": "^0.30.4", | ||
"tgcalls-next": "^0.0.0-rc.18", | ||
"youtube-sr": "^4.1.17", | ||
"ytdl-core": "^4.11.0" | ||
}, | ||
"engines": { | ||
"node": ">=16.x" | ||
}, | ||
"lint-staged": { | ||
"src/**/*.ts": [ | ||
"eslint --fix", | ||
"prettier --write" | ||
] | ||
}, | ||
"resolutions": { | ||
"telegram": "^2.6.9" | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
node_modules | ||
dist | ||
dist-ssr | ||
*.local | ||
|
||
# Editor directories and files | ||
.vscode/* | ||
!.vscode/extensions.json | ||
.idea | ||
.DS_Store | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" type="image/svg+xml" href="favicon.svg" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Vite App</title> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
<script type="module" src="/main.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import './style.css'; | ||
|
||
document.querySelector('#app').innerHTML = ` | ||
<h1>Hello Vite!</h1> | ||
<a href="https://vitejs.dev/guide/features.html" target="_blank">Documentation</a> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"name": "tgvcbot-website", | ||
"private": true, | ||
"version": "0.0.0", | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "vite build", | ||
"preview": "vite preview" | ||
}, | ||
"devDependencies": { | ||
"vite": "^2.9.5" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#app { | ||
font-family: Avenir, Helvetica, Arial, sans-serif; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
text-align: center; | ||
color: #2c3e50; | ||
margin-top: 60px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,42 @@ | ||
{ | ||
"name": "tgvcbot", | ||
"version": "0.2.5", | ||
"name": "tgvcbot-turborepo", | ||
"version": "0.0.0", | ||
"description": "Telegram Bot to Play Music in Voice Chat", | ||
"main": "build/app.js", | ||
"private": true, | ||
"scripts": { | ||
"dev": "ts-node src/app.ts", | ||
"test": "tsc --noEmit", | ||
"build": "rimraf build && tsc", | ||
"start": "node build/app.js", | ||
"format": "prettier --write \"src/**/*.ts\"", | ||
"lint": "eslint . --ext .ts --max-warnings=0", | ||
"fix": "npm run lint -- --fix", | ||
"dev": "turbo run dev --parallel", | ||
"build": "turbo run build", | ||
"format": "prettier --write \"apps/**/*.{ts,js}\"", | ||
"lint": "turbo run lint", | ||
"prepare": "husky install" | ||
}, | ||
"author": { | ||
"email": "[email protected]", | ||
"name": "Arnab XD" | ||
}, | ||
"workspaces": [ | ||
"apps/*" | ||
], | ||
"license": "Apache-2.0", | ||
"devDependencies": { | ||
"@commitlint/config-conventional": "^16.2.1", | ||
"@grammyjs/types": "^2.7.0", | ||
"@types/html-escaper": "^3.0.0", | ||
"@types/node": "^15.12.4", | ||
"@types/sharp": "^0.30.2", | ||
"@typescript-eslint/eslint-plugin": "^5.15.0", | ||
"@typescript-eslint/parser": "^5.15.0", | ||
"commitlint": "^16.2.3", | ||
"eslint": "^8.14.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"husky": "^7.0.0", | ||
"lint-staged": "^12.4.0", | ||
"prettier": "^2.6.2", | ||
"rimraf": "^3.0.2", | ||
"ts-node": "^10.0.0", | ||
"typescript": "^4.6.3" | ||
}, | ||
"dependencies": { | ||
"@mapbox/node-pre-gyp": "^1.0.9", | ||
"@napi-rs/canvas": "^0.1.21", | ||
"axios": "^0.27.1", | ||
"dotenv": "^16.0.0", | ||
"envalid": "^7.3.1", | ||
"grammy": "^1.8.0", | ||
"html-escaper": "^3.0.3", | ||
"sharp": "^0.30.4", | ||
"tgcalls-next": "^0.0.0-rc.18", | ||
"youtube-sr": "^4.1.17", | ||
"ytdl-core": "^4.11.0" | ||
"turbo": "^1.2.5", | ||
"eslint": "^8.14.0", | ||
"@typescript-eslint/eslint-plugin": "^5.15.0", | ||
"@typescript-eslint/parser": "^5.15.0", | ||
"eslint-config-prettier": "^8.5.0" | ||
}, | ||
"engines": { | ||
"node": ">=16.x" | ||
}, | ||
"lint-staged": { | ||
"src/**/*.ts": [ | ||
"**/*.ts": [ | ||
"eslint --fix", | ||
"prettier --write" | ||
] | ||
}, | ||
"resolutions": { | ||
"telegram": "^2.6.9" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"$schema": "https://turborepo.org/schema.json", | ||
"baseBranch": "origin/main", | ||
"pipeline": { | ||
"build": { | ||
"dependsOn": [ | ||
"^build" | ||
] | ||
}, | ||
"lint": { | ||
"outputs": [] | ||
}, | ||
"dev": {} | ||
} | ||
} |
Oops, something went wrong.