mirror of https://github.com/vuejs/vue.git
meta info
This commit is contained in:
parent
e78fb82212
commit
d280f50cec
74
README.md
74
README.md
|
|
@ -1,19 +1,10 @@
|
||||||
# VueJS [](https://travis-ci.org/yyx990803/vue)
|
# VueJS [](https://travis-ci.org/yyx990803/vue)
|
||||||
|
|
||||||
> Simple, fast, modular & lightweight MVVM library for building interactive user interfaces.
|
> Lightweight, Simple, Fast & Composable MVVM library for building interactive user interfaces.
|
||||||
|
|
||||||
## Features
|
## Introduction
|
||||||
|
|
||||||
- 10kb gzipped, no dependency.
|
VueJS is a library for building interactive interfaces. It provides the **ViewModel** layer of the MVVM pattern, which connects the **View** (the actual HTML that the user sees) and the **Model** (JSON-compliant plain JavaScript objects) via two way data-bindings. [Read more.](https://github.com/yyx990803/vue/wiki/What-is-VueJS)
|
||||||
- DOM based templates with two-way data binding.
|
|
||||||
- Precise and efficient DOM manipulation with granularity down to a TextNode.
|
|
||||||
- POJSO (Plain Old JavaScript Objects) Models that can be shared across ViewModels with arbitrary levels of nesting.
|
|
||||||
- Auto dependency tracking for expressions and computed properties.
|
|
||||||
- Auto event delegation on repeated items.
|
|
||||||
- Flexible API that encourages composition of components.
|
|
||||||
- Extendable with custom directives and filters.
|
|
||||||
- Supports partials, transitions and nested ViewModels.
|
|
||||||
- Plays well with module systems. Primarily [Component](https://github.com/component/component) based, but can also be used with [Browserify](https://github.com/substack/node-browserify), as a CommonJS/AMD module or as a standalone library.
|
|
||||||
|
|
||||||
## Browser Support
|
## Browser Support
|
||||||
|
|
||||||
|
|
@ -21,33 +12,9 @@
|
||||||
- Firefox 4+
|
- Firefox 4+
|
||||||
- IE9+ (IE9 needs [classList polyfill](https://github.com/remy/polyfills/blob/master/classList.js) and doesn't support transitions)
|
- IE9+ (IE9 needs [classList polyfill](https://github.com/remy/polyfills/blob/master/classList.js) and doesn't support transitions)
|
||||||
|
|
||||||
## Installation
|
## Documentation
|
||||||
|
|
||||||
**Component**
|
Please see the [Wiki](https://github.com/yyx990803/vue/wiki). (under construction)
|
||||||
|
|
||||||
``` bash
|
|
||||||
$ component install yyx990803/vue
|
|
||||||
```
|
|
||||||
|
|
||||||
**Browserify**
|
|
||||||
|
|
||||||
``` bash
|
|
||||||
$ npm install vue
|
|
||||||
```
|
|
||||||
|
|
||||||
**Bower**
|
|
||||||
|
|
||||||
``` bash
|
|
||||||
$ bower install vue
|
|
||||||
```
|
|
||||||
|
|
||||||
**Module Loaders, e.g. RequireJS, SeaJS**
|
|
||||||
|
|
||||||
Built versions in `/dist` or installed via Bower can be used directly as a CommonJS or AMD module.
|
|
||||||
|
|
||||||
**Standalone**
|
|
||||||
|
|
||||||
Simply include a built version in `/dist` or installed via Bower with a script tag. `Vue` will be registered as a global variable.
|
|
||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
||||||
|
|
@ -59,48 +26,23 @@ $ component install
|
||||||
```
|
```
|
||||||
|
|
||||||
To build:
|
To build:
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
$ grunt build
|
$ grunt build
|
||||||
```
|
```
|
||||||
|
|
||||||
To watch and auto-build dev version during development:
|
To watch and auto-build dev version during development:
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
$ grunt watch
|
$ grunt watch
|
||||||
```
|
```
|
||||||
|
|
||||||
To test (install [CasperJS](http://casperjs.org/) first):
|
To test (install [CasperJS](http://casperjs.org/) first):
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
$ grunt test
|
$ grunt test
|
||||||
```
|
```
|
||||||
|
|
||||||
## Quickstart
|
|
||||||
|
|
||||||
**HTML**
|
|
||||||
|
|
||||||
~~~ html
|
|
||||||
<div id="demo" v-on="click:changeText">
|
|
||||||
<p v-text="hello"></p>
|
|
||||||
</div>
|
|
||||||
~~~
|
|
||||||
|
|
||||||
**JavaScript**
|
|
||||||
|
|
||||||
~~~ js
|
|
||||||
new Vue({
|
|
||||||
el: '#demo',
|
|
||||||
scope: {
|
|
||||||
hello: 'Hello World!',
|
|
||||||
changeText: function () {
|
|
||||||
this.hello = 'Hello VueJS!'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
~~~
|
|
||||||
|
|
||||||
## Documentation
|
|
||||||
|
|
||||||
Coming soon...
|
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
MIT
|
MIT
|
||||||
|
|
@ -2,6 +2,9 @@
|
||||||
"name": "vue",
|
"name": "vue",
|
||||||
"version": "0.7.2",
|
"version": "0.7.2",
|
||||||
"main": "dist/vue.js",
|
"main": "dist/vue.js",
|
||||||
|
"description": "Lightweight, Simple, Fast & Composable MVVM library for building interactive user interfaces.",
|
||||||
|
"authors": ["Evan You <yyx990803@gmail.com>"],
|
||||||
|
"license": "MIT",
|
||||||
"ignore": [
|
"ignore": [
|
||||||
".*",
|
".*",
|
||||||
"examples",
|
"examples",
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,8 @@
|
||||||
"name": "vue",
|
"name": "vue",
|
||||||
"version": "0.7.2",
|
"version": "0.7.2",
|
||||||
"main": "src/main.js",
|
"main": "src/main.js",
|
||||||
"description": "Data-driven View Models",
|
"author": "Evan You <yyx990803@gmail.com>",
|
||||||
|
"description": "Lightweight, Simple, Fast & Composable MVVM library for building interactive user interfaces.",
|
||||||
"keywords": ["mvvm", "framework", "data binding"],
|
"keywords": ["mvvm", "framework", "data binding"],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": [
|
"scripts": [
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
"url": "http://evanyou.me"
|
"url": "http://evanyou.me"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"description": "A mini front-end MVVM framework",
|
"description": "Lightweight, Simple, Fast & Composable MVVM library for building interactive user interfaces.",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"mvvm",
|
"mvvm",
|
||||||
"browser",
|
"browser",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue