Skip to content

Commit 32b4296

Browse files
committed
cleanup and a bunch of improvements
1 parent ca02182 commit 32b4296

25 files changed

Lines changed: 125 additions & 77 deletions

File tree

03-bundling/06-vite/06-typescript/README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Install [Node.js and npm](https://nodejs.org/en/) (20.19.0 || >=22.12.0) if they
7676

7777
The rest is just a starting boilerplate configuration you can tweak based on your needs.
7878

79-
- Let's simplify our `index.html` file just to focus on TS:
79+
- ⚠️ It's time to do a bit of cleanup. Let's simplify our `index.html` file just to focus on TS:
8080

8181
_index.html_
8282

@@ -145,6 +145,19 @@ Install [Node.js and npm](https://nodejs.org/en/) (20.19.0 || >=22.12.0) if they
145145

146146
🔎 Notice we didn't need to add module syntax like `export {}` because TS already understands it's a module since we added `"type": "module"` in `package.json` file.
147147

148+
- ⚠️ Finally, now that we removed the usage of `SASS`, `bootstrap` and `images` let's delete related files to keep project tidy:
149+
150+
```bash
151+
DELETE src/content/
152+
DELETE src/mystyles.scss
153+
```
154+
155+
and also uninstall dependencies:
156+
157+
```bash
158+
npm uninstall bootstrap sass-embedded
159+
```
160+
148161
- Time to start the project!
149162

150163
```bash

03-bundling/06-vite/06-typescript/package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,9 @@
99
"preview": "vite preview"
1010
},
1111
"devDependencies": {
12-
"sass-embedded": "^1.89.2",
1312
"tslib": "^2.8.1",
1413
"typescript": "^5.8.3",
1514
"vite": "^7.0.4",
1615
"vite-plugin-checker": "^0.10.0"
17-
},
18-
"dependencies": {
19-
"bootstrap": "^5.3.7"
2016
}
2117
}
-21.9 KB
Binary file not shown.
-14.2 KB
Binary file not shown.

03-bundling/06-vite/06-typescript/src/mystyles.scss

Lines changed: 0 additions & 9 deletions
This file was deleted.

03-bundling/06-vite/07-react/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,11 @@
1313
"@types/react": "^19.1.8",
1414
"@types/react-dom": "^19.1.6",
1515
"@vitejs/plugin-react": "^4.6.0",
16-
"sass-embedded": "^1.89.2",
1716
"typescript": "^5.8.3",
1817
"vite": "^7.0.4",
1918
"vite-plugin-checker": "^0.10.0"
2019
},
2120
"dependencies": {
22-
"bootstrap": "^5.3.7",
2321
"react": "^19.1.0",
2422
"react-dom": "^19.1.0"
2523
}
-21.9 KB
Binary file not shown.
-14.2 KB
Binary file not shown.

03-bundling/06-vite/07-react/src/mystyles.scss

Lines changed: 0 additions & 9 deletions
This file was deleted.

03-bundling/06-vite/08-env-vars/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ Install [Node.js and npm](https://nodejs.org/en/) (20.19.0 || >=22.12.0) if they
8181
+ }
8282
```
8383

84+
> ℹ️ This extension to already existing types is usually called "augmentation".
85+
8486
⚡ One important thing to note here is that all variables are **strings**. If you need some variables as `boolean` or `number` you may prefer to create your own `environment.ts` or `config.ts` to pre-process and parse them.
8587

8688
- Let's add another variable to our `.env` file:

0 commit comments

Comments
 (0)