Skip to content

Commit

Permalink
feat: refine
Browse files Browse the repository at this point in the history
  • Loading branch information
ntnyq committed Oct 15, 2022
1 parent 4e2789a commit a882585
Show file tree
Hide file tree
Showing 18 changed files with 1,022 additions and 1,044 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Release

on:
push:
tags:
- 'v*'

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: actions/setup-node@v3
with:
node-version: 18.x

- run: npx changelogithub
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
strict-peer-dependencies=false
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"editor.formatOnSave": false,
"[typescript]": {
"editor.formatOnSave": false
},
Expand Down
21 changes: 0 additions & 21 deletions CHANGELOG.md

This file was deleted.

21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2021-PRESENT ntnyq <ntnyq13@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
4 changes: 3 additions & 1 deletion cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@
"antfu",
"attributify",
"bilibili",
"bumpp",
"changelogithub",
"destructurable",
"iconify",
"nana",
"pnpm",
"prismjs",
"shiki",
"unocss",
"unplugin",
"vite",
Expand Down
13 changes: 8 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,24 @@
<meta http-equiv="X-UA-Compatible" content="chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="keywords" content="ntnyq" />
<meta name="description" content="ntnyq's website" />
<meta name="theme-color" content="#ffffff" />
<meta name="description" content="ntnyq's portfolio" />
<title>ntnyq</title>
<link rel="apple-touch-icon" href="/static/icons/icon-192x192.png" />
<link rel="shortcut icon" href="/static/icons/favicon.png" type="image/png" />
<title>ntnyq</title>
<!-- DNS prefetch -->
<link rel="dns-prefetch" href="//ntnyq.com" />
<link rel="dns-prefetch" href="//www.googletagmanager.com" />
</head>

<body class="font-sans text-gray-700 dark:text-gray-200">
<div id="app" class="min-h-screen flex flex-col"></div>
<script>
(function() {
(function () {
const prefersDark = window.matchMedia && window.matchMedia(`(prefers-color-scheme: dark)`).matches
const setting = localStorage.getItem(`color-schema`) || `auto`
if (setting === `dark` || (prefersDark && setting !== `light`))
if (setting === `dark` || (prefersDark && setting !== `light`)) {
document.documentElement.classList.toggle(`dark`, true)
}
})()
</script>
<script type="module" src="/src/main.ts"></script>
Expand Down
55 changes: 27 additions & 28 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "ntnyq.com",
"version": "0.0.2",
"private": true,
"packageManager": "pnpm@7.1.5",
"packageManager": "pnpm@7.13.4",
"license": "MIT",
"author": {
"name": "ntnyq",
Expand All @@ -12,51 +12,50 @@
"build": "vite-ssg build",
"dev": "vite",
"lint": "run-p lint:*",
"lint:script": "eslint ."
"lint:script": "eslint .",
"release": "bumpp"
},
"dependencies": {
"@gtm-support/vue-gtm": "^1.6.0",
"@vueuse/core": "^9.0.2",
"@vueuse/head": "^0.7.8",
"@vueuse/core": "^9.3.0",
"@vueuse/head": "^0.7.13",
"nprogress": "^0.2.0",
"prism-theme-vars": "^0.2.4",
"vue": "^3.2.37",
"vue-router": "^4.1.3"
"vue": "^3.2.41",
"vue-router": "^4.1.5"
},
"devDependencies": {
"@iconify/json": "^2.1.85",
"@ntnyq/eslint-config": "^1.0.3",
"@octokit/rest": "^19.0.3",
"@iconify/json": "^2.1.122",
"@ntnyq/eslint-config": "^1.0.5",
"@octokit/rest": "^19.0.5",
"@types/fs-extra": "^9.0.13",
"@types/markdown-it": "^12.2.3",
"@types/node": "^18.6.3",
"@types/node": "18.8.0",
"@types/nprogress": "^0.2.0",
"@unocss/reset": "^0.45.1",
"@vitejs/plugin-vue": "^3.0.1",
"@vue/server-renderer": "^3.2.37",
"dayjs": "^1.11.4",
"eslint": "^8.20.0",
"@unocss/reset": "^0.45.29",
"@vitejs/plugin-vue": "^3.1.2",
"@vue/server-renderer": "^3.2.41",
"dayjs": "^1.11.5",
"eslint": "^8.25.0",
"fs-extra": "^10.1.0",
"gray-matter": "^4.0.3",
"happy-dom": "^6.0.4",
"husky": "^8.0.1",
"lint-staged": "^13.0.3",
"markdown-it": "^13.0.1",
"markdown-it-prism": "^2.2.4",
"markdown-it-shiki": "^0.5.1",
"npm-run-all": "^4.1.5",
"pnpm": "^7.8.0",
"prismjs": "^1.28.0",
"typescript": "^4.7.4",
"unocss": "^0.45.1",
"unplugin-auto-import": "^0.10.3",
"unplugin-icons": "^0.14.8",
"unplugin-vue-components": "^0.21.2",
"vite": "^3.0.4",
"pnpm": "^7.13.4",
"prismjs": "^1.29.0",
"typescript": "^4.8.4",
"unocss": "^0.45.29",
"unplugin-auto-import": "^0.11.2",
"unplugin-icons": "^0.14.11",
"unplugin-vue-components": "^0.22.8",
"vite": "^3.1.8",
"vite-plugin-pages": "^0.25.0",
"vite-plugin-pwa": "^0.12.3",
"vite-plugin-pwa": "^0.12.8",
"vite-plugin-vue-markdown": "^0.21.1",
"vite-ssg": "^0.20.2",
"vite-ssg-sitemap": "^0.3.1",
"vite-ssg-sitemap": "^0.3.2",
"workbox-window": "^6.5.4"
},
"lint-staged": {
Expand Down

0 comments on commit a882585

Please sign in to comment.