File tree 3 files changed +15
-2
lines changed
3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 1
1
# front-flow-cli
2
2
为front-flow项目开发的命令行工具
3
3
4
- [ ![ DUB] ( https://img.shields.io/badge/npm-v2.0.3-blue .svg?maxAge=2592000 )] ( ) [ ![ DUB] ( https://img.shields.io/badge/nodejs%20support-v6.5.0-green.svg?maxAge=2592000 )] ( ) [ ![ Website] ( https://img.shields.io/website-up-down-green-red/http/shields.io.svg?maxAge=2592000 )] ( http://zangtao.org/projects/front-flow-cli/ ) [ ![ DUB] ( https://img.shields.io/dub/l/vibe-d.svg?maxAge=2592000 )] ( )
4
+ [ ![ DUB] ( https://travis-ci.org/tower1229/front-flow-cli .svg )] ( ) [ ![ DUB] ( https://img.shields.io/badge/nodejs%20support-v6.5.0-green.svg?maxAge=2592000 )] ( ) [ ![ Website] ( https://img.shields.io/website-up-down-green-red/http/shields.io.svg?maxAge=2592000 )] ( http://zangtao.org/projects/front-flow-cli/ ) [ ![ DUB] ( https://img.shields.io/dub/l/vibe-d.svg?maxAge=2592000 )] ( )
5
5
6
6
7
7
##功能
Original file line number Diff line number Diff line change 15
15
},
16
16
"main" : " index.js" ,
17
17
"scripts" : {
18
- "test" : " echo \" Error: no test specified \" && exit 1 "
18
+ "test" : " mocha "
19
19
},
20
20
"bin" : {
21
21
"flow" : " bin/flow.js"
38
38
"gulp-sourcemaps" : " ^2.2.0" ,
39
39
"less-plugin-autoprefix" : " ^1.5.1" ,
40
40
"ora" : " ^0.3.0"
41
+ },
42
+ "devDependencies" : {
43
+ "mocha" : " ^3.1.2"
41
44
}
42
45
}
Original file line number Diff line number Diff line change
1
+ var assert = require ( 'assert' ) ;
2
+ var pkg = require ( '../package.json' ) ;
3
+ var v = pkg . version ;
4
+ describe ( 'commond test' , function ( ) {
5
+ describe ( '#flow -V' , function ( ) {
6
+ it ( 'should return version' , function ( ) {
7
+ assert . equal ( pkg . version , v ) ;
8
+ } ) ;
9
+ } ) ;
10
+ } ) ;
You can’t perform that action at this time.
0 commit comments