Skip to content

Commit

Permalink
Modify style
Browse files Browse the repository at this point in the history
Use pnpm

Update dependencies

Add @unocss/reset

Remove unused SvelteKit adapter
  • Loading branch information
gxres042 committed Sep 26, 2024
1 parent 1d89a48 commit c935126
Show file tree
Hide file tree
Showing 15 changed files with 3,166 additions and 124 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy landing site
name: Deploy

on:
push:
Expand All @@ -12,16 +12,18 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Setup Node.js
- name: Prepare pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Prepare Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: bun install
run: pnpm install
- name: Build SvelteKit site
run: bun run build
run: pnpm build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
Expand All @@ -30,4 +32,4 @@ jobs:
publish_dir: ./build
user_name: slivermoe
user_email: [email protected]
cname: slirv.vip
cname: slirv.vip
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Sliver Complex - Landing Site

The landing site of Sliver Complex, powered by SvelteKit.
The landing site of Sliver Complex, powered by SvelteKit.
Binary file removed bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import ts from 'typescript-eslint';
import svelte from 'eslint-plugin-svelte';
import prettier from 'eslint-config-prettier';
import globals from 'globals';
import unocss from '@unocss/eslint-config/flat'
import unocss from '@unocss/eslint-config/flat';

/** @type {import('eslint').Linter.FlatConfig[]} */
export default [
Expand Down
78 changes: 38 additions & 40 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,42 +1,40 @@
{
"name": "s-complex",
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "vite dev",
"build": "vite build",
"preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --check . && eslint .",
"format": "prettier --write ."
},
"devDependencies": {
"@sveltejs/adapter-auto": "^3.0.0",
"@sveltejs/adapter-static": "^3.0.2",
"@sveltejs/kit": "^2.0.0",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"@types/eslint": "^8.56.7",
"@unocss/eslint-config": "^0.61.5",
"@unocss/extractor-svelte": "^0.61.3",
"@unocss/transformer-compile-class": "^0.61.3",
"eslint": "^9.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte": "^2.36.0",
"globals": "^15.0.0",
"prettier": "^3.1.1",
"prettier-plugin-svelte": "^3.1.2",
"svelte": "^4.2.7",
"svelte-check": "^3.6.0",
"tslib": "^2.4.1",
"typescript": "^5.0.0",
"typescript-eslint": "^8.0.0-alpha.20",
"unocss": "^0.61.3",
"vite": "^5.0.3"
},
"type": "module",
"dependencies": {
"@unocss/reset": "^0.61.3",
"svelte-theme-select": "^0.0.7"
}
"name": "s-complex",
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "vite dev",
"build": "vite build",
"preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --check . && eslint .",
"format": "prettier --write ."
},
"devDependencies": {
"@sveltejs/adapter-static": "^3.0.5",
"@sveltejs/kit": "^2.5.28",
"@sveltejs/vite-plugin-svelte": "^3.1.2",
"@types/eslint": "^9.6.1",
"@unocss/eslint-config": "^0.62.4",
"@unocss/extractor-svelte": "^0.62.4",
"eslint": "^9.11.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte": "^2.44.0",
"globals": "^15.9.0",
"prettier": "^3.3.3",
"prettier-plugin-svelte": "^3.2.7",
"svelte": "^4.2.19",
"svelte-check": "^4.0.2",
"tslib": "^2.7.0",
"typescript": "^5.6.2",
"typescript-eslint": "^8.7.0",
"unocss": "^0.62.4",
"vite": "^5.4.8"
},
"type": "module",
"dependencies": {
"@unocss/reset": "^0.62.4",
"svelte-theme-select": "^0.0.7"
}
}
Loading

0 comments on commit c935126

Please sign in to comment.