Skip to content

Commit

Permalink
feat(backend)!: Add SWC
Browse files Browse the repository at this point in the history
  • Loading branch information
aXenDeveloper committed Feb 28, 2024
1 parent ef0bea6 commit b95f162
Show file tree
Hide file tree
Showing 5 changed files with 1,874 additions and 1,198 deletions.
17 changes: 17 additions & 0 deletions backend/.swcrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "https://json.schemastore.org/swcrc",
"sourceMaps": true,
"jsc": {
"parser": {
"syntax": "typescript",
"decorators": true,
"dynamicImport": true
},
"paths": {
"@/*": ["./*"],
"~/*": ["../*"]
},
"baseUrl": "./"
},
"minify": false
}
9 changes: 8 additions & 1 deletion backend/nest-cli.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
"collection": "@nestjs/schematics",
"sourceRoot": "src",
"compilerOptions": {
"deleteOutDir": true
"deleteOutDir": true,
"builder": {
"type": "swc",
"options": {
"swcrcPath": ".swcrc"
}
},
"typeCheck": true
}
}
16 changes: 9 additions & 7 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"class-validator": "^0.14.1",
"cookie-parser": "^1.4.6",
"date-fns": "^3.3.1",
"drizzle-orm": "^0.29.3",
"drizzle-orm": "^0.29.4",
"graphql": "^16.8.1",
"object-path": "^0.11.8",
"pg": "^8.11.3",
Expand All @@ -59,28 +59,30 @@
"@nestjs/serve-static": "^4.0.1",
"@nestjs/testing": "^10.3.3",
"@socket.io/redis-adapter": "^8.2.1",
"@swc/cli": "^0.3.10",
"@swc/core": "^1.4.2",
"@types/archiver": "^6.0.2",
"@types/bcrypt": "^5.0.2",
"@types/busboy": "^1.5.3",
"@types/cookie-parser": "^1.4.6",
"@types/express": "^4.17.21",
"@types/jest": "^29.5.12",
"@types/node": "^20.11.19",
"@types/node": "^20.11.22",
"@types/object-path": "^0.11.4",
"@types/pg": "^8.11.0",
"@types/pg": "^8.11.2",
"@types/supertest": "^6.0.2",
"@types/tar": "^6.1.11",
"@types/ua-parser-js": "^0.7.39",
"@typescript-eslint/eslint-plugin": "^7.0.2",
"@typescript-eslint/parser": "^7.0.2",
"@typescript-eslint/eslint-plugin": "^7.1.0",
"@typescript-eslint/parser": "^7.1.0",
"cross-env": "^7.0.3",
"drizzle-kit": "^0.20.14",
"eslint": "^8.56.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-sort-destructure-keys": "^1.5.0",
"eslint-plugin-typescript-sort-keys": "^3.1.0",
"eslint-plugin-typescript-sort-keys": "^3.2.0",
"http-errors": "^2.0.0",
"jest": "^29.7.0",
"source-map-support": "^0.5.21",
Expand Down
34 changes: 17 additions & 17 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@
"cropperjs": "^1.6.1",
"date-fns": "^3.3.1",
"emoji-mart": "^5.5.2",
"framer-motion": "^11.0.5",
"framer-motion": "^11.0.6",
"graphql": "^16.8.1",
"graphql-tag": "^2.12.6",
"lexical": "^0.13.1",
"lodash": "^4.17.21",
"lucide-react": "^0.335.0",
"lucide-react": "^0.343.0",
"next": "^14.1.0",
"next-intl": "^3.9.0",
"next-intl": "^3.9.1",
"next-themes": "^0.2.1",
"react": "18.2.0",
"react-colorful": "^5.6.1",
Expand All @@ -59,10 +59,10 @@
"react-dom": "18.2.0",
"react-hook-form": "^7.50.1",
"react-use": "^17.5.0",
"react-virtuoso": "^4.7.0",
"react-virtuoso": "^4.7.1",
"server-only": "^0.0.1",
"sharp": "^0.33.2",
"sonner": "^1.4.0",
"sonner": "^1.4.2",
"tailwindcss-animate": "^1.0.7",
"use-debounce": "^10.0.0",
"vaul": "^0.9.0",
Expand All @@ -74,9 +74,9 @@
"@dnd-kit/utilities": "^3.2.2",
"@emoji-mart/data": "^1.1.2",
"@graphql-codegen/cli": "5.0.2",
"@graphql-codegen/typescript": "^4.0.5",
"@graphql-codegen/typescript-document-nodes": "^4.0.5",
"@graphql-codegen/typescript-operations": "^4.1.3",
"@graphql-codegen/typescript": "^4.0.6",
"@graphql-codegen/typescript-document-nodes": "^4.0.6",
"@graphql-codegen/typescript-operations": "^4.2.0",
"@hookform/resolvers": "^3.3.4",
"@lexical/code": "^0.13.1",
"@lexical/headless": "^0.13.1",
Expand All @@ -95,22 +95,22 @@
"@radix-ui/react-popover": "^1.0.7",
"@radix-ui/react-toolbar": "^1.0.4",
"@tanstack/eslint-plugin-query": "^5.20.1",
"@tanstack/react-query": "^5.22.2",
"@tanstack/react-query-devtools": "^5.24.0",
"@tanstack/react-table": "^8.12.0",
"@tanstack/react-query": "^5.24.1",
"@tanstack/react-query-devtools": "^5.24.1",
"@tanstack/react-table": "^8.13.2",
"@types/lodash": "^4.14.202",
"@types/node": "^20.11.19",
"@types/react": "^18.2.57",
"@types/node": "^20.11.22",
"@types/react": "^18.2.60",
"@types/react-dom": "^18.2.19",
"@typescript-eslint/eslint-plugin": "^7.0.2",
"@typescript-eslint/parser": "^7.0.2",
"@typescript-eslint/eslint-plugin": "^7.1.0",
"@typescript-eslint/parser": "^7.1.0",
"cross-env": "^7.0.3",
"eslint": "^8.56.0",
"eslint": "^8.57.0",
"eslint-config-next": "^14.1.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-sort-destructure-keys": "^1.5.0",
"eslint-plugin-typescript-sort-keys": "^3.1.0",
"eslint-plugin-typescript-sort-keys": "^3.2.0",
"postcss": "^8.4.35",
"sass": "^1.71.1",
"tailwind-merge": "^2.2.1",
Expand Down
Loading

0 comments on commit b95f162

Please sign in to comment.