@vuepress/core 1.9.4 → 1.9.5

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.
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @type {import('@vuepress/types').Plugin<{}, import('@vuepress/types').DefaultThemeConfig>}
3
+ */
1
4
  module.exports = () => ({
2
5
  name: '@vuepress/internal-data-block',
3
6
 
@@ -1,10 +1,13 @@
1
1
  const { path } = require('@vuepress/shared-utils')
2
2
 
3
- module.exports = (options, context) => ({
3
+ /**
4
+ * @type {import('@vuepress/types').Plugin<{}, import('@vuepress/types').DefaultThemeConfig>}
5
+ */
6
+ module.exports = (options, ctx) => ({
4
7
  name: '@vuepress/internal-enhance-app',
5
8
 
6
9
  enhanceAppFiles () {
7
- const { sourceDir, themeAPI } = context
10
+ const { sourceDir, themeAPI } = ctx
8
11
  const enhanceAppPath = path.resolve(sourceDir, '.vuepress/enhanceApp.js')
9
12
  const files = [enhanceAppPath]
10
13
  if (themeAPI.existsParentTheme) {
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @type {import('@vuepress/types').Plugin<{}, import('@vuepress/types').DefaultThemeConfig>}
3
+ */
1
4
  module.exports = () => ({
2
5
  name: '@vuepress/internal-frontmatter-block',
3
6
 
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @type {import('@vuepress/types').Plugin<{}, import('@vuepress/types').DefaultThemeConfig>}
3
+ */
1
4
  module.exports = (options, ctx) => {
2
5
  return {
3
6
  name: '@vuepress/internal-layout-components',
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @type {import('@vuepress/types').Plugin<{}, import('@vuepress/types').DefaultThemeConfig>}
3
+ */
1
4
  module.exports = (options, ctx) => {
2
5
  const { pages } = ctx
3
6
  // const componentNames = Object.keys(layoutComponentMap)
@@ -3,6 +3,9 @@ const {
3
3
  datatypes: { isPlainObject }
4
4
  } = require('@vuepress/shared-utils')
5
5
 
6
+ /**
7
+ * @type {import('@vuepress/types').Plugin<{}, import('@vuepress/types').DefaultThemeConfig>}
8
+ */
6
9
  module.exports = (options, ctx) => ({
7
10
  name: '@vuepress/internal-palette',
8
11
 
@@ -1,12 +1,15 @@
1
1
  const { codegen: { pathsToModuleCode }} = require('@vuepress/shared-utils')
2
2
 
3
- module.exports = (options, context, api) => ({
3
+ /**
4
+ * @type {import('@vuepress/types').Plugin<{}, import('@vuepress/types').DefaultThemeConfig>}
5
+ */
6
+ module.exports = (options, ctx, api) => ({
4
7
  name: '@vuepress/internal-root-mixins',
5
8
 
6
9
  // @internal/root-mixins
7
10
  async clientDynamicModules () {
8
11
  const builtInRootMixins = [
9
- context.getLibFilePath('client/root-mixins/updateMeta.js')
12
+ ctx.getLibFilePath('client/root-mixins/updateMeta.js')
10
13
  ]
11
14
 
12
15
  const rootMixins = [
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @type {import('@vuepress/types').Plugin<{}, import('@vuepress/types').DefaultThemeConfig>}
3
+ */
1
4
  module.exports = (options, ctx) => ({
2
5
  name: '@vuepress/internal-routes',
3
6
 
@@ -1,9 +1,12 @@
1
- module.exports = (options, context) => ({
1
+ /**
2
+ * @type {import('@vuepress/types').Plugin<{}, import('@vuepress/types').DefaultThemeConfig>}
3
+ */
4
+ module.exports = (options, ctx) => ({
2
5
  name: '@vuepress/internal-site-data',
3
6
 
4
7
  // @internal/siteData
5
8
  async clientDynamicModules () {
6
- const code = `export const siteData = ${JSON.stringify(context.getSiteData(), null, 2)}`
9
+ const code = `export const siteData = ${JSON.stringify(ctx.getSiteData(), null, 2)}`
7
10
  return { name: 'siteData.js', content: code, dirname: 'internal' }
8
11
  }
9
12
  })
@@ -1,8 +1,7 @@
1
1
  const { fs, path, logger, chalk } = require('@vuepress/shared-utils')
2
2
 
3
3
  /**
4
- * @param options
5
- * @param {AppContext} ctx
4
+ * @type {import('@vuepress/types').Plugin<{}, import('@vuepress/types').DefaultThemeConfig>}
6
5
  */
7
6
  module.exports = (options, ctx) => ({
8
7
  name: '@vuepress/internal-style',
@@ -2,6 +2,9 @@ const { fs, path } = require('@vuepress/shared-utils')
2
2
 
3
3
  const DIR = 'transform'
4
4
 
5
+ /**
6
+ * @type {import('@vuepress/types').Plugin<{}, import('@vuepress/types').DefaultThemeConfig>}
7
+ */
5
8
  module.exports = (options, ctx) => ({
6
9
  name: '@vuepress/internal-transform-modules',
7
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuepress/core",
3
- "version": "1.9.4",
3
+ "version": "1.9.5",
4
4
  "description": "Minimalistic doc generator with Vue component based layout system",
5
5
  "keywords": [
6
6
  "documentation",
@@ -25,11 +25,12 @@
25
25
  "dependencies": {
26
26
  "@babel/core": "^7.8.4",
27
27
  "@vue/babel-preset-app": "^4.1.2",
28
- "@vuepress/markdown": "1.9.4",
29
- "@vuepress/markdown-loader": "1.9.4",
30
- "@vuepress/plugin-last-updated": "1.9.4",
31
- "@vuepress/plugin-register-components": "1.9.4",
32
- "@vuepress/shared-utils": "1.9.4",
28
+ "@vuepress/markdown": "1.9.5",
29
+ "@vuepress/markdown-loader": "1.9.5",
30
+ "@vuepress/plugin-last-updated": "1.9.5",
31
+ "@vuepress/plugin-register-components": "1.9.5",
32
+ "@vuepress/shared-utils": "1.9.5",
33
+ "@vuepress/types": "1.9.5",
33
34
  "autoprefixer": "^9.5.1",
34
35
  "babel-loader": "^8.0.4",
35
36
  "bundle-require": "2.1.8",
@@ -76,5 +77,5 @@
76
77
  "email": "chl814@foxmail.com"
77
78
  }
78
79
  ],
79
- "gitHead": "e4a28db49115e083c34509b3da03410a012e127a"
80
+ "gitHead": "ef6f87a5cc23903b74a86cffda325abafa7fe5e8"
80
81
  }