-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from eyemono-moe/update-solid-start
Update solid start
- Loading branch information
Showing
41 changed files
with
4,415 additions
and
5,852 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,8 +15,8 @@ jobs: | |
cache: pnpm | ||
cache-dependency-path: pnpm-lock.yaml | ||
- run: pnpm install --frozen-lockfile | ||
format: | ||
name: Format | ||
check: | ||
name: Check | ||
runs-on: ubuntu-latest | ||
needs: packages | ||
steps: | ||
|
@@ -28,39 +28,11 @@ jobs: | |
cache: pnpm | ||
cache-dependency-path: pnpm-lock.yaml | ||
- run: pnpm install --frozen-lockfile | ||
- run: pnpm run format | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
needs: packages | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: pnpm/[email protected] | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: pnpm | ||
cache-dependency-path: pnpm-lock.yaml | ||
- run: pnpm install --frozen-lockfile | ||
- run: pnpm run lint | ||
typecheck: | ||
name: Check types | ||
runs-on: ubuntu-latest | ||
needs: packages | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: pnpm/[email protected] | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: pnpm | ||
cache-dependency-path: pnpm-lock.yaml | ||
- run: pnpm install --frozen-lockfile | ||
- run: pnpm run typecheck | ||
- run: pnpm run check | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
needs: [format, lint, typecheck] | ||
needs: [check] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: pnpm/[email protected] | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,5 @@ | ||
# SolidStart | ||
当時(2021/04/02)の時点でtraPブログには1092記事が存在していましたが、この3年間で総記事数は1754記事に達し、約660記事が新たに執筆されました。 | ||
|
||
Everything you need to build a Solid project, powered by [`solid-start`](https://start.solidjs.com); | ||
ということで本記事では、新たに作成された記事の中から私のお気に入りの記事をピックアップしてご紹介したいと思います。 | ||
|
||
## Creating a project | ||
|
||
```bash | ||
# create a new project in the current directory | ||
npm init solid@latest | ||
|
||
# create a new project in my-app | ||
npm init solid@latest my-app | ||
``` | ||
|
||
## Developing | ||
|
||
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server: | ||
|
||
```bash | ||
npm run dev | ||
|
||
# or start the server and open the app in a new browser tab | ||
npm run dev -- --open | ||
``` | ||
|
||
## Building | ||
|
||
Solid apps are built with _adapters_, which optimise your project for deployment to different environments. | ||
|
||
By default, `npm run build` will generate a Node app that you can run with `npm start`. To use a different adapter, add it to the `devDependencies` in `package.json` and specify in your `vite.config.js`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import mdx from "@mdx-js/rollup"; | ||
import { defineConfig } from "@solidjs/start/config"; | ||
import UnoCSS from "unocss/vite"; | ||
|
||
export default defineConfig({ | ||
vite: { | ||
plugins: [ | ||
mdx({ | ||
jsxImportSource: "solid-jsx", | ||
}), | ||
UnoCSS({}), | ||
], | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.6.0/schema.json", | ||
"organizeImports": { | ||
"enabled": true | ||
}, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"recommended": true | ||
} | ||
}, | ||
"formatter": { | ||
"indentStyle": "space" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,33 @@ | ||
{ | ||
"name": "portfolio", | ||
"scripts": { | ||
"dev": "solid-start dev --host", | ||
"build": "solid-start build", | ||
"start": "solid-start start", | ||
"lint": "eslint --ext .js,.jsx,.ts,.tsx --fix .", | ||
"format": "prettier --write .", | ||
"typecheck": "tsc --noEmit", | ||
"postinstall": "node tools/add-ts-nocheck.js" | ||
"dev": "vinxi dev", | ||
"build": "vinxi build", | ||
"start": "vinxi start", | ||
"version": "vinxi version", | ||
"check": "biome check .", | ||
"check:apply": "biome check --apply ." | ||
}, | ||
"type": "module", | ||
"devDependencies": { | ||
"@mdx-js/rollup": "^2.3.0", | ||
"@types/debug": "^4.1.8", | ||
"@types/eslint": "^8.40.0", | ||
"@types/node": "^18.16.16", | ||
"@types/prettier": "^2.7.3", | ||
"@typescript-eslint/eslint-plugin": "^5.59.8", | ||
"@typescript-eslint/parser": "^5.59.8", | ||
"esbuild": "^0.14.54", | ||
"eslint": "^8.41.0", | ||
"eslint-config-prettier": "^8.8.0", | ||
"eslint-plugin-import": "^2.27.5", | ||
"eslint-plugin-n": "^15.7.0", | ||
"eslint-plugin-promise": "^6.1.1", | ||
"eslint-plugin-solid": "^0.12.1", | ||
"eslint-plugin-unused-imports": "^2.0.0", | ||
"postcss": "^8.4.24", | ||
"prettier": "^2.8.8", | ||
"solid-jsx": "^0.9.1", | ||
"solid-start-node": "^0.2.26", | ||
"typescript": "^5.1.3", | ||
"vite": "^4.3.9", | ||
"vite-plugin-solid-markdown": "^0.0.6" | ||
"@biomejs/biome": "1.6.0", | ||
"@iconify-json/ri": "^1.1.20", | ||
"@unocss/transformer-variant-group": "^0.58.5", | ||
"solid-jsx": "^1.1.4", | ||
"unocss": "^0.58.5" | ||
}, | ||
"dependencies": { | ||
"@macaron-css/core": "^1.2.0", | ||
"@macaron-css/solid": "^1.4.1", | ||
"@macaron-css/vite": "^1.4.2", | ||
"@solid-primitives/resize-observer": "^2.0.18", | ||
"@solidjs/meta": "^0.28.5", | ||
"@solidjs/router": "^0.8.2", | ||
"normalize.css": "^8.0.1", | ||
"solid-icons": "^1.0.7", | ||
"solid-js": "^1.7.6", | ||
"solid-mdx": "^0.0.6", | ||
"solid-start": "^0.2.26", | ||
"solid-start-vercel": "^0.2.26", | ||
"undici": "^5.22.1" | ||
"@mdx-js/rollup": "^3.0.1", | ||
"@solid-primitives/resize-observer": "^2.0.25", | ||
"@solidjs/meta": "^0.29.3", | ||
"@solidjs/router": "^0.13.0", | ||
"@solidjs/start": "^0.7.3", | ||
"@unocss/reset": "^0.58.5", | ||
"solid-js": "^1.8.15", | ||
"vinxi": "^0.3.10" | ||
}, | ||
"engines": { | ||
"node": ">=16.8" | ||
"node": ">=18" | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
Oops, something went wrong.