Closed frankTurtle closed 2 years ago
@frankTurtle is attempting to deploy a commit to the Developerdao Team on Vercel.
A member of the Team first needs to authorize it.
Absolute imports makes it easier to move files around and avoid messy import paths such as ../../../Component
.
Other than having multiple paths for different folders (such as @components
, @hooks
, etc...) , Using @/*
or ~/*
works very well because it is short enough so there is no need to configure multiple paths and it differs from other dependency modules, so there is no confusion in what comes from node_modules
and what is our source folder.
Example config for current structure.
// tsconfig.json
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["*"]
}
}
Absolute imports makes it easier to move files around and avoid messy import paths such as
../../../Component
.Other than having multiple paths for different folders (such as
@components
,@hooks
, etc...) , Using@/*
or~/*
works very well because it is short enough so there is no need to configure multiple paths and it differs from other dependency modules, so there is no confusion in what comes fromnode_modules
and what is our source folder.Example config for current structure.
// tsconfig.json "compilerOptions": { "baseUrl": ".", "paths": { "@/*": ["*"] } }
Yup let's go with this one @frankTurtle
I'll get this pushed tomorrow, sorry for the delay!
Give 'er a look-see @with-heart && @carlomigueldy
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/developdao/dao-job-board/ESw7jodffFKYea1A2w5TuabMycHR
✅ Preview: https://dao-job-board-git-fork-frankturtle-feature-pa-85ae14-developdao.vercel.app
What does it fix?
Solves #61 No longer using
../../../../folder/lib
imports in theclient
folderNotes
For some reason the aliases don't work?