@vuepress/core 2.0.0-beta.28 → 2.0.0-beta.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,7 +11,7 @@ base = '/', lang = 'en-US', title = '', description = '', head = [], locales = {
11
11
  // theme config
12
12
  theme = '@vuepress/default', themeConfig = {},
13
13
  // bundler config
14
- bundler = '@vuepress/webpack', bundlerConfig = {},
14
+ bundler = '@vuepress/vite', bundlerConfig = {},
15
15
  // directory config
16
16
  source, dest = utils_1.path.resolve(source, '.vuepress/dist'), temp = utils_1.path.resolve(source, '.vuepress/.temp'), cache = utils_1.path.resolve(source, '.vuepress/.cache'), public: publicDir = utils_1.path.resolve(source, '.vuepress/public'),
17
17
  // markdown config
@@ -12,7 +12,7 @@ const resolveThemeInfo = (app, themeName) => {
12
12
  const theme = (0, resolveTheme_1.resolveTheme)(app, themeName);
13
13
  const themeInfo = {
14
14
  layouts: (0, resolveThemeLayouts_1.resolveThemeLayouts)(theme.layouts),
15
- plugins: [theme, ...(0, resolvePluginsFromConfig_1.resolvePluginsFromConfig)(app, theme.plugins)],
15
+ plugins: [...(0, resolvePluginsFromConfig_1.resolvePluginsFromConfig)(app, theme.plugins), theme],
16
16
  };
17
17
  // return if current theme does not have a parent theme
18
18
  if (!theme.extends) {
@@ -1,14 +1,12 @@
1
1
  import type { MarkdownOptions } from '@vuepress/markdown';
2
- import type { SiteLocaleConfig, SiteLocaleData } from '@vuepress/shared';
2
+ import type { SiteData } from '@vuepress/shared';
3
3
  import type { BundlerConfig } from '../bundler';
4
4
  import type { PluginConfig } from '../plugin';
5
5
  import type { ThemeConfig } from '../theme';
6
6
  /**
7
7
  * Vuepress app options
8
8
  */
9
- export interface AppOptions<T extends ThemeConfig = ThemeConfig, U extends BundlerConfig = BundlerConfig> extends SiteLocaleData {
10
- base: string;
11
- locales: SiteLocaleConfig;
9
+ export interface AppOptions<T extends ThemeConfig = ThemeConfig, U extends BundlerConfig = BundlerConfig> extends SiteData {
12
10
  theme: string;
13
11
  themeConfig: Partial<T>;
14
12
  bundler: string;
@@ -18,16 +16,16 @@ export interface AppOptions<T extends ThemeConfig = ThemeConfig, U extends Bundl
18
16
  temp: string;
19
17
  cache: string;
20
18
  public: string;
21
- markdown: MarkdownOptions;
22
19
  debug: boolean;
20
+ markdown: MarkdownOptions;
21
+ pagePatterns: string[];
22
+ plugins: PluginConfig[];
23
23
  host: string;
24
24
  port: number;
25
25
  open: boolean;
26
- pagePatterns: string[];
27
26
  templateDev: string;
28
- templateSSR: string;
29
27
  shouldPreload: ((file: string, type: string) => boolean) | boolean;
30
28
  shouldPrefetch: ((file: string, type: string) => boolean) | boolean;
31
- plugins: PluginConfig[];
29
+ templateSSR: string;
32
30
  }
33
- export declare type AppConfig = Partial<AppOptions> & Pick<AppOptions, 'source'>;
31
+ export declare type AppConfig<T extends ThemeConfig = ThemeConfig, U extends BundlerConfig = BundlerConfig> = Partial<AppOptions<T, U>> & Pick<AppOptions<T, U>, 'source'>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuepress/core",
3
- "version": "2.0.0-beta.28",
3
+ "version": "2.0.0-beta.29",
4
4
  "description": "Core package of VuePress",
5
5
  "keywords": [
6
6
  "vuepress",
@@ -26,8 +26,8 @@
26
26
  "clean": "rimraf lib *.tsbuildinfo"
27
27
  },
28
28
  "dependencies": {
29
- "@vuepress/client": "2.0.0-beta.28",
30
- "@vuepress/markdown": "2.0.0-beta.28",
29
+ "@vuepress/client": "2.0.0-beta.29",
30
+ "@vuepress/markdown": "2.0.0-beta.29",
31
31
  "@vuepress/shared": "2.0.0-beta.28",
32
32
  "@vuepress/utils": "2.0.0-beta.28",
33
33
  "gray-matter": "^4.0.3",
@@ -36,5 +36,5 @@
36
36
  "publishConfig": {
37
37
  "access": "public"
38
38
  },
39
- "gitHead": "71c34816a79263c7dcba3ff0c103e264abdbf0d2"
39
+ "gitHead": "2c6eb4270f96b6351cd1f565798bed1f662a6bb2"
40
40
  }