Skip to content

Commit c225f8c

Browse files
author
Evan You
committed
more files
1 parent 63b7397 commit c225f8c

12 files changed

+280
-1
lines changed

.npmignore

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
test
2+
tasks
3+
examples
4+
explorations
5+
components
6+
.jshintrc
7+
.gitignore
8+
.travis.yml
9+
.npmignore
10+
bower.json
11+
component.json
12+
gruntfile.js
13+
TODO.md
14+
sauce_connect.log
15+
coverage

.travis.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
language: node_js
2+
node_js:
3+
- '0.10'
4+
branches:
5+
only:
6+
- master
7+
before_install:
8+
- npm install -g grunt-cli phantomjs casperjs
9+
env:
10+
global:
11+
- secure: Ce9jxsESszOnGyj3A6wILO5W412El9iD/HCHiFgbr8/cSXa4Yt0ZOEZysZeyaBX6IFUCjHtQPLasVgCxijDHrhi7/drmyCE+ksruk/6LJWn9C46PZK6nI+N04iYA2TRnocFllhGbyttpbpxY04smCmGWqXwLppu9nb+VIDkKGmE=
12+
- secure: cZQTby8mGxb4QHi9net2/kK7N2VMOZKPepa+8ob2+jxICSukPgTqGP1iVQWR+tVlU60lFAHpos2o8vQLB4e5Rt5IFEajCr+RppE9xUWxMUulbrXaIrzz1OYA5DvTi/8ZeE6/x0+MpZJT1b/GIqhlrU4QwjjpeJWLwAkv8ysZaEs=

CONTRIBUTING.md

+82
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
# Vue.js Contributing Guide
2+
3+
Hi! I’m really excited that you are interested in contributing to Vue.js. Before submitting your contribution though, please make sure to take a moment and read through the following guidelines.
4+
5+
## Issue Reporting Checklist
6+
7+
- Make sure that you are using the latest version of Vue.
8+
- Try to search for your issue, it may have already been answered or even fixed in the development branch.
9+
- It is recommended that you make a JSFiddle to reproduce your issue. You could start with [this template](http://jsfiddle.net/5sH6A/) that already includes the latest version of Vue.
10+
- If your issue is resolved but still open, don’t hesitate to close it. In case you found a solution by yourself, it could be helpful to explain how you fixed it.
11+
12+
## Pull Request Checklist
13+
14+
- Checkout a topic branch from `dev` and merge back against `dev`.
15+
- Work in the `src` folder and **DO NOT** checkin `dist` in the commits.
16+
- Squash the commit if there are too many small ones.
17+
- Follow the [code style](#code-style).
18+
- Make sure the default grunt task passes. (see [development setup](#development-setup))
19+
- If adding new feature:
20+
- Add accompanying test case.
21+
- Provide convincing reason to add this feature. Ideally you should open a suggestion issue first and have it greenlighted before working on it.
22+
- If fixing a bug:
23+
- Provide detailed description of the bug in the PR. Live demo preferred.
24+
- Add appropriate test coverage if applicable.
25+
26+
## Code Style
27+
28+
- [No semicolons unless necessary](http://inimino.org/~inimino/blog/javascript_semicolons).
29+
- 2 spaces indentation.
30+
- multiple var declarations.
31+
- align equal signs where possible.
32+
- Return early in one line if possible.
33+
- When in doubt, read the source code.
34+
- Break long ternary conditionals like this:
35+
36+
``` js
37+
var a = superLongConditionalStatement
38+
? 'yep'
39+
: 'nope'
40+
```
41+
42+
## Development Setup
43+
44+
You will need [Node](http://nodejs.org), [Grunt](http://gruntjs.com), [PhantomJS](http://phantomjs.org) and [CasperJS](http://casperjs.org).
45+
46+
``` bash
47+
# in case you don’t already these:
48+
# npm install -g grunt-cli phantomjs casperjs
49+
$ npm install
50+
```
51+
52+
To watch and auto-build `dist/vue.js` during development:
53+
54+
``` bash
55+
$ grunt watch
56+
```
57+
58+
To lint:
59+
60+
``` bash
61+
grunt jshint
62+
```
63+
64+
To build:
65+
66+
``` bash
67+
$ grunt build
68+
```
69+
70+
To test:
71+
72+
``` bash
73+
# if you don’t have these yet:
74+
# npm install -g phantomjs casperjs
75+
$ grunt test
76+
```
77+
78+
The unit tests are written with Jasmine and run with Karma. The functional tests are written for and run with CasperJS.
79+
80+
**If you are not using a Mac**
81+
82+
You can modify the Gruntfile to only run Karma tests in browsers that are available on your system. Just make sure don’t check in the Gruntfile for the commit.

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2013 Yuxi Evan You
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

README.md

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
<p align="center"><a href="http://vuejs.org" target="_blank"><img width="100"src="http://vuejs.org/images/logo.png"></a></p>
2+
3+
# Vue.js [![Build Status](https://travis-ci.org/yyx990803/vue.svg?branch=master)](https://travis-ci.org/yyx990803/vue) [![Selenium Test Status](https://saucelabs.com/buildstatus/vuejs)](https://saucelabs.com/u/vuejs) [![Coverage Status](https://img.shields.io/coveralls/yyx990803/vue.svg)](https://coveralls.io/r/yyx990803/vue?branch=master)
4+
5+
> MVVM made simple.
6+
7+
## Introduction
8+
9+
Vue.js is a library for building interactive web interfaces. It provides the benefits of MVVM data binding and a composable component system with a simple and flexible API. You should try it out if you like:
10+
11+
- Intuitive API that simply makes sense
12+
- Extendable Data bindings
13+
- Plain JavaScript objects as models
14+
- Building interface by composing reusable components
15+
- Flexibility to mix & match the view layer with other libraries
16+
17+
It's really really easy to get started. Seriously, it's so easy:
18+
19+
``` html
20+
<div id="demo">
21+
{{message}}
22+
<input v-model="message">
23+
</div>
24+
```
25+
26+
``` js
27+
var demo = new Vue({
28+
data: {
29+
message: 'Hello Vue.js!'
30+
}
31+
}).$mount('#demo')
32+
```
33+
34+
To check out the live demo, guides and API reference, visit [vuejs.org](http://vuejs.org).
35+
36+
## Browser Support
37+
38+
Vue.js supports [most ECMAScript 5 compliant browsers](https://saucelabs.com/u/vuejs), essentially IE9+. IE8 and below are not supported.
39+
40+
## Contribution
41+
42+
Read the [contributing guide](https://github.com/yyx990803/vue/blob/master/CONTRIBUTING.md).
43+
44+
## Get in Touch
45+
46+
- General, non source-code related questions: check the [FAQ](https://github.com/yyx990803/vue/wiki/FAQ) first, if it's not addressed in there, ask [here](https://github.com/vuejs/Discussion/issues).
47+
- If you have a Vue-related project/component/tool, add it to [this list](https://github.com/yyx990803/vue/wiki/User-Contributed-Components-&-Tools)!
48+
- Bugs, suggestions & feature requests: [open an issue](https://github.com/yyx990803/vue/issues)
49+
- Twitter: [@vuejs](https://twitter.com/vuejs)
50+
- [Google+ Community](https://plus.google.com/communities/112229843610661683911)
51+
- freenode IRC Channel: #vuejs
52+
53+
## Changelog
54+
55+
See details changes for each version in the [release notes](https://github.com/yyx990803/vue/releases).
56+
57+
## License
58+
59+
[MIT](http://opensource.org/licenses/MIT)
60+
61+
Copyright (c) 2014 Evan You

bower.json

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "vue",
3+
"version": "0.11.0",
4+
"main": "dist/vue.js",
5+
"description": "Simple, Fast & Composable MVVM for building interative interfaces",
6+
"authors": ["Evan You <[email protected]>"],
7+
"license": "MIT",
8+
"ignore": [
9+
".*",
10+
"examples",
11+
"test",
12+
"tasks",
13+
"gruntfile.js",
14+
"*.json",
15+
"*.md"
16+
]
17+
}

component.json

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"name": "vue",
3+
"version": "0.11.0",
4+
"main": "src/main.js",
5+
"author": "Evan You <[email protected]>",
6+
"description": "Simple, Fast & Composable MVVM for building interative interfaces",
7+
"keywords": [
8+
"mvvm",
9+
"framework",
10+
"data binding"
11+
],
12+
"license": "MIT",
13+
"scripts": [
14+
"src/api/asset-register.js",
15+
"src/api/config.js",
16+
"src/api/extend.js",
17+
"src/api/require.js",
18+
"src/api/use.js",
19+
"src/batcher.js",
20+
"src/binding.js",
21+
"src/compiler/compiler.js",
22+
"src/config.js",
23+
"src/directive.js",
24+
"src/emitter.js",
25+
"src/instance/data.js",
26+
"src/instance/dom.js",
27+
"src/instance/events.js",
28+
"src/instance/lifecycle.js",
29+
"src/observer/observer.js",
30+
"src/observer/watch-array.js",
31+
"src/observer/watch-object.js",
32+
"src/parsers/directive.js",
33+
"src/parsers/expression.js",
34+
"src/parsers/path.js",
35+
"src/parsers/template.js",
36+
"src/parsers/text.js",
37+
"src/transition/css.js",
38+
"src/transition/js.js",
39+
"src/transition/transition.js",
40+
"src/util.js",
41+
"src/vue.js"
42+
]
43+
}

gruntfile.js

+6
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,16 @@ module.exports = function (grunt) {
6161

6262
})
6363

64+
// load npm tasks
6465
grunt.loadNpmTasks('grunt-contrib-jshint')
6566
grunt.loadNpmTasks('grunt-karma')
6667
grunt.loadNpmTasks('grunt-browserify')
6768

69+
// load custom tasks
70+
grunt.file.recurse('tasks', function (path) {
71+
require('./' + path)(grunt)
72+
})
73+
6874
grunt.registerTask('unit', ['karma:browsers'])
6975
grunt.registerTask('watch', ['browserify:watch'])
7076
grunt.registerTask('build', ['browserify:build'])

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue",
3-
"version": "0.10.5",
3+
"version": "0.11.0",
44
"author": "Evan You <[email protected]>",
55
"license": "MIT",
66
"description": "Simple, Fast & Composable MVVM for building interative interfaces",

tasks/casper.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = function () {
2+
3+
}

tasks/component.js

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// automatically fill in component.json's script field
2+
3+
module.exports = function (grunt) {
4+
grunt.registerTask('component', function () {
5+
6+
var component = grunt.file.readJSON('component.json')
7+
component.scripts = []
8+
9+
grunt.file.recurse('src', function (file) {
10+
component.scripts.push(file)
11+
})
12+
13+
grunt.file.write('component.json', JSON.stringify(component, null, 2))
14+
15+
})
16+
}

tasks/release.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = function () {
2+
3+
}

0 commit comments

Comments
 (0)