chore: more meta
This commit is contained in:
parent
a89bbc018b
commit
fbb0dcdf89
@ -1,3 +1,16 @@
|
|||||||
# @vue/core
|
# @vue/core
|
||||||
|
|
||||||
> This package is published only for typing and building custom renderers. It is NOT meant to be used in applications.
|
> This package is published only for typing and building custom renderers. It is NOT meant to be used in applications.
|
||||||
|
|
||||||
|
``` ts
|
||||||
|
import { createRenderer, h } from '@vue/core'
|
||||||
|
|
||||||
|
const { render } = createRenderer({
|
||||||
|
queueJob,
|
||||||
|
nodeOps,
|
||||||
|
patchData,
|
||||||
|
teardownVNode
|
||||||
|
})
|
||||||
|
|
||||||
|
render(h('div'), container)
|
||||||
|
```
|
||||||
|
@ -26,22 +26,22 @@ import {
|
|||||||
shouldUpdateFunctionalComponent
|
shouldUpdateFunctionalComponent
|
||||||
} from './componentUtils'
|
} from './componentUtils'
|
||||||
|
|
||||||
interface RendererOptions {
|
interface NodeOps {
|
||||||
queueJob: (fn: () => void, postFlushJob?: () => void) => void
|
createElement: (tag: string, isSVG?: boolean) => any
|
||||||
nodeOps: {
|
createText: (text: string) => any
|
||||||
createElement: (tag: string, isSVG?: boolean) => any
|
setText: (node: any, text: string) => void
|
||||||
createText: (text: string) => any
|
appendChild: (parent: any, child: any) => void
|
||||||
setText: (node: any, text: string) => void
|
insertBefore: (parent: any, child: any, ref: any) => void
|
||||||
appendChild: (parent: any, child: any) => void
|
replaceChild: (parent: any, oldChild: any, newChild: any) => void
|
||||||
insertBefore: (parent: any, child: any, ref: any) => void
|
removeChild: (parent: any, child: any) => void
|
||||||
replaceChild: (parent: any, oldChild: any, newChild: any) => void
|
clearContent: (node: any) => void
|
||||||
removeChild: (parent: any, child: any) => void
|
parentNode: (node: any) => any
|
||||||
clearContent: (node: any) => void
|
nextSibling: (node: any) => any
|
||||||
parentNode: (node: any) => any
|
querySelector: (selector: string) => any
|
||||||
nextSibling: (node: any) => any
|
}
|
||||||
querySelector: (selector: string) => any
|
|
||||||
}
|
interface PatchDataFunction {
|
||||||
patchData: (
|
(
|
||||||
el: any,
|
el: any,
|
||||||
key: string,
|
key: string,
|
||||||
prevValue: any,
|
prevValue: any,
|
||||||
@ -52,7 +52,13 @@ interface RendererOptions {
|
|||||||
// passed for DOM operations that removes child content
|
// passed for DOM operations that removes child content
|
||||||
// e.g. innerHTML & textContent
|
// e.g. innerHTML & textContent
|
||||||
unmountChildren: (children: VNode[], childFlags: ChildrenFlags) => void
|
unmountChildren: (children: VNode[], childFlags: ChildrenFlags) => void
|
||||||
) => void
|
): void
|
||||||
|
}
|
||||||
|
|
||||||
|
interface RendererOptions {
|
||||||
|
queueJob: (fn: () => void, postFlushJob?: () => void) => void
|
||||||
|
nodeOps: NodeOps
|
||||||
|
patchData: PatchDataFunction
|
||||||
teardownVNode?: (vnode: VNode) => void
|
teardownVNode?: (vnode: VNode) => void
|
||||||
}
|
}
|
||||||
|
|
||||||
|
3
packages/language-service/.npmignore
Normal file
3
packages/language-service/.npmignore
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
__tests__/
|
||||||
|
__mocks__/
|
||||||
|
dist/packages
|
1
packages/language-service/README.md
Normal file
1
packages/language-service/README.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
# @vue/language-service
|
7
packages/language-service/index.js
Normal file
7
packages/language-service/index.js
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
'use strict'
|
||||||
|
|
||||||
|
if (process.env.NODE_ENV === 'production') {
|
||||||
|
module.exports = require('./dist/language-service.cjs.prod.js')
|
||||||
|
} else {
|
||||||
|
module.exports = require('./dist/language-service.cjs.js')
|
||||||
|
}
|
23
packages/language-service/package.json
Normal file
23
packages/language-service/package.json
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"name": "@vue/language-service",
|
||||||
|
"version": "3.0.0-alpha.1",
|
||||||
|
"description": "@vue/language-service",
|
||||||
|
"main": "index.js",
|
||||||
|
"typings": "dist/index.d.ts",
|
||||||
|
"buildOptions": {
|
||||||
|
"formats": ["cjs"]
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://github.com/vuejs/vue.git"
|
||||||
|
},
|
||||||
|
"keywords": [
|
||||||
|
"vue"
|
||||||
|
],
|
||||||
|
"author": "Evan You",
|
||||||
|
"license": "MIT",
|
||||||
|
"bugs": {
|
||||||
|
"url": "https://github.com/vuejs/vue/issues"
|
||||||
|
},
|
||||||
|
"homepage": "https://github.com/vuejs/vue/tree/dev/packages/language-service#readme"
|
||||||
|
}
|
0
packages/language-service/src/index.ts
Normal file
0
packages/language-service/src/index.ts
Normal file
@ -1,3 +1,5 @@
|
|||||||
# @vue/scheduler
|
# @vue/scheduler
|
||||||
|
|
||||||
> This package is published only for typing and building custom renderers. It is NOT meant to be used in applications.
|
> This package is published only for typing and building custom renderers. It is NOT meant to be used in applications.
|
||||||
|
|
||||||
|
The default scheduler that uses Promise / Microtask to defer and batch updates.
|
||||||
|
Loading…
Reference in New Issue
Block a user