Skip to content

Commit

Permalink
fix: upgrade vitepress (#33)
Browse files Browse the repository at this point in the history
* chore: upgrade vitepress

* fix: disable lang

* chore: remove

* fix

* fix
  • Loading branch information
kazupon authored Oct 2, 2023
1 parent e0680ae commit 4acbfff
Show file tree
Hide file tree
Showing 49 changed files with 42,800 additions and 3,533 deletions.
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
dist
public
public
.vitepress/cache
17 changes: 9 additions & 8 deletions .eslintrc.js → .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,11 @@ module.exports = {
node: true
},
extends: [
'plugin:vue-libs/recommended',
'plugin:vue/vue3-recommended',
'plugin:@intlify/vue-i18n/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/eslint-recommended',
'prettier',
'prettier/vue',
'prettier/@typescript-eslint'
'prettier'
],
plugins: ['@typescript-eslint'],
parser: 'vue-eslint-parser',
Expand All @@ -33,13 +30,17 @@ module.exports = {
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'vue/one-component-per-file': 'off',
'vue/multi-word-component-names': 'off',
'vue/experimental-script-setup-vars': 'off',
'vue/no-deprecated-props-default-this': 'off',
'vue/require-v-for-key': 'off',
'vue/html-self-closing': ['error', {
html: {
void: 'always'
'vue/html-self-closing': [
'error',
{
html: {
void: 'always'
}
}
}]
]
}
}
2 changes: 2 additions & 0 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
npx --no-install lint-staged
36 changes: 17 additions & 19 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,26 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node: [12, 14]
os: [ubuntu-latest]
node: [18]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js ${{ matrix.node }}
uses: actions/setup-node@v2
uses: actions/checkout@v4

- name: Enable corepack
run: corepack enable

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
cache: 'pnpm'

- name: Install
run: yarn install
- name: Test
run: yarn build --all -t
run: pnpm install --no-frozen-lockfile

- name: Build
run: pnpm build --all -t

- name: Test
run: yarn test
run: pnpm test
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ dist-ssr
*.swp
*~
*.local
.vscode
.vscode
cache
1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

32 changes: 32 additions & 0 deletions .vitepress/cache/deps/_metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"hash": "4b22cf16",
"browserHash": "c7e1b36e",
"optimized": {
"vue": {
"src": "../../../node_modules/.pnpm/[email protected]/node_modules/vue/dist/vue.runtime.esm-bundler.js",
"file": "vue.js",
"fileHash": "ec2b4a0a",
"needsInterop": false
},
"vitepress > @vue/devtools-api": {
"src": "../../../node_modules/.pnpm/@[email protected]/node_modules/@vue/devtools-api/lib/esm/index.js",
"file": "vitepress___@vue_devtools-api.js",
"fileHash": "b77d2d67",
"needsInterop": false
},
"vue-i18n": {
"src": "../../../node_modules/.pnpm/[email protected][email protected]/node_modules/vue-i18n/dist/vue-i18n.mjs",
"file": "vue-i18n.js",
"fileHash": "bc3abf67",
"needsInterop": false
}
},
"chunks": {
"chunk-OX6HOUGK": {
"file": "chunk-OX6HOUGK.js"
},
"chunk-UDGX5HDE": {
"file": "chunk-UDGX5HDE.js"
}
}
}
Loading

0 comments on commit 4acbfff

Please sign in to comment.