Skip to content

Commit

Permalink
feat: refine node api (#1395)
Browse files Browse the repository at this point in the history
- fix($core): markdown slot doesn‘t work. (regression of c85f62d)
- docs: fresh Node.JS API.
- test: official plugins.
  • Loading branch information
ulivz authored Mar 4, 2019
1 parent 7148df2 commit e5d8ed4
Show file tree
Hide file tree
Showing 180 changed files with 3,886 additions and 3,742 deletions.
3 changes: 3 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ module.exports = {
'test': {
'presets': [
['@babel/preset-env', { 'targets': { 'node': 'current' }}]
],
'plugins': [
'@babel/plugin-syntax-dynamic-import'
]
}
}
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"remote-version": "node scripts/remote-version.js",
"dev": "yarn tsc && yarn workspace docs dev",
"build": "yarn tsc && yarn workspace docs build",
"view-info": "yarn tsc && yarn workspace docs view-info",
"show-help": "yarn workspace docs show-help",
"dev:blog": "yarn tsc && yarn workspace blog dev",
"build:blog": "yarn tsc && yarn workspace blog build",
Expand Down
197 changes: 0 additions & 197 deletions packages/@vuepress/core/lib/build.js

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* global VUEPRESS_TEMP_PATH */

import Vue from 'vue'
import GLobalVue from 'vue'

export default function dataMixin (I18n, siteData) {
export default function dataMixin (I18n, siteData, Vue = GLobalVue) {
prepare(siteData)
Vue.$vuepress.$set('siteData', siteData)

Expand Down
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit e5d8ed4

Please sign in to comment.