Skip to content

Commit

Permalink
refactor: Move to vite (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
magic-akari authored Sep 17, 2023
1 parent 26783c9 commit eb3acd1
Show file tree
Hide file tree
Showing 117 changed files with 3,217 additions and 4,635 deletions.
16 changes: 0 additions & 16 deletions .devcontainer/Dockerfile

This file was deleted.

31 changes: 0 additions & 31 deletions .devcontainer/devcontainer.json

This file was deleted.

32 changes: 0 additions & 32 deletions .eslintrc

This file was deleted.

5 changes: 2 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ jobs:
cache: "pnpm"
- run: pnpm i --ignore-scripts --frozen-lockfile

- run: pnpm run listdiff
- run: pnpm run lint
- run: make build
- run: pnpm run "/check\:/"
- run: pnpm run build
5 changes: 2 additions & 3 deletions .github/workflows/release-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ jobs:
cache: "pnpm"
- run: pnpm i --ignore-scripts --frozen-lockfile

- run: pnpm run listdiff
- run: pnpm run lint
- run: make build
- run: pnpm run "/check\:/"
- run: pnpm run build

- name: Deploy Github Pages
uses: peaceiris/actions-gh-pages@v3
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/release-remote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ jobs:

- run: pnpm i --ignore-scripts --frozen-lockfile

- run: pnpm run listdiff
- run: pnpm run lint
- run: pnpm run "/check\:/"
- run: make deploy

- name: Publish NPM
Expand Down
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16.15.1
v18.17.0
3 changes: 2 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
registry=https://registry.npmjs.org/
registry=https://registry.npmjs.org/
legacy-peer-deps=true
22 changes: 12 additions & 10 deletions .postcssrc.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
module.exports = (ctx) => ({
map: ctx.options.map,
plugins: {
"postcss-import": {},
"postcss-color-function":{},
"postcss-custom-properties": {},
"autoprefixer": {},
"cssnano": ctx.options.map ? {} : false,
},
});
export default (ctx) => {
return {
map: ctx.options?.map,
plugins: {
"postcss-import": {},
"postcss-color-function": {},
"postcss-custom-properties": {},
"autoprefixer": {},
"cssnano": ctx.options?.map ? {} : false,
},
};
};
16 changes: 0 additions & 16 deletions .prettierrc.json

This file was deleted.

3 changes: 1 addition & 2 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"extends": [
"stylelint-config-standard",
"stylelint-config-rational-order",
"stylelint-prettier/recommended"
"stylelint-config-rational-order"
],
"rules": {
"color-hex-length": "long",
Expand Down
34 changes: 0 additions & 34 deletions .webpack.config.cjs

This file was deleted.

88 changes: 0 additions & 88 deletions Makefile

This file was deleted.

9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ Use the arrow key and space key to insert the timestamp.

Development branch links:

- https://magic-akari.github.io/lrc-maker/
- https://lrc-maker.vercel.app/
- https://magic-akari.github.io/lrc-maker/
- https://lrc-maker.vercel.app/

## Hotkeys

Expand Down Expand Up @@ -85,7 +85,6 @@ npm run build
npm start
# and run dev server
npm run dev-server

```

## Star this project :star:
Expand All @@ -108,8 +107,8 @@ If you like give us a star :star: Share this project to help more people.

开发分支版本链接:

- https://magic-akari.github.io/lrc-maker/
- https://lrc-maker.vercel.app/
- https://magic-akari.github.io/lrc-maker/
- https://lrc-maker.vercel.app/

## 热键

Expand Down
20 changes: 20 additions & 0 deletions dprint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"lineWidth": 120,
"indentWidth": 4,
"typescript": {},
"json": {},
"markdown": {},
"includes": [
"*.{ts,tsx,js,jsx,cjs,mjs,json,md}"
],
"excludes": [
"**/node_modules",
"**/*-lock.json",
"build"
],
"plugins": [
"https://plugins.dprint.dev/typescript-0.87.1.wasm",
"https://plugins.dprint.dev/json-0.17.4.wasm",
"https://plugins.dprint.dev/markdown-0.16.1.wasm"
]
}
38 changes: 38 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>LRC Maker</title>
<meta name="description" content="歌词滚动姬|可能是你所能见到的最好用的歌词制作工具" />
<meta name="keywords" content="lrc maker, lrc generate, 歌词制作, 歌词滚动" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="renderer" content="webkit" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
<meta name="google" content="notranslate" />
<link rel="apple-touch-icon" type="image/png" sizes="180x180" href="/favicons/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicons/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicons/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="mask-icon" href="/favicons/safari-pinned-tab.svg" color="#ff4081" />
<link rel="shortcut icon" href="/favicons/favicon.ico" />
<meta name="application-name" content="灯里的歌词滚动姬" />
<meta name="msapplication-TileColor" content="#ffffff" />
<meta name="theme-color" content="#484848" />
<meta name="msapplication-config" content="/favicons/browserconfig.xml" />
<meta name="apple-mobile-web-app-title" content="灯里的歌词滚动姬" />
<link rel="stylesheet" href="/src/index.css" />
</head>
<body>
<div class="app-container">
<div class="page-loading">
<img
class="akari-odango-loading start-loading"
src="/svg/akari-odango-loading.svg"
alt="loading"
crossorigin="anonymous"
/>
</div>
</div>
<script type="module" src="/src/index.ts"></script>
</body>
</html>
Loading

1 comment on commit eb3acd1

@vercel
Copy link

@vercel vercel bot commented on eb3acd1 Sep 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

lrc-maker – ./

lrc-maker.vercel.app
lrc-maker-git-master-magic-akari.vercel.app
lrc-maker-magic-akari.vercel.app

Please sign in to comment.