Skip to content

Commit 5a701dc

Browse files
author
wangb
committed
update vue project structure
1 parent 791672b commit 5a701dc

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

source/_drafts/deep-into-vue.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,25 @@ title: Deep Into vue
33
tags:
44
---
55

6+
## src Directory structure
7+
8+
This is come from the `Project Structure` section of the [Vue contributing document](https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md).
9+
10+
- `compiler`: contains code for the template-to-render-function compiler.
11+
- `core`: contains universal, platform-agnostic runtime code.
12+
- `observer`: contains code related to the reactivity system.
13+
- `vdom`: contains code related to vdom element creation and patching.
14+
- `instance`: contains Vue instance constructor and prototype methods.
15+
- `global-api`: as the name suggests.
16+
- `components`: universal abstract components. Currently `keep-alive` is the only one.
17+
- `server`: contains code related to server-side rendering.
18+
- `platforms`: contains platform-specific code.
19+
- platforms build entry file
20+
- `compiler`, `runtime`, `server`: corresponding to the three directories above.
21+
- `sfc`: contains single-file component (`*.vue` files) parsing logic.
22+
- `shared`: contains utilities shared across the entire codebase.
23+
- `types`: contains TypeScript type definitions.
24+
625
## VueRouter
726

827
### Link

0 commit comments

Comments
 (0)