GithubHelp home page GithubHelp logo

hn-failte / vue_source_code_note Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.72 MB

reading vue source code and note functrues in files.

License: MIT License

JavaScript 97.19% CSS 0.48% HTML 0.75% TypeScript 0.88% Shell 0.14% Vue 0.56%

vue_source_code_note's Introduction

Vue源码解读笔记

Vue使用了flow检测,该语法类似Typescript。而在Vue3.0中,Typescript替换了flow做类型检测。 有没有想过Vue是怎么写出来的,各个模块的原理是什么?那么我带大家看看源码。

首先,我们拉取vue的源码,git clone https://github.com/vuejs/vue.git

然后为了方便查看,我们使用vscode或webstorm进行查看

目录结构分析

根据展示的目录分析,对应了以下不同的功能:

1、benchmarks

项目的性能测试

针对vue进行性能测试

2、dist

项目的输出

可以在这里找到vue的各种版本。包括commonJS规范、esm规范、umd规范(不带后缀的)等

3、examples

项目的使用样例

可以学习如何使用Vue的样例

4、flow

静态类型检查

5、packages

vue项目包

6、scripts

项目的命令,可以对该项目进行操作

7、src

项目源文件

8、test

单元测试

9、types

vue的ts声明

vue_source_code_note's People

Contributors

hn-failte avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.