Skip to content

Commit 7ac6aa8

Browse files
committedDec 23, 2021
feat(types): init @vuepress/types
1 parent c8eff35 commit 7ac6aa8

16 files changed

+289
-259
lines changed
 

‎.eslintignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
!.vuepress
55
packages/@vuepress/shared-utils/lib
66
packages/@vuepress/shared-utils/types
7-
packages/vuepress/types
7+
packages/@vuepress/types

‎packages/@vuepress/types/lib/index.ts

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export * from './config'
2+
export * from './locale'
3+
export * from './markdown'
4+
export * from './style'
5+
export * from './context'
6+
export * from './default-theme'

‎packages/vuepress/types/lang.ts renamed to ‎packages/@vuepress/types/lib/lang.ts

+239-239
Large diffs are not rendered by default.

‎packages/vuepress/types/official-plugins.ts renamed to ‎packages/@vuepress/types/lib/official-plugins.ts

+9-9
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,13 @@ export interface PluginConfig4RegisterComponents {
135135
}
136136

137137
export interface PluginConfigMap {
138-
"@vuepress/plugin-active-header-links": PluginConfig4ActiveHeadLinks;
139-
"@vuepress/plugin-back-to-top": PluginConfig4BackToTop;
140-
"@vuepress/plugin-blog": PluginConfig4Blog;
141-
"@vuepress/plugin-google-analytics": PluginConfig4GoogleAnalytics;
142-
"@vuepress/plugin-last-updated": PluginConfig4LastUpdated;
143-
"@vuepress/plugin-medium-zoom": PluginConfig4MediumZoom;
144-
"@vuepress/plugin-nprogress": PluginConfig4Nprogress;
145-
"@vuepress/plugin-pwa": PluginConfig4PWA;
146-
"@vuepress/plugin-register-components": PluginConfig4RegisterComponents;
138+
'@vuepress/plugin-active-header-links': PluginConfig4ActiveHeadLinks;
139+
'@vuepress/plugin-back-to-top': PluginConfig4BackToTop;
140+
'@vuepress/plugin-blog': PluginConfig4Blog;
141+
'@vuepress/plugin-google-analytics': PluginConfig4GoogleAnalytics;
142+
'@vuepress/plugin-last-updated': PluginConfig4LastUpdated;
143+
'@vuepress/plugin-medium-zoom': PluginConfig4MediumZoom;
144+
'@vuepress/plugin-nprogress': PluginConfig4Nprogress;
145+
'@vuepress/plugin-pwa': PluginConfig4PWA;
146+
'@vuepress/plugin-register-components': PluginConfig4RegisterComponents;
147147
}

‎packages/@vuepress/types/package.json

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"name": "@vuepress/types",
3+
"version": "1.9.1",
4+
"description": "Types for VuePress",
5+
"keywords": [
6+
"documentation",
7+
"generator",
8+
"types",
9+
"vue",
10+
"vuepress"
11+
],
12+
"homepage": "https://github.com/vuejs/vuepress/blob/master/packages/@vuepress/types#readme",
13+
"bugs": {
14+
"url": "https://github.com/vuejs/vuepress/issues"
15+
},
16+
"repository": {
17+
"type": "git",
18+
"url": "git+https://github.com/vuejs/vuepress.git",
19+
"directory": "packages/@vuepress/types"
20+
},
21+
"license": "MIT",
22+
"author": "ULIVZ",
23+
"types": "lib/index.ts",
24+
"dependencies": {
25+
"webpack-chain": "^6.0.0"
26+
},
27+
"publishConfig": {
28+
"access": "public"
29+
}
30+
}

‎packages/vuepress/config.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { Context, Config, ThemeConfig, DefaultThemeConfig } from './types'
1+
import { Context, Config, ThemeConfig, DefaultThemeConfig } from '@vuepress/types'
22

3-
export * from './types'
3+
export * from '@vuepress/types'
44

55
export type UserConfig<T extends ThemeConfig> =
66
| Config<T>

‎packages/vuepress/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@
3131
"dependencies": {
3232
"@vuepress/core": "1.9.1",
3333
"@vuepress/theme-default": "1.9.1",
34+
"@vuepress/types": "1.9.1",
3435
"cac": "^6.5.6",
3536
"envinfo": "^7.2.0",
3637
"opencollective-postinstall": "^2.0.2",
37-
"update-notifier": "^4.0.0",
38-
"webpack-chain": "^6.0.0"
38+
"update-notifier": "^4.0.0"
3939
},
4040
"engines": {
4141
"node": ">=8.6"

‎packages/vuepress/types/index.ts

-6
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.