Skip to content

Commit

Permalink
chore: maintenance and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Jan 16, 2025
1 parent 42f7ee2 commit 36bde80
Show file tree
Hide file tree
Showing 49 changed files with 631 additions and 673 deletions.
2 changes: 1 addition & 1 deletion __tests__/e2e/data-loading/basic.data.mts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import fs from 'fs'
import fs from 'node:fs'
import { defineLoader } from 'vitepress'

type Data = Record<string, boolean>[]
Expand Down
4 changes: 2 additions & 2 deletions __tests__/e2e/vitestGlobalSetup.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import getPort from 'get-port'
import type { Server } from 'node:net'
import { chromium, type BrowserServer } from 'playwright-chromium'
import { build, createServer, serve } from 'vitepress'
import type { ViteDevServer } from 'vite'
import type { Server } from 'net'
import { build, createServer, serve } from 'vitepress'

let browserServer: BrowserServer
let server: ViteDevServer | Server
Expand Down
4 changes: 2 additions & 2 deletions __tests__/init/init.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import fs from 'fs-extra'
import getPort from 'get-port'
import { nanoid } from 'nanoid'
import path from 'path'
import path from 'node:path'
import { fileURLToPath, URL } from 'node:url'
import { chromium } from 'playwright-chromium'
import { fileURLToPath, URL } from 'url'
import { createServer, scaffold, ScaffoldThemeType } from 'vitepress'

const tempDir = fileURLToPath(new URL('./.temp', import.meta.url))
Expand Down
6 changes: 3 additions & 3 deletions __tests__/unit/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { dirname, resolve } from 'path'
import { fileURLToPath } from 'url'
import { defineConfig } from 'vitest/config'
import vue from '@vitejs/plugin-vue'
import { dirname, resolve } from 'node:path'
import { fileURLToPath } from 'node:url'
import { defineConfig } from 'vitest/config'

const dir = dirname(fileURLToPath(import.meta.url))

Expand Down
10 changes: 5 additions & 5 deletions docs/.vitepress/config/shared.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { defineConfig } from 'vitepress'
import {
groupIconMdPlugin,
groupIconVitePlugin,
localIconLoader
} from 'vitepress-plugin-group-icons'
import { search as esSearch } from './es'
import { search as faSearch } from './fa'
import { search as koSearch } from './ko'
import { search as ptSearch } from './pt'
import { search as ruSearch } from './ru'
import { search as zhSearch } from './zh'
import {
groupIconMdPlugin,
groupIconVitePlugin,
localIconLoader
} from 'vitepress-plugin-group-icons'

export const shared = defineConfig({
title: 'VitePress',
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"open-cli": "^8.0.0",
"postcss-rtlcss": "^5.6.0",
"vitepress": "workspace:*",
"vitepress-plugin-group-icons": "^1.3.2"
"vitepress-plugin-group-icons": "^1.3.4"
}
}
34 changes: 0 additions & 34 deletions lib/vue-demi.mjs

This file was deleted.

39 changes: 18 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@
"./theme-without-fonts": {
"types": "./theme-without-fonts.d.ts",
"default": "./dist/client/theme-default/without-fonts.js"
},
"./vue-demi": {
"default": "./lib/vue-demi.mjs"
}
},
"main": "dist/node/index.js",
Expand Down Expand Up @@ -100,25 +97,25 @@
"dependencies": {
"@docsearch/css": "^3.8.2",
"@docsearch/js": "^3.8.2",
"@iconify-json/simple-icons": "^1.2.18",
"@shikijs/core": "^1.26.1",
"@shikijs/transformers": "^1.26.1",
"@shikijs/types": "^1.26.1",
"@iconify-json/simple-icons": "^1.2.20",
"@shikijs/core": "^1.27.2",
"@shikijs/transformers": "^1.27.2",
"@shikijs/types": "^1.27.2",
"@types/markdown-it": "^14.1.2",
"@vitejs/plugin-vue": "^5.2.1",
"@vue/devtools-api": "^7.6.8",
"@vue/devtools-api": "^7.7.0",
"@vue/shared": "^3.5.13",
"@vueuse/core": "^12.3.0",
"@vueuse/integrations": "^12.3.0",
"focus-trap": "^7.6.2",
"@vueuse/core": "^12.4.0",
"@vueuse/integrations": "^12.4.0",
"focus-trap": "^7.6.4",
"mark.js": "8.11.1",
"minisearch": "^7.1.1",
"shiki": "^1.26.1",
"shiki": "^1.27.2",
"vite": "^5.4.11",
"vue": "^3.5.13"
},
"devDependencies": {
"@clack/prompts": "^0.9.0",
"@clack/prompts": "^0.9.1",
"@iconify/utils": "^2.2.1",
"@mdit-vue/plugin-component": "^2.1.3",
"@mdit-vue/plugin-frontmatter": "^2.1.3",
Expand All @@ -143,7 +140,7 @@
"@types/markdown-it-emoji": "^3.0.1",
"@types/micromatch": "^4.0.9",
"@types/minimist": "^1.2.5",
"@types/node": "^22.10.5",
"@types/node": "^22.10.7",
"@types/postcss-prefix-selector": "^1.16.3",
"@types/prompts": "^2.4.9",
"chokidar": "^4.0.3",
Expand All @@ -152,10 +149,10 @@
"debug": "^4.4.0",
"esbuild": "^0.24.2",
"execa": "^9.5.2",
"fs-extra": "^11.2.0",
"fs-extra": "^11.3.0",
"get-port": "^7.1.0",
"gray-matter": "^4.0.3",
"lint-staged": "^15.3.0",
"lint-staged": "^15.4.0",
"lodash.template": "^4.5.0",
"lru-cache": "^11.0.2",
"markdown-it": "^14.1.0",
Expand All @@ -179,7 +176,7 @@
"prompts": "^2.4.2",
"punycode": "^2.3.1",
"rimraf": "^6.0.1",
"rollup": "^4.30.0",
"rollup": "^4.30.1",
"rollup-plugin-dts": "^6.1.1",
"rollup-plugin-esbuild": "^6.1.1",
"semver": "^7.6.3",
Expand All @@ -188,10 +185,10 @@
"sitemap": "^8.0.0",
"synckit": "^0.9.2",
"tinyglobby": "^0.2.10",
"typescript": "^5.7.2",
"vitest": "^2.1.8",
"typescript": "^5.7.3",
"vitest": "^3.0.0",
"vue-tsc": "^2.2.0",
"wait-on": "^8.0.1"
"wait-on": "^8.0.2"
},
"peerDependencies": {
"markdown-it-mathjax3": "^4",
Expand All @@ -205,7 +202,7 @@
"optional": true
}
},
"packageManager": "[email protected].3",
"packageManager": "[email protected].4",
"pnpm": {
"peerDependencyRules": {
"ignoreMissing": [
Expand Down
Loading

0 comments on commit 36bde80

Please sign in to comment.