A profile webpage with filter functionality. Built with Typescript, Vite, PNPM and vanilla Web Components.
- Install PNPM with
npm install -g pnpm
- URL coming soon.
# install dependencies (Typescript, Vite)
pnpm install
# or, `npm install`
# run Vite with PNPM
pnpm run dev # or, `npm run dev` when using NPM
# or, you can also just run Vite
vite
# or, `vite dev`
# or, `vite serve`
# without Vite: just watch for source changes with the Typescript compiler
tsc --watch
# preview the production build locally
pnpm run preview # or, vite preview
# build
pnpm run build
Add "moduleResolution": "node",
otherwise the TS compiler complains about a module resolution strategy
. Note: The Vite scaffold project uses Typescript 4.4.4. This project uses: "typescript": "^4.5.3"
.
{
"compilerOptions": {
"target": "ESNext",
"useDefineForClassFields": true,
"module": "ESNext",
"lib": ["ESNext", "DOM"],
"moduleResolution": "Node",
"strict": true,
"sourceMap": true,
"resolveJsonModule": true,
"moduleResolution": "node",
"esModuleInterop": true,
"noEmit": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true
},
"include": ["./src"]
}
- Scaffold project
- Import data.ts
- Setup the initial dev class
-
Add error handling for fetch() - Create class for the dev skills
- Add Typescript as dev-dep
- Optional: add Vite
- Scaffold some WebComponents
- Add styling and basic animations
- Create the filter and developer DOM elements
- Add methods and logic for the filter states
- Add project to Vercel: https://vitejs.dev/guide/static-deploy.html#vercel