Skip to content

Commit 180eb6d

Browse files
authored
Merge pull request #16 from LF112/dev
React19 + TailwindCSS v4 + rsbuild
2 parents 0440ab0 + 0c43215 commit 180eb6d

File tree

192 files changed

+20111
-26354
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

192 files changed

+20111
-26354
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Auto Version Patch
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
auto-version-patch:
10+
runs-on: ubuntu-latest
11+
12+
permissions:
13+
contents: write
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
with:
19+
ref: ${{ github.head_ref }}
20+
21+
- name: Patch version
22+
id: patch_version
23+
run: |
24+
PKG_VER=$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g' | xargs)
25+
major=$(echo $PKG_VER | cut -d. -f1)
26+
minor=$(echo $PKG_VER | cut -d. -f2)
27+
build=$(echo $PKG_VER | cut -d. -f3)
28+
29+
if [ $build -lt 50 ]; then
30+
build=$((build + 1))
31+
else
32+
build=0
33+
if [ $minor -lt 50 ]; then
34+
minor=$((minor + 1))
35+
else
36+
minor=0
37+
major=$((major + 1))
38+
fi
39+
fi
40+
41+
NEW_VER="$major.$minor.$build"
42+
43+
npm --no-git-tag-version version $NEW_VER
44+
# We don't need a .lock file other than bun.lockb.
45+
rm -rf package-lock.json yarn.lock pnpm-lock.yaml
46+
47+
echo "package_version=$NEW_VER" >> $GITHUB_OUTPUT
48+
49+
- name: Commit and push changes
50+
uses: stefanzweifel/git-auto-commit-action@v5
51+
with:
52+
commit_message: 'feat: auto update version ${{ steps.patch_version.outputs.package_version }} ↑'

.github/workflows/main.yml

Lines changed: 0 additions & 101 deletions
This file was deleted.

.github/workflows/updateVersion.yml

Lines changed: 0 additions & 54 deletions
This file was deleted.

.gitignore

Lines changed: 13 additions & 108 deletions
Original file line numberDiff line numberDiff line change
@@ -1,108 +1,13 @@
1-
# Logs
2-
logs
3-
*.log
4-
npm-debug.log*
5-
yarn-debug.log*
6-
yarn-error.log*
7-
lerna-debug.log*
8-
9-
# Diagnostic reports (https://nodejs.org/api/report.html)
10-
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11-
12-
# Runtime data
13-
pids
14-
*.pid
15-
*.seed
16-
*.pid.lock
17-
18-
# Directory for instrumented libs generated by jscoverage/JSCover
19-
lib-cov
20-
21-
# Coverage directory used by tools like istanbul
22-
coverage
23-
*.lcov
24-
25-
# nyc test coverage
26-
.nyc_output
27-
28-
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
29-
.grunt
30-
31-
# Bower dependency directory (https://bower.io/)
32-
bower_components
33-
34-
# node-waf configuration
35-
.lock-wscript
36-
37-
# Compiled binary addons (https://nodejs.org/api/addons.html)
38-
build/Release
39-
40-
# Dependency directories
41-
node_modules/
42-
jspm_packages/
43-
44-
# TypeScript v1 declaration files
45-
typings/
46-
47-
# TypeScript cache
48-
*.tsbuildinfo
49-
50-
# Optional npm cache directory
51-
.npm
52-
53-
# Optional eslint cache
54-
.eslintcache
55-
56-
# Microbundle cache
57-
.rpt2_cache/
58-
.rts2_cache_cjs/
59-
.rts2_cache_es/
60-
.rts2_cache_umd/
61-
62-
# Optional REPL history
63-
.node_repl_history
64-
65-
# Output of 'npm pack'
66-
*.tgz
67-
68-
# Yarn Integrity file
69-
.yarn-integrity
70-
71-
# dotenv environment variables file
72-
.env
73-
.env.test
74-
75-
# parcel-bundler cache (https://parceljs.org/)
76-
.cache
77-
78-
# Next.js build output
79-
.next
80-
81-
# Nuxt.js build / generate output
82-
.nuxt
83-
dist
84-
85-
# Gatsby files
86-
.cache/
87-
# Comment in the public line in if your project uses Gatsby and *not* Next.js
88-
# https://nextjs.org/blog/next-9-1#public-directory-support
89-
# public
90-
91-
# vuepress build output
92-
.vuepress/dist
93-
94-
# Serverless directories
95-
.serverless/
96-
97-
# FuseBox cache
98-
.fusebox/
99-
100-
# DynamoDB Local files
101-
.dynamodb/
102-
103-
# TernJS port file
104-
.tern-port
105-
106-
package-lock.json
107-
yarn.lock
108-
pnpm-lock.yaml
1+
# Local
2+
.DS_Store
3+
*.local
4+
*.log*
5+
6+
# Dist
7+
node_modules
8+
dist/
9+
10+
# IDE
11+
.vscode/*
12+
!.vscode/extensions.json
13+
.idea

.prettierrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"singleQuote": true,
3+
"tabWidth": 2,
4+
"semi": true,
5+
"printWidth": 200,
6+
"jsxSingleQuote": false,
7+
"trailingComma": "all",
8+
"plugins": [
9+
"prettier-plugin-tailwindcss"
10+
]
11+
}

README.md

Lines changed: 11 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,40 +2,28 @@
22
<img alt="futiwolf" src="./futi.svg" style="width: 100px; height: 100px;" align="left">
33
</a>
44

5-
<div align="left">
5+
<div>
66

7-
# 「 一实无言 」- 底特律风格个人主页
7+
# LF112「@futiwolf」- Personal Homepage
88

99
**_<a href="https://www.lf112.net">WWW.LF112.NET</a>_** / ⚡️ Based on Detroit sci-fi style personal homepage.
1010

1111
</div>
1212

1313
> ```bash
14-
> $ echo 'Copy and paste constant defaulting'
15-
> $ yarn run start --port=1024
14+
> $ bun install
15+
> $ bun run dev
1616
>
17-
> _ _____ _ _ ____ _ _ _____ _____
18-
> | | | ___/ / |___ | | | ____|_ _|
19-
> | | | |_ | | | __) | | | | _| | |
20-
> | |___| _| | | |/ __/ _| | | |___ | |
21-
> |_____|_| |_|_|_____(_)_| _|_____| |_|
17+
> ______________ ________________
18+
> ___ ____/_ / / /__ __/___ _/
19+
> __ /_ _ / / /__ / __ /
20+
> _ __/ / /_/ / _ / __/ /
21+
> /_/ \____/ /_/ /___/
2222
> ```
2323
24-
## 参与贡献
24+
## License
2525
26-
任何人都可以为 `FUTI-Detroit-Profile` 的发展做出贡献,可参考下面的指南:
27-
28-
### 向本项目提交代码
29-
30-
1. Fork 本项目并下载到你的本地
31-
2. 提交代码
32-
3. 从你的分支发起 PR 到 dev 分支
33-
34-
> 你的代码将会在审计后于下一个正式版本发布。
35-
36-
## 开源许可
37-
38-
Copyright (C) 2022 LF112 (futiwolf)
26+
Copyright (C) 2024 LF112 (@futiwolf)
3927
4028
This program is free software: you can redistribute it and/or modify
4129
it under the terms of the GNU Affero General Public License as

0 commit comments

Comments
 (0)