Skip to content

Commit d97067f

Browse files
committed
first commit
0 parents  commit d97067f

File tree

196 files changed

+37575
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

196 files changed

+37575
-0
lines changed

.bithoundrc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"ignore": [
3+
"**/node_modules/**",
4+
"**/build/**",
5+
"**/dist/**",
6+
"**/examples/**",
7+
"**/perf/**",
8+
"gruntfile.js",
9+
"**/test/unit/lib/**"
10+
],
11+
"test": [
12+
"**/test/**"
13+
]
14+
}

.eslintrc

Lines changed: 166 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,166 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"node": true
5+
},
6+
7+
"globals": {
8+
"jQuery": true
9+
},
10+
11+
"rules": {
12+
"accessor-pairs": 2,
13+
"array-bracket-spacing": 0,
14+
"block-scoped-var": 0,
15+
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
16+
"camelcase": 0,
17+
"comma-dangle": [2, "never"],
18+
"comma-spacing": [2, { "before": false, "after": true }],
19+
"comma-style": [2, "last"],
20+
"complexity": 0,
21+
"computed-property-spacing": 0,
22+
"consistent-return": 0,
23+
"consistent-this": 0,
24+
"constructor-super": 2,
25+
"curly": [2, "multi-line"],
26+
"default-case": 0,
27+
"dot-location": [2, "property"],
28+
"dot-notation": 0,
29+
"eol-last": 2,
30+
"eqeqeq": [2, "allow-null"],
31+
"func-names": 0,
32+
"func-style": 0,
33+
"generator-star-spacing": [2, { "before": true, "after": true }],
34+
"guard-for-in": 0,
35+
"handle-callback-err": [2, "^(err|error)$" ],
36+
"indent": [2, 2, { "SwitchCase": 1 }],
37+
"key-spacing": [2, { "beforeColon": false, "afterColon": true }],
38+
"linebreak-style": 0,
39+
"lines-around-comment": 0,
40+
"max-nested-callbacks": 0,
41+
"new-cap": [2, { "newIsCap": true, "capIsNew": false }],
42+
"new-parens": 2,
43+
"newline-after-var": 0,
44+
"no-alert": 0,
45+
"no-array-constructor": 2,
46+
"no-caller": 2,
47+
"no-catch-shadow": 0,
48+
"no-cond-assign": 2,
49+
"no-console": 0,
50+
"no-constant-condition": 0,
51+
"no-continue": 0,
52+
"no-control-regex": 2,
53+
"no-debugger": 2,
54+
"no-delete-var": 2,
55+
"no-div-regex": 0,
56+
"no-dupe-args": 2,
57+
"no-dupe-keys": 2,
58+
"no-duplicate-case": 2,
59+
"no-else-return": 0,
60+
"no-empty": 0,
61+
"no-empty-character-class": 2,
62+
"no-empty-label": 2,
63+
"no-eq-null": 0,
64+
"no-eval": 2,
65+
"no-ex-assign": 2,
66+
"no-extend-native": 2,
67+
"no-extra-bind": 2,
68+
"no-extra-boolean-cast": 2,
69+
"no-extra-parens": 0,
70+
"no-extra-semi": 0,
71+
"no-fallthrough": 2,
72+
"no-floating-decimal": 2,
73+
"no-func-assign": 2,
74+
"no-implied-eval": 2,
75+
"no-inline-comments": 0,
76+
"no-inner-declarations": [2, "functions"],
77+
"no-invalid-regexp": 2,
78+
"no-irregular-whitespace": 2,
79+
"no-iterator": 2,
80+
"no-label-var": 2,
81+
"no-labels": 2,
82+
"no-lone-blocks": 2,
83+
"no-lonely-if": 0,
84+
"no-loop-func": 0,
85+
"no-mixed-requires": 0,
86+
"no-mixed-spaces-and-tabs": 2,
87+
"no-multi-spaces": 2,
88+
"no-multi-str": 2,
89+
"no-multiple-empty-lines": [2, { "max": 1 }],
90+
"no-native-reassign": 2,
91+
"no-negated-in-lhs": 2,
92+
"no-nested-ternary": 0,
93+
"no-new": 2,
94+
"no-new-func": 0,
95+
"no-new-object": 2,
96+
"no-new-require": 2,
97+
"no-new-wrappers": 2,
98+
"no-obj-calls": 2,
99+
"no-octal": 2,
100+
"no-octal-escape": 2,
101+
"no-param-reassign": 0,
102+
"no-path-concat": 0,
103+
"no-process-env": 0,
104+
"no-process-exit": 0,
105+
"no-proto": 0,
106+
"no-redeclare": 2,
107+
"no-regex-spaces": 2,
108+
"no-restricted-modules": 0,
109+
"no-return-assign": 2,
110+
"no-script-url": 0,
111+
"no-self-compare": 2,
112+
"no-sequences": 2,
113+
"no-shadow": 0,
114+
"no-shadow-restricted-names": 2,
115+
"no-spaced-func": 2,
116+
"no-sparse-arrays": 2,
117+
"no-sync": 0,
118+
"no-ternary": 0,
119+
"no-this-before-super": 2,
120+
"no-throw-literal": 2,
121+
"no-trailing-spaces": 2,
122+
"no-undef": 2,
123+
"no-undef-init": 2,
124+
"no-undefined": 0,
125+
"no-underscore-dangle": 0,
126+
"no-unexpected-multiline": 2,
127+
"no-unneeded-ternary": 2,
128+
"no-unreachable": 2,
129+
"no-unused-expressions": 0,
130+
"no-unused-vars": [2, { "vars": "all", "args": "none" }],
131+
"no-use-before-define": 0,
132+
"no-var": 0,
133+
"no-void": 0,
134+
"no-warning-comments": 0,
135+
"no-with": 2,
136+
"object-curly-spacing": 0,
137+
"object-shorthand": 0,
138+
"one-var": [2, { "initialized": "never" }],
139+
"operator-assignment": 0,
140+
"operator-linebreak": [2, "after", { "overrides": { "?": "before", ":": "before" } }],
141+
"padded-blocks": 0,
142+
"prefer-const": 0,
143+
"quote-props": 0,
144+
"quotes": [2, "single", "avoid-escape"],
145+
"radix": 2,
146+
"semi": [2, "never"],
147+
"semi-spacing": 0,
148+
"sort-vars": 0,
149+
"space-after-keywords": [2, "always"],
150+
"space-before-blocks": [2, "always"],
151+
"space-before-function-paren": [2, "always"],
152+
"space-in-parens": [2, "never"],
153+
"space-infix-ops": 2,
154+
"space-return-throw-case": 2,
155+
"space-unary-ops": [2, { "words": true, "nonwords": false }],
156+
"spaced-comment": [2, "always", { "markers": ["global", "globals", "eslint", "eslint-disable", "*package", "!"] }],
157+
"strict": 0,
158+
"use-isnan": 2,
159+
"valid-jsdoc": 0,
160+
"valid-typeof": 2,
161+
"vars-on-top": 0,
162+
"wrap-iife": [2, "any"],
163+
"wrap-regex": 0,
164+
"yoda": [2, "never"]
165+
}
166+
}

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
dist/vue.js.map
2+
dist/vue.min.js.gz
3+
test/unit/specs.js
4+
test/unit/specs.js.map
5+
explorations
6+
node_modules
7+
.DS_Store
8+
.idea
9+
benchmarks/browser.js
10+
coverage

.npmignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
.*
2+
*.md
3+
*.yml
4+
build
5+
coverage
6+
dist/vue.js.map
7+
dist/vue.min.js.gz
8+
examples
9+
explorations
10+
perf
11+
test
12+
bower.json
13+
component.json
14+
gruntfile.js
15+
sauce_connect.log

CONTRIBUTING.md

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
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 Guidelines
6+
7+
- The issue list of this repo is **exclusively** for bug reports and feature requests. For simple questions, please use either [Gitter](https://gitter.im/yyx990803/vue) or [the official forum](http://forum.vuejs.org/).
8+
9+
- Try to search for your issue, it may have already been answered or even fixed in the development branch.
10+
11+
- Check if the issue is reproducible with the latest stable version of Vue. If you are using a pre-release, please indicate the specific version you are using.
12+
13+
- It is **required** that you clearly describe the steps necessary to reproduce the issue you are running into. Issues with no clear repro steps will not be triaged. If an issue labeled "need repro" receives no further input from the issue author for more than 5 days, it will be closed.
14+
15+
- It is recommended that you make a JSFiddle to demonstrate your issue. You could start with [this template](http://jsfiddle.net/5sH6A/) that already includes the latest version of Vue.
16+
17+
- 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.
18+
19+
## Pull Request Guidelines
20+
21+
- Checkout a topic branch from `dev` and merge back against `dev`.
22+
23+
- Work in the `src` folder and **DO NOT** checkin `dist` in the commits.
24+
25+
- Squash the commit if there are too many small ones.
26+
27+
- Follow the [code style](#code-style).
28+
29+
- Make sure the default grunt task passes. (see [development setup](#development-setup))
30+
31+
- If adding new feature:
32+
- Add accompanying test case.
33+
- Provide convincing reason to add this feature. Ideally you should open a suggestion issue first and have it greenlighted before working on it.
34+
35+
- If fixing a bug:
36+
- Provide detailed description of the bug in the PR. Live demo preferred.
37+
- Add appropriate test coverage if applicable.
38+
39+
## Code Style
40+
41+
- [No semicolons unless necessary](http://inimino.org/~inimino/blog/javascript_semicolons).
42+
- Follow JSDoc.
43+
- 2 spaces indentation.
44+
- multiple var declarations.
45+
- align equal signs where appropriate.
46+
- Return early.
47+
- 1 space after `function`
48+
- 1 space between arguments, but not between parentheses.
49+
- When in doubt, read the source code.
50+
- Break long ternary conditionals like this:
51+
52+
``` js
53+
var a = superLongConditionalStatement
54+
? 'yep'
55+
: 'nope'
56+
```
57+
58+
## Development Setup
59+
60+
You will need [Node.js](http://nodejs.org) & [Grunt](http://gruntjs.com).
61+
62+
``` bash
63+
# npm install -g grunt-cli
64+
$ npm install
65+
```
66+
67+
To watch and auto-build `dist/vue.js` during development:
68+
69+
``` bash
70+
$ npm run dev
71+
```
72+
73+
To lint:
74+
75+
``` bash
76+
$ grunt eslint
77+
```
78+
79+
To build:
80+
81+
``` bash
82+
$ grunt build
83+
```
84+
85+
To test:
86+
87+
``` bash
88+
$ grunt test
89+
```
90+
91+
The default task (by simply running `grunt`) will do the following: lint -> build -> unit tests -> e2e tests. It is required to have this pass successfully for a PR to be considered.
92+
93+
The unit tests are written with Jasmine and run with Karma. The e2e tests are written for and run with CasperJS.
94+
95+
Note that the unit tests will automatically be run in Chrome, Firefox and Safari. If you are not on a Mac, or don't have one of the browsers installed on your system, you can modify the [karma config in gruntfile.js](https://github.com/yyx990803/vue/blob/dev/gruntfile.js#L38) to only run Karma tests in browsers that are available on your system. Just make sure don’t check in the gruntfile changes for the commit.

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2013-2015 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

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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+
<p align="center">
4+
<a href="https://circleci.com/gh/yyx990803/vue/tree/master"><img src="https://circleci.com/gh/yyx990803/vue/tree/master.svg?style=shield" alt="Build Status"></a>
5+
<a href="https://codecov.io/github/yyx990803/vue?branch=master"><img src="https://codecov.io/github/yyx990803/vue/coverage.svg?branch=dev" alt="Coverage Status"></a>
6+
<a href="https://www.bithound.io/github/yyx990803/vue"><img src="https://www.bithound.io/github/yyx990803/vue/badges/score.svg" alt="bitHound Score"></a>
7+
<br>
8+
<a href="http://issuestats.com/github/yyx990803/vue"><img src="http://issuestats.com/github/yyx990803/vue/badge/issue?style=flat"></a>
9+
<a href="https://gitter.im/yyx990803/vue"><img src="https://badges.gitter.im/Join Chat.svg"></a>
10+
</p>
11+
12+
## Intro
13+
14+
Vue.js is a library for building interactive web interfaces. It provides data-reactive components with a simple and flexible API. Core features include:
15+
16+
- Dead simple, unobtrusive reactivity using plain JavaScript objects.
17+
- Component-oriented development style with tooling support
18+
- Lean and extensible core
19+
- Flexible transition effect system
20+
- [Fast](http://vuejs.github.io/js-repaint-perfs/vue/)!
21+
22+
Note that Vue.js only supports [ES5-compliant browsers](http://kangax.github.io/compat-table/es5/) (IE8 and below are not supported). To check out live examples and docs, visit [vuejs.org](http://vuejs.org). You can also start with this excellent screencast series on [Laracasts](https://laracasts.com/series/learning-vuejs).
23+
24+
## Questions
25+
26+
For questions and support please use the [Gitter chat room](https://gitter.im/yyx990803/vue) or [the official forum](http://forum.vuejs.org). The issue list of this repo is **exclusively** for bug reports and feature requests.
27+
28+
## Issues
29+
30+
Please make sure to read the [Issue Reporting Checklist](https://github.com/yyx990803/vue/blob/dev/CONTRIBUTING.md#issue-reporting-guidelines) before opening an issue. Issues not conforming to the guidelines may be closed immediately.
31+
32+
## Contribution
33+
34+
Please make sure to read the [Contributing Guide](https://github.com/yyx990803/vue/blob/dev/CONTRIBUTING.md) before making a pull request. If you have a Vue-related project/component/tool, add it to [this list](https://github.com/yyx990803/vue/wiki/User-Contributed-Components-&-Tools)!
35+
36+
## Changelog
37+
38+
Details changes for each release are documented in the [release notes](https://github.com/yyx990803/vue/releases).
39+
40+
## Stay In Touch
41+
42+
- For latest releases and announcements, follow on Twitter: [@vuejs](https://twitter.com/vuejs)
43+
44+
## License
45+
46+
[MIT](http://opensource.org/licenses/MIT)
47+
48+
Copyright (c) 2014 Evan You

bower.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "vue",
3+
"main": "dist/vue.js",
4+
"description": "Simple, Fast & Composable MVVM for building interative interfaces",
5+
"authors": ["Evan You <yyx990803@gmail.com>"],
6+
"license": "MIT",
7+
"ignore": [
8+
".*",
9+
"examples",
10+
"build",
11+
"perf",
12+
"test",
13+
"grunt",
14+
"gruntfile.js",
15+
"*.json",
16+
"*.md",
17+
"*.yml"
18+
]
19+
}

0 commit comments

Comments
 (0)