Skip to content

Commit 9d6e3f9

Browse files
committed
initial support for adding solid (source and examples folder)
1 parent e9183b1 commit 9d6e3f9

File tree

22 files changed

+9121
-0
lines changed

22 files changed

+9121
-0
lines changed

solid-examples/.gitignore

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

solid-examples/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://github.com/solidjs-community/solid-cli)

solid-examples/app.config.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { defineConfig } from '@solidjs/start/config';
2+
import path from 'node:path';
3+
4+
import { vanillaExtractPlugin } from '@vanilla-extract/vite-plugin';
5+
6+
const __dirname = path.resolve();
7+
8+
export default defineConfig({
9+
vite: {
10+
resolve: {
11+
alias: {
12+
'@src': path.resolve(__dirname, '../solid-source/src'),
13+
'@infinite': path.resolve(__dirname, '../source/src'),
14+
},
15+
},
16+
plugins: [vanillaExtractPlugin()],
17+
},
18+
});

0 commit comments

Comments
 (0)