-
Notifications
You must be signed in to change notification settings - Fork 923
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(bundler-vite): extract public logic to
@vuepress/vite-kit
- Loading branch information
1 parent
e3ed143
commit cca3081
Showing
24 changed files
with
277 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
/// <reference types="vite/client" /> | ||
/// <reference types="@vuepress/vite-kit/client" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
packages/bundler-vite/src/build/build.ts → packages/bundler-vite/src/build.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
export * from './vuepressMainPlugin.js' | ||
export * from './vuepressUserConfigPlugin.js' | ||
export * from './vuepressVuePlugin.js' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# @vuepress/vite-kit | ||
|
||
[![npm](https://badgen.net/npm/v/@vuepress/bundler-vite/next)](https://www.npmjs.com/package/@vuepress/vite-kit) | ||
[![license](https://badgen.net/github/license/vuepress/core)](https://github.com/vuepress/core/blob/main/LICENSE) | ||
|
||
## Documentation | ||
|
||
https://v2.vuepress.vuejs.org | ||
|
||
## License | ||
|
||
[MIT](https://github.com/vuepress/core/blob/main/LICENSE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/// <reference types="@vuepress/vite-kit/client" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{ | ||
"name": "@vuepress/vite-kit", | ||
"version": "2.0.0-rc.14", | ||
"description": "Utils for vite-compatible VuePress bundlers", | ||
"keywords": [ | ||
"vuepress", | ||
"vite" | ||
], | ||
"homepage": "https://github.com/vuepress", | ||
"bugs": { | ||
"url": "https://github.com/vuepress/core/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/vuepress/core.git" | ||
}, | ||
"license": "MIT", | ||
"author": "meteorlxy", | ||
"type": "module", | ||
"exports": { | ||
".": "./dist/index.js", | ||
"./client": "./client.d.ts", | ||
"./package.json": "./package.json" | ||
}, | ||
"main": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"files": [ | ||
"dist", | ||
"client.d.ts" | ||
], | ||
"scripts": { | ||
"build": "tsup", | ||
"clean": "rimraf dist" | ||
}, | ||
"dependencies": { | ||
"@vitejs/plugin-vue": "^5.0.5", | ||
"@vuepress/client": "workspace:*", | ||
"@vuepress/core": "workspace:*", | ||
"@vuepress/shared": "workspace:*", | ||
"@vuepress/utils": "workspace:*", | ||
"autoprefixer": "^10.4.19", | ||
"connect-history-api-fallback": "^2.0.0", | ||
"postcss": "^8.4.38", | ||
"postcss-load-config": "^6.0.1", | ||
"rollup": "^4.18.0", | ||
"vite": "~5.3.1", | ||
"vue": "^3.4.29", | ||
"vue-router": "^4.3.3" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"tsup": { | ||
"clean": true, | ||
"dts": "./src/index.ts", | ||
"entry": [ | ||
"./src/index.ts" | ||
], | ||
"format": [ | ||
"esm" | ||
], | ||
"outDir": "./dist", | ||
"sourcemap": false, | ||
"target": "es2022", | ||
"tsconfig": "../../tsconfig.dts.json" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export * from './renderPage.js' | ||
export * from './renderPagePrefetchLinks.js' | ||
export * from './renderPagePreloadLinks.js' | ||
export * from './renderPageScripts.js' | ||
export * from './renderPageStyles.js' | ||
export * from './resolvePageChunkFiles.js' |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export type { Options as VuePluginOptions } from '@vitejs/plugin-vue' | ||
export * from './build/index.js' | ||
export * from './plugins/index.js' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from './vuepressMainPlugin.js' | ||
export * from './vuepressVuePlugin.js' |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export type { Options as VuePluginOptions } from '@vitejs/plugin-vue' |
Oops, something went wrong.