Skip to content

Commit

Permalink
chore(docker-setup): dockerize the project (#13)
Browse files Browse the repository at this point in the history
- update vite config
- set up docker

[Finishes #10]
  • Loading branch information
jkarenzi authored and Dawaic6 committed Jun 7, 2024
1 parent e6e16f6 commit 83a77db
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 4 deletions.
46 changes: 46 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"tailwindcss": "^3.4.3",
"typescript": "^5.2.2",
"vite": "^5.2.0",
"vite-tsconfig-paths": "^4.3.2",
"vitest": "^1.6.0"
}
}
2 changes: 1 addition & 1 deletion src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App.tsx';
import App from 'src/App.tsx';
import './index.css';

ReactDOM.createRoot(document.getElementById('root')!).render(
Expand Down
7 changes: 7 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
"module": "ESNext",
"skipLibCheck": true,

/*Configure TypeScript Paths*/

"baseUrl": "./",
"paths": {
"@src/*": ["src/*"],
},

/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
Expand Down
12 changes: 9 additions & 3 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,24 @@

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import path from 'path';

// https://vitejs.dev/config/
// vite.config.ts
export default defineConfig({
plugins: [react()],
server: {
server:{
host: true,
strictPort: true,
port: 8080,
port: 8080
},
test: {
globals: true,
environment: 'jsdom',
setupFiles: ['./src/__test__/setupTests.ts'],
},
resolve: {
alias: {
'@': path.resolve(__dirname, 'src'),
},
},
});

0 comments on commit 83a77db

Please sign in to comment.