diff --git a/.github/workflows/app.yml b/.github/workflows/ci.yml similarity index 80% rename from .github/workflows/app.yml rename to .github/workflows/ci.yml index 5562461..957c966 100644 --- a/.github/workflows/app.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: App +name: CI on: [push] @@ -19,10 +19,7 @@ jobs: # Necessary because it's being used in the code - name: Linting/Formating - run: bunx @biomejs/biome ci src + run: bun run lint:ci - name: Build run: bun run build - - - name: Build Web docs - run: bun run docs:build diff --git a/.gitignore b/.gitignore index 82bb5ee..153d9dd 100755 --- a/.gitignore +++ b/.gitignore @@ -72,9 +72,6 @@ typings/ # Serverless directories .serverless -# Others -docs/ - ## macOS .DS_Store @@ -82,4 +79,5 @@ docs/ .temp .cache documentation/.vuepress/dist -dist/ \ No newline at end of file +dist/ +.turbo diff --git a/Dockerfile b/apps/taco/Dockerfile similarity index 63% rename from Dockerfile rename to apps/taco/Dockerfile index d174153..449c32f 100644 --- a/Dockerfile +++ b/apps/taco/Dockerfile @@ -14,11 +14,17 @@ FROM base as installer # install with devDependencies to be used later RUN mkdir -p /temp/dev COPY package.json bun.lockb /temp/dev/ +COPY /apps/taco/package.json /temp/dev/apps/taco/package.json +COPY /apps/website/package.json /temp/dev/apps/website/package.json RUN cd /temp/dev && bun install --frozen-lockfile --ignore-scripts # install with --production (exclude devDependencies) RUN mkdir -p /temp/prod COPY package.json bun.lockb /temp/prod/ +COPY /apps/taco/package.json /temp/prod/apps/taco/package.json +# We need to include the website package.json because otherwise it will throw +# an error due to a difference between lockfiles +COPY /apps/website/package.json /temp/prod/apps/website/package.json RUN cd /temp/prod && bun install --frozen-lockfile --production --ignore-scripts # ------------------------------ # @@ -28,8 +34,8 @@ ENV NODE_ENV=production COPY --from=installer /temp/dev/node_modules node_modules COPY . . -RUN bun run build -RUN bunx prisma generate +RUN bun run build --filter=taco-api +RUN cd ./apps/taco && bunx prisma generate # ------------------------------ # FROM base AS release @@ -39,10 +45,10 @@ COPY --from=installer /temp/prod/node_modules /app/node_modules # Includes the prisma client generated COPY --from=prerelease /app/node_modules/.prisma /app/node_modules/.prisma # Includes the database and schema -COPY --from=prerelease /app/src/infrastructure/prisma /app/src/infrastructure/prisma -COPY --from=prerelease /app/dist/app.js . -COPY --from=prerelease /app/package.json . +COPY --from=prerelease /app/apps/taco/src/infrastructure/prisma /app/src/infrastructure/prisma +COPY --from=prerelease /app/apps/taco/dist/app.js . +COPY --from=prerelease /app/apps/taco/package.json . # run the app -EXPOSE 4000/tcp +EXPOSE 4000 ENTRYPOINT [ "bun", "run", "app.js" ] \ No newline at end of file diff --git a/apps/taco/biome.json b/apps/taco/biome.json new file mode 100644 index 0000000..d2997f0 --- /dev/null +++ b/apps/taco/biome.json @@ -0,0 +1,4 @@ +{ + "$schema": "https://biomejs.dev/schemas/1.4.0/schema.json", + "extends": ["../../biome.json"] +} diff --git a/docker-compose.yml b/apps/taco/docker-compose.yml similarity index 100% rename from docker-compose.yml rename to apps/taco/docker-compose.yml diff --git a/apps/taco/package.json b/apps/taco/package.json new file mode 100644 index 0000000..eeca3c5 --- /dev/null +++ b/apps/taco/package.json @@ -0,0 +1,48 @@ +{ + "name": "taco-api", + "description": "Brazilian Table of Food Composition (TACO) - GraphQL API", + "version": "2.3.0", + "type": "module", + "homepage": "https://github.com/raulfdm/taco-api", + "bugs": { + "url": "https://github.com/raulfdm/taco-api/issues" + }, + "scripts": { + "start": "NODE_ENV=production bun run src/app.ts", + "dev": "NODE_ENV=development bun --watch src/app.ts", + "studio": "prisma studio", + "build": "bun run scripts/build.ts", + "lint": "biome lint src", + "lint:ci": "biome ci src", + "db:migrate": "NODE_ENV=development prisma migrate dev", + "db:generate": "NODE_ENV=development prisma generate", + "db:seed": "NODE_ENV=development prisma db seed", + "db:reset": "NODE_ENV=development prisma migrate reset", + "prepare": "bun run db:generate" + }, + "dependencies": { + "@prisma/client": "5.7.0", + "cors": "2.8.5", + "express": "4.18.2", + "graphql": "16.8.1", + "graphql-http": "1.22.0", + "graphql-modules": "2.3.0", + "zod": "3.22.4" + }, + "devDependencies": { + "@types/cors": "2.8.17", + "@types/express": "4.17.21", + "bun-types": "1.0.15", + "csvtojson": "2.0.10", + "prisma": "5.7.0", + "typescript": "5.3.2" + }, + "packageManager": "bun@1.0.15", + "engines": { + "bun": "1.0.15" + }, + "prisma": { + "seed": "bun run ./src/infrastructure/seed/index.ts", + "schema": "./src/infrastructure/prisma/schema.prisma" + } +} diff --git a/scripts/build.ts b/apps/taco/scripts/build.ts similarity index 100% rename from scripts/build.ts rename to apps/taco/scripts/build.ts diff --git a/src/app.ts b/apps/taco/src/app.ts similarity index 100% rename from src/app.ts rename to apps/taco/src/app.ts diff --git a/src/infrastructure/env.ts b/apps/taco/src/infrastructure/env.ts similarity index 100% rename from src/infrastructure/env.ts rename to apps/taco/src/infrastructure/env.ts diff --git a/src/infrastructure/primaClient.ts b/apps/taco/src/infrastructure/primaClient.ts similarity index 100% rename from src/infrastructure/primaClient.ts rename to apps/taco/src/infrastructure/primaClient.ts diff --git a/src/infrastructure/prisma/migrations/20230425065839_initial/migration.sql b/apps/taco/src/infrastructure/prisma/migrations/20230425065839_initial/migration.sql similarity index 100% rename from src/infrastructure/prisma/migrations/20230425065839_initial/migration.sql rename to apps/taco/src/infrastructure/prisma/migrations/20230425065839_initial/migration.sql diff --git a/src/infrastructure/prisma/migrations/migration_lock.toml b/apps/taco/src/infrastructure/prisma/migrations/migration_lock.toml similarity index 100% rename from src/infrastructure/prisma/migrations/migration_lock.toml rename to apps/taco/src/infrastructure/prisma/migrations/migration_lock.toml diff --git a/src/infrastructure/prisma/schema.prisma b/apps/taco/src/infrastructure/prisma/schema.prisma similarity index 100% rename from src/infrastructure/prisma/schema.prisma rename to apps/taco/src/infrastructure/prisma/schema.prisma diff --git a/src/infrastructure/prisma/taco.db b/apps/taco/src/infrastructure/prisma/taco.db similarity index 100% rename from src/infrastructure/prisma/taco.db rename to apps/taco/src/infrastructure/prisma/taco.db diff --git a/src/infrastructure/seed/amino-acids.ts b/apps/taco/src/infrastructure/seed/amino-acids.ts similarity index 100% rename from src/infrastructure/seed/amino-acids.ts rename to apps/taco/src/infrastructure/seed/amino-acids.ts diff --git a/src/infrastructure/seed/categories.ts b/apps/taco/src/infrastructure/seed/categories.ts similarity index 100% rename from src/infrastructure/seed/categories.ts rename to apps/taco/src/infrastructure/seed/categories.ts diff --git a/src/infrastructure/seed/fatty-acids.ts b/apps/taco/src/infrastructure/seed/fatty-acids.ts similarity index 100% rename from src/infrastructure/seed/fatty-acids.ts rename to apps/taco/src/infrastructure/seed/fatty-acids.ts diff --git a/src/infrastructure/seed/foods.ts b/apps/taco/src/infrastructure/seed/foods.ts similarity index 100% rename from src/infrastructure/seed/foods.ts rename to apps/taco/src/infrastructure/seed/foods.ts diff --git a/src/infrastructure/seed/index.ts b/apps/taco/src/infrastructure/seed/index.ts similarity index 100% rename from src/infrastructure/seed/index.ts rename to apps/taco/src/infrastructure/seed/index.ts diff --git a/src/infrastructure/seed/nutrients.ts b/apps/taco/src/infrastructure/seed/nutrients.ts similarity index 100% rename from src/infrastructure/seed/nutrients.ts rename to apps/taco/src/infrastructure/seed/nutrients.ts diff --git a/src/infrastructure/seed/units/index.ts b/apps/taco/src/infrastructure/seed/units/index.ts similarity index 100% rename from src/infrastructure/seed/units/index.ts rename to apps/taco/src/infrastructure/seed/units/index.ts diff --git a/src/infrastructure/seed/units/types.ts b/apps/taco/src/infrastructure/seed/units/types.ts similarity index 100% rename from src/infrastructure/seed/units/types.ts rename to apps/taco/src/infrastructure/seed/units/types.ts diff --git a/src/infrastructure/seed/units/unitsToSave.ts b/apps/taco/src/infrastructure/seed/units/unitsToSave.ts similarity index 100% rename from src/infrastructure/seed/units/unitsToSave.ts rename to apps/taco/src/infrastructure/seed/units/unitsToSave.ts diff --git a/src/modules/aminoAcid/index.ts b/apps/taco/src/modules/aminoAcid/index.ts similarity index 100% rename from src/modules/aminoAcid/index.ts rename to apps/taco/src/modules/aminoAcid/index.ts diff --git a/src/modules/aminoAcid/schema.ts b/apps/taco/src/modules/aminoAcid/schema.ts similarity index 100% rename from src/modules/aminoAcid/schema.ts rename to apps/taco/src/modules/aminoAcid/schema.ts diff --git a/src/modules/aminoAcid/typeDef.ts b/apps/taco/src/modules/aminoAcid/typeDef.ts similarity index 100% rename from src/modules/aminoAcid/typeDef.ts rename to apps/taco/src/modules/aminoAcid/typeDef.ts diff --git a/src/modules/category/index.ts b/apps/taco/src/modules/category/index.ts similarity index 100% rename from src/modules/category/index.ts rename to apps/taco/src/modules/category/index.ts diff --git a/src/modules/category/schema.ts b/apps/taco/src/modules/category/schema.ts similarity index 100% rename from src/modules/category/schema.ts rename to apps/taco/src/modules/category/schema.ts diff --git a/src/modules/category/typeDef.ts b/apps/taco/src/modules/category/typeDef.ts similarity index 100% rename from src/modules/category/typeDef.ts rename to apps/taco/src/modules/category/typeDef.ts diff --git a/src/modules/fattyAcid/index.ts b/apps/taco/src/modules/fattyAcid/index.ts similarity index 100% rename from src/modules/fattyAcid/index.ts rename to apps/taco/src/modules/fattyAcid/index.ts diff --git a/src/modules/fattyAcid/schema.ts b/apps/taco/src/modules/fattyAcid/schema.ts similarity index 100% rename from src/modules/fattyAcid/schema.ts rename to apps/taco/src/modules/fattyAcid/schema.ts diff --git a/src/modules/fattyAcid/typeDef.ts b/apps/taco/src/modules/fattyAcid/typeDef.ts similarity index 100% rename from src/modules/fattyAcid/typeDef.ts rename to apps/taco/src/modules/fattyAcid/typeDef.ts diff --git a/src/modules/food/index.ts b/apps/taco/src/modules/food/index.ts similarity index 100% rename from src/modules/food/index.ts rename to apps/taco/src/modules/food/index.ts diff --git a/src/modules/food/schema.ts b/apps/taco/src/modules/food/schema.ts similarity index 100% rename from src/modules/food/schema.ts rename to apps/taco/src/modules/food/schema.ts diff --git a/src/modules/food/typeDef.ts b/apps/taco/src/modules/food/typeDef.ts similarity index 100% rename from src/modules/food/typeDef.ts rename to apps/taco/src/modules/food/typeDef.ts diff --git a/src/modules/index.ts b/apps/taco/src/modules/index.ts similarity index 100% rename from src/modules/index.ts rename to apps/taco/src/modules/index.ts diff --git a/src/modules/main/index.ts b/apps/taco/src/modules/main/index.ts similarity index 100% rename from src/modules/main/index.ts rename to apps/taco/src/modules/main/index.ts diff --git a/src/modules/main/schema.ts b/apps/taco/src/modules/main/schema.ts similarity index 100% rename from src/modules/main/schema.ts rename to apps/taco/src/modules/main/schema.ts diff --git a/src/modules/nutrient/index.ts b/apps/taco/src/modules/nutrient/index.ts similarity index 100% rename from src/modules/nutrient/index.ts rename to apps/taco/src/modules/nutrient/index.ts diff --git a/src/modules/nutrient/schema.ts b/apps/taco/src/modules/nutrient/schema.ts similarity index 100% rename from src/modules/nutrient/schema.ts rename to apps/taco/src/modules/nutrient/schema.ts diff --git a/src/modules/nutrient/typeDef.ts b/apps/taco/src/modules/nutrient/typeDef.ts similarity index 100% rename from src/modules/nutrient/typeDef.ts rename to apps/taco/src/modules/nutrient/typeDef.ts diff --git a/src/modules/unit/index.ts b/apps/taco/src/modules/unit/index.ts similarity index 100% rename from src/modules/unit/index.ts rename to apps/taco/src/modules/unit/index.ts diff --git a/src/modules/unit/schema.ts b/apps/taco/src/modules/unit/schema.ts similarity index 100% rename from src/modules/unit/schema.ts rename to apps/taco/src/modules/unit/schema.ts diff --git a/src/modules/unit/typeDefs.ts b/apps/taco/src/modules/unit/typeDefs.ts similarity index 100% rename from src/modules/unit/typeDefs.ts rename to apps/taco/src/modules/unit/typeDefs.ts diff --git a/apps/taco/tsconfig.json b/apps/taco/tsconfig.json new file mode 100644 index 0000000..970200f --- /dev/null +++ b/apps/taco/tsconfig.json @@ -0,0 +1,35 @@ +{ + "compilerOptions": { + "lib": [ + "ESNext" + ], + "esModuleInterop": true, + "verbatimModuleSyntax": true, + "isolatedModules": true, + "resolveJsonModule": true, + "module": "esnext", + "target": "esnext", + "moduleResolution": "bundler", + "moduleDetection": "force", + "allowImportingTsExtensions": true, + "noEmit": true, + "composite": true, + "strict": true, + "noUncheckedIndexedAccess": true, + "downlevelIteration": true, + "skipLibCheck": true, + "jsx": "react-jsx", + "allowSyntheticDefaultImports": true, + "forceConsistentCasingInFileNames": true, + "allowJs": true, + "baseUrl": ".", + "paths": { + "@/*": [ + "src/*" + ] + }, + "types": [ + "bun-types" // add Bun global + ] + } +} \ No newline at end of file diff --git a/apps/website/biome.json b/apps/website/biome.json new file mode 100644 index 0000000..86dfc31 --- /dev/null +++ b/apps/website/biome.json @@ -0,0 +1,11 @@ +{ + "$schema": "https://biomejs.dev/schemas/1.4.0/schema.json", + "extends": ["../../biome.json"], + "files": { + "ignore": [ + "./docs/.vuepress/dist/**/*", + "./docs/.vuepress/.temp/**/*", + "./docs/.vuepress/.cache/**/*" + ] + } +} diff --git a/apps/website/docs/.vuepress/config.ts b/apps/website/docs/.vuepress/config.ts new file mode 100644 index 0000000..4067bf9 --- /dev/null +++ b/apps/website/docs/.vuepress/config.ts @@ -0,0 +1,67 @@ +import { defaultTheme, defineUserConfig } from "vuepress"; + +export default defineUserConfig({ + theme: defaultTheme({ + repo: "raulfdm/taco-api", + locales: { + "/": { + navbar: [ + { + text: "Versão", + children: [ + { + text: "Changelog", + link: "https://github.com/raulfdm/taco-api/blob/main/CHANGELOG.md", + }, + { + text: "v1.0.0", + link: "https://6447d8ec2c2ccb00085151ca--taco-api.netlify.app/", + }, + ], + }, + ], + selectLanguageName: "Português", + toggleColorMode: "Alternar modo escuro", + openInNewWindow: "Abrir em nova aba", + backToHome: "Voltar para página inicial", + tip: "Dica", + warning: "Atenção", + danger: "Perigo", + contributorsText: "Contribuidores", + lastUpdatedText: "Atualizado pela última vez em", + editLinkText: "Edite esta página", + selectLanguageText: "Idiomas", + }, + "/en/": { + navbar: [ + { + text: "Version", + children: [ + { + text: "Changelog", + link: "https://github.com/raulfdm/taco-api/blob/main/CHANGELOG.md", + }, + { + text: "v1.0.0", + link: "https://6447d8ec2c2ccb00085151ca--taco-api.netlify.app/", + }, + ], + }, + ], + selectLanguageName: "English", + }, + }, + }), + locales: { + "/": { + lang: "pt-BR", + title: "TACO API", + description: "Tabela Brasileira de Composição de Alimentos", + }, + "/en/": { + lang: "en-US", + title: "TACO API", + description: "Brazilian Table of Food Composition", + }, + }, +}); diff --git a/documentation/README.md b/apps/website/docs/README.md similarity index 100% rename from documentation/README.md rename to apps/website/docs/README.md diff --git a/documentation/en/README.md b/apps/website/docs/en/README.md similarity index 100% rename from documentation/en/README.md rename to apps/website/docs/en/README.md diff --git a/documentation/images/graphql-client.png b/apps/website/docs/images/graphql-client.png similarity index 100% rename from documentation/images/graphql-client.png rename to apps/website/docs/images/graphql-client.png diff --git a/apps/website/package.json b/apps/website/package.json new file mode 100644 index 0000000..e1176ae --- /dev/null +++ b/apps/website/package.json @@ -0,0 +1,15 @@ +{ + "name": "website", + "private": true, + "scripts": { + "dev": "vuepress dev docs", + "build": "vuepress build docs", + "lint": "biome lint docs", + "lint:ci": "biome ci docs" + }, + "devDependencies": { + "@vuepress/client": "2.0.0-rc.0", + "vue": "3.3.11", + "vuepress": "2.0.0-rc.0" + } +} diff --git a/bun.lockb b/bun.lockb index d2d3590..652c52a 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/.bunfig.toml b/bunfig.toml similarity index 100% rename from .bunfig.toml rename to bunfig.toml diff --git a/documentation/.vuepress/config.ts b/documentation/.vuepress/config.ts deleted file mode 100644 index a653dde..0000000 --- a/documentation/.vuepress/config.ts +++ /dev/null @@ -1,67 +0,0 @@ -import { defaultTheme, defineUserConfig } from 'vuepress'; - -export default defineUserConfig({ - theme: defaultTheme({ - repo: 'raulfdm/taco-api', - locales: { - '/': { - navbar: [ - { - text: 'Versão', - children: [ - { - text: 'Changelog', - link: 'https://github.com/raulfdm/taco-api/blob/main/CHANGELOG.md', - }, - { - text: 'v1.0.0', - link: 'https://6447d8ec2c2ccb00085151ca--taco-api.netlify.app/', - }, - ], - }, - ], - selectLanguageName: 'Português', - toggleColorMode: 'Alternar modo escuro', - openInNewWindow: 'Abrir em nova aba', - backToHome: 'Voltar para página inicial', - tip: 'Dica', - warning: 'Atenção', - danger: 'Perigo', - contributorsText: 'Contribuidores', - lastUpdatedText: 'Atualizado pela última vez em', - editLinkText: 'Edite esta página', - selectLanguageText: 'Idiomas', - }, - '/en/': { - navbar: [ - { - text: 'Version', - children: [ - { - text: 'Changelog', - link: 'https://github.com/raulfdm/taco-api/blob/main/CHANGELOG.md', - }, - { - text: 'v1.0.0', - link: 'https://6447d8ec2c2ccb00085151ca--taco-api.netlify.app/', - }, - ], - }, - ], - selectLanguageName: 'English', - }, - }, - }), - locales: { - '/': { - lang: 'pt-BR', - title: 'TACO API', - description: 'Tabela Brasileira de Composição de Alimentos', - }, - '/en/': { - lang: 'en-US', - title: 'TACO API', - description: 'Brazilian Table of Food Composition', - }, - }, -}); diff --git a/package.json b/package.json index be86b8d..157f747 100644 --- a/package.json +++ b/package.json @@ -1,65 +1,38 @@ { - "name": "taco-api", - "description": "Brazilian Table of Food Composition (TACO) - GraphQL API", - "version": "2.3.0", + "name": "taco-workspace", + "private": true, + "workspaces": [ + "apps/*" + ], "type": "module", - "homepage": "https://github.com/raulfdm/taco-api", - "bugs": { - "url": "https://github.com/raulfdm/taco-api/issues" - }, "license": "MIT", "author": { "name": "Raul de Melo", "email": "contact@raulmelo.me" }, "scripts": { - "start": "NODE_ENV=production bun run src/app.ts", - "dev": "NODE_ENV=development bun --watch src/app.ts", - "studio": "prisma studio", - "build": "bun run scripts/build.ts", - "lint": "biome lint src", - "db:migrate": "NODE_ENV=development prisma migrate dev", - "db:generate": "NODE_ENV=development prisma generate", - "db:seed": "NODE_ENV=development prisma db seed", - "db:reset": "NODE_ENV=development prisma migrate reset", - "docs:dev": "vuepress dev documentation", - "docs:build": "vuepress build documentation", - "image:build": "bun run scripts/build-docker.ts", - "image:deploy": "bun run image:build && docker push raulfdm/taco-api", - "prepare": "husky install && bun run db:generate" - }, - "dependencies": { - "@prisma/client": "5.7.0", - "cors": "2.8.5", - "express": "4.18.2", - "graphql": "16.8.1", - "graphql-http": "1.22.0", - "graphql-modules": "2.3.0", - "zod": "3.22.4" + "prepare": "husky install", + "build": "turbo build", + "build:taco-image": "docker ", + "dev": "turbo dev", + "lint": "turbo lint", + "lint:ci": "turbo lint:ci", + "image:build": "bun run scripts/build-image.ts", + "image:deploy": "bun run image:build && docker push raulfdm/taco-api" }, "devDependencies": { + "@biomejs/biome": "1.4.1", "@changesets/cli": "2.27.1", - "@types/cors": "2.8.17", - "@types/express": "4.17.21", - "@vuepress/client": "2.0.0-rc.0", "bun-types": "1.0.15", - "csvtojson": "2.0.10", - "execa": "8.0.1", "husky": "8.0.3", "lint-staged": "15.1.0", - "prisma": "5.7.0", - "typescript": "5.3.2", - "vue": "3.3.9", - "vuepress": "2.0.0-rc.0" + "turbo": "1.11.1", + "typescript": "5.3.2" }, "packageManager": "bun@1.0.15", "engines": { "bun": "1.0.15" }, - "prisma": { - "seed": "bun run ./src/infrastructure/seed/index.ts", - "schema": "./src/infrastructure/prisma/schema.prisma" - }, "lint-staged": { "*.{js,ts,json}": "bunx @biomejs/biome check --apply" } diff --git a/scripts/build-docker.ts b/scripts/build-docker.ts deleted file mode 100644 index 660a7ad..0000000 --- a/scripts/build-docker.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { $ } from "execa"; - -import { version } from "../package.json"; - -const command = `docker build -t raulfdm/taco-api:v${version} -t raulfdm/taco-api:latest .`; - -await $({ shell: true, stdio: "inherit" })`${command}`; diff --git a/scripts/build-image.ts b/scripts/build-image.ts new file mode 100644 index 0000000..e21c6f1 --- /dev/null +++ b/scripts/build-image.ts @@ -0,0 +1,18 @@ +import { version } from "../apps/taco/package.json"; + +Bun.spawnSync( + [ + "docker", + "build", + "-f", + "./apps/taco/Dockerfile", + "-t", + `raulfdm/taco-api:v${version}`, + "-t", + "raulfdm/taco-api:latest", + ".", + ], + { + stdio: ["inherit", "inherit", "inherit"], + }, +); diff --git a/tsconfig.json b/tsconfig.json index 970200f..7556e1d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,12 +1,6 @@ { "compilerOptions": { - "lib": [ - "ESNext" - ], - "esModuleInterop": true, - "verbatimModuleSyntax": true, - "isolatedModules": true, - "resolveJsonModule": true, + "lib": ["ESNext"], "module": "esnext", "target": "esnext", "moduleResolution": "bundler", @@ -15,21 +9,14 @@ "noEmit": true, "composite": true, "strict": true, - "noUncheckedIndexedAccess": true, "downlevelIteration": true, "skipLibCheck": true, "jsx": "react-jsx", "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, "allowJs": true, - "baseUrl": ".", - "paths": { - "@/*": [ - "src/*" - ] - }, "types": [ "bun-types" // add Bun global ] } -} \ No newline at end of file +} diff --git a/turbo.json b/turbo.json new file mode 100644 index 0000000..448193b --- /dev/null +++ b/turbo.json @@ -0,0 +1,11 @@ +{ + "$schema": "https://turbo.build/schema.json", + "pipeline": { + "build": { + "outputs": ["dist/**"] + }, + "dev": {}, + "lint": {}, + "lint:ci": {} + } +}