Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update solid start #5

Merged
merged 3 commits into from
Mar 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 0 additions & 59 deletions .eslintrc.cjs

This file was deleted.

36 changes: 4 additions & 32 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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]
Expand Down
3 changes: 0 additions & 3 deletions .prettierignore

This file was deleted.

4 changes: 0 additions & 4 deletions .prettierrc.cjs

This file was deleted.

29 changes: 2 additions & 27 deletions README.md
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`.
14 changes: 14 additions & 0 deletions app.config.ts
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({}),
],
},
});
15 changes: 15 additions & 0 deletions biome.json
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"
}
}
63 changes: 20 additions & 43 deletions package.json
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]"
}
Loading
Loading