@@ -8,7 +8,9 @@ This approach provides full control over your project setup and configuration.
88
99To see how to get started quickly, check out the [ Quick Start Guide] ( /getting-started/quick-start ) .
1010
11- ## 1. Create Project Directory
11+ ## Manual Setup Guide
12+
13+ ### 1. Create Project Directory
1214
1315Create a new directory for your project and navigate into it:
1416
@@ -17,7 +19,7 @@ mkdir solid-project
1719cd solid-project
1820```
1921
20- ## 2. Initialize Package Configuration
22+ ### 2. Initialize Package Configuration
2123
2224Create a ` package.json ` file to manage dependencies and scripts:
2325
@@ -37,7 +39,7 @@ yarn init -y
3739bun init
3840```
3941
40- ## 3. Install Solid and Build Tools
42+ ### 3. Install Solid and Build Tools
4143
4244Install Solid as a dependency:
4345
@@ -52,7 +54,7 @@ Vite is the recommended build tool for Solid projects due to its speed and ease
5254vite vite-plugin-solid
5355```
5456
55- ## 4. Configure Vite
57+ ### 4. Configure Vite
5658
5759To configure Vite for Solid, create a ` vite.config.js ` file in your project root:
5860
@@ -71,7 +73,7 @@ export default defineConfig({
7173});
7274```
7375
74- ## 5. Create HTML Template
76+ ### 5. Create HTML Template
7577
7678Create an ` index.html ` file in your project root:
7779
@@ -92,7 +94,7 @@ Create an `index.html` file in your project root:
9294</html >
9395```
9496
95- ## 6. Create Source Directory and Files
97+ ### 6. Create Source Directory and Files
9698
9799Create the source directory and core application files:
98100
@@ -147,7 +149,7 @@ body {
147149}
148150```
149151
150- ## 7. Add Build Scripts
152+ ### 7. Add Build Scripts
151153
152154Update your ` package.json ` to include the following scripts:
153155- ` dev ` - Start the development server
@@ -168,30 +170,26 @@ Update your `package.json` to include the following scripts:
168170}
169171```
170172
171- ## 8. Start Development Server
173+ ### 8. Start Development Server
172174
173175``` package-run
174176dev
175177```
176178
177- ## 9. Open in Browser
179+ ### 9. Open in Browser
178180
179181The development server will start on ` http://localhost:3000 ` . Open this URL in your browser and begin developing your Solid application!
180182
181- ## TypeScript Setup (Optional)
183+ ## TypeScript Setup
182184
183185To add TypeScript support to your project:
184186
185187### 1. Install TypeScript Dependencies
186188
187- ``` package-dev
189+ ``` package-install- dev
188190typescript
189191```
190192
191- ``` sh title="npm" tab="package-manager"
192- npm install --save-dev typescript
193- ```
194-
195193### 2. Create TypeScript Configuration
196194
197195Create a ` tsconfig.json ` file in your project root to configure TypeScript:
@@ -229,7 +227,7 @@ Rename your source files:
229227
230228In addition to updating the file extensions, ensure that your import statements reflect the new file types in the ` index.html ` file:
231229
232- ``` html
230+ ``` html title="index.html"
233231<script src =" /src/index.tsx" type =" module" ></script >
234232```
235233
0 commit comments