Skip to content

Commit 8fddd39

Browse files
committed
add travis-ci
1 parent 4ed45d2 commit 8fddd39

File tree

2 files changed

+17
-15
lines changed

2 files changed

+17
-15
lines changed

README.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,23 @@ QinJs
1212
考虑到需求复杂化,所有的API都可以无缝衔接到Zepto/Jquery
1313

1414
###选择器
15-
$('div')
16-
15+
```js
16+
$('div')
17+
```
1718
###绑定器
18-
19-
$('div').on('click',function(){
19+
```js
20+
$('div').on('click',function(){
2021
//do something
2122
})
22-
23-
23+
```
2424
###css渲染
25-
26-
$('div').css('display','none')
27-
28-
25+
```js
26+
$('div').css('display','none')
27+
```
2928
###支持线性调用
30-
31-
$('div').css('display','none')
32-
.css('display','block')
29+
```js
30+
$('div').css('display','none')
31+
.css('display','block')
32+
```
3333

3434

package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Jquery Free , escape Zepto . ",
55
"main": "qin.js jquery free",
66
"scripts": {
7-
"test": "./node_modules/karma/bin/karma start --single-run --browsers PhantomJS"
7+
"test": "./node_modules/mocha-phantomjs/bin/mocha-phantomjs ./vendor/index.html"
88
},
99
"repository": {
1010
"type": "git",
@@ -25,6 +25,8 @@
2525
"devDependencies": {
2626
"chai": "^1.9.2",
2727
"gulp": "*",
28-
"mocha": "^1.21.4"
28+
"mocha": "^1.21.4",
29+
"mocha-phantomjs": "^3.5.0",
30+
"phantomjs": "^1.9.10"
2931
}
3032
}

0 commit comments

Comments
 (0)