Skip to content

Commit 5b990ec

Browse files
committed
new: solid start test
1 parent a5ebf6b commit 5b990ec

20 files changed

+4932
-0
lines changed

typescript-solid-start/.gitignore

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
2+
dist
3+
.solid
4+
.output
5+
.vercel
6+
.netlify
7+
netlify
8+
.vinxi
9+
10+
# Environment
11+
.env
12+
.env*.local
13+
14+
# dependencies
15+
/node_modules
16+
17+
# IDEs and editors
18+
/.idea
19+
.project
20+
.classpath
21+
*.launch
22+
.settings/
23+
24+
# Temp
25+
gitignore
26+
27+
# System Files
28+
.DS_Store
29+
Thumbs.db

typescript-solid-start/README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# SolidStart
2+
3+
Everything you need to build a Solid project, powered by [`solid-start`](https://start.solidjs.com);
4+
5+
## Creating a project
6+
7+
```bash
8+
# create a new project in the current directory
9+
npm init solid@latest
10+
11+
# create a new project in my-app
12+
npm init solid@latest my-app
13+
```
14+
15+
## Developing
16+
17+
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
18+
19+
```bash
20+
npm run dev
21+
22+
# or start the server and open the app in a new browser tab
23+
npm run dev -- --open
24+
```
25+
26+
## Building
27+
28+
Solid apps are built with _presets_, which optimise your project for deployment to different environments.
29+
30+
By default, `npm run build` will generate a Node app that you can run with `npm start`. To use a different preset, add it to the `devDependencies` in `package.json` and specify in your `app.config.js`.
31+
32+
## This project was created with the [Solid CLI](https://solid-cli.netlify.app)

typescript-solid-start/app.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { defineConfig } from "@solidjs/start/config";
2+
3+
export default defineConfig({
4+
5+
});

typescript-solid-start/package.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "example-with-tailwindcss",
3+
"type": "module",
4+
"scripts": {
5+
"dev": "vinxi dev",
6+
"build": "vinxi build",
7+
"start": "vinxi start"
8+
},
9+
"dependencies": {
10+
"@solidjs/router": "^0.13.1",
11+
"@solidjs/start": "^1.0.0-rc.0",
12+
"autoprefixer": "^10.4.14",
13+
"postcss": "^8.4.26",
14+
"solid-js": "^1.8.16",
15+
"tailwindcss": "^3.3.3",
16+
"vinxi": "^0.3.10"
17+
},
18+
"engines": {
19+
"node": ">=18"
20+
}
21+
}

0 commit comments

Comments
 (0)