Skip to content

Commit

Permalink
refactor: reorganized folders
Browse files Browse the repository at this point in the history
  • Loading branch information
alevann committed May 5, 2023
1 parent cb765dd commit 169665f
Show file tree
Hide file tree
Showing 23 changed files with 32 additions and 11 deletions.
6 changes: 2 additions & 4 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import Body from './Body'
import Header from './Header'
import Home from './pages/Home'
import './App.scss'

const App = () => {
return (
<div className='app-container'>
<Header />
<Body />
<Home />
</div>
)
}
Expand Down
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
2 changes: 1 addition & 1 deletion src/Body/index.tsx → src/pages/Home/Body/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Text from '../Text'
import Text from '@/components/Text'
import './Body.scss'
import './ProjectCards.scss'

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/Header/index.tsx → src/pages/Home/Header/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Text from '../Text'
import Text from '@/components/Text'
import SocialButton from '../SocialButton'
import PhotoOfMeURL from './profile.jpeg'
import './Header.scss'
Expand Down
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
13 changes: 13 additions & 0 deletions src/pages/Home/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import Header from './Header'
import Body from './Body'

const Home = () => {
return (
<div>
<Header />
<Body />
</div>
)
}

export default Home
12 changes: 9 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
{
"compilerOptions": {
"baseUrl": "src",
"jsx": "preserve",
"module": "commonjs",
"target": "es5",
"outDir": "dist",
"paths": {
"@/*": [
"./*"
]
},
"sourceMap": true,
"jsx": "preserve",
"outDir": "dist"
"target": "es5"
},
"exclude": [
"node_modules"
Expand Down
8 changes: 6 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ const CopyPlugin = require("copy-webpack-plugin");

const configs = {
paths: {
output: path.resolve(__dirname, 'dist')
output: path.resolve(__dirname, 'dist'),
src: path.resolve(__dirname, 'src')
}
}

Expand Down Expand Up @@ -65,6 +66,9 @@ module.exports = {
watchFiles: ['node_modules/terra/dist']
},
resolve: {
extensions: ['.js', '.json', '.wasm', '.jsx', '.ts', '.tsx']
extensions: ['.js', '.json', '.wasm', '.jsx', '.ts', '.tsx'],
alias: {
'@': [configs.paths.src]
}
}
}

0 comments on commit 169665f

Please sign in to comment.