File tree 4 files changed +2768
-72
lines changed
4 files changed +2768
-72
lines changed Original file line number Diff line number Diff line change 8
8
},
9
9
"devDependencies" : {
10
10
"@types/node" : " ^8.0.28" ,
11
+ "@types/sinon" : " ^2.3.4" ,
12
+ "ava" : " ^0.22.0" ,
11
13
"npm-run-all" : " ^4.1.1" ,
12
14
"shx" : " ^0.2.2" ,
15
+ "sinon" : " ^3.3.0" ,
16
+ "tap-diff" : " ^0.1.1" ,
13
17
"ts-node" : " ^3.3.0" ,
14
18
"tslint" : " ^5.7.0" ,
15
19
"tslint-eslint-rules" : " ^4.1.1" ,
16
20
"typescript" : " ^2.5.2"
17
21
},
18
22
"scripts" : {
19
- "build_cjs" : " npm-run-all clean_cjs compile_cjs" ,
20
- "clean_cjs" : " shx rm -rf lib" ,
21
- "compile_cjs" : " tsc -p ./src/tsconfig.json" ,
23
+ "build:src" : " npm-run-all clean:cjs tsc:src" ,
24
+ "clean:cjs" : " shx rm -rf lib" ,
22
25
"lint" : " tslint -c tslint.json --project ./src/tsconfig.json --type-check" ,
23
- "test" : " echo \" Error: no test specified\" && exit 1"
26
+ "test" : " ava | tap-diff" ,
27
+ "tsc:src" : " tsc -p ./src/tsconfig.json" ,
28
+ "watch" : " npm-run-all -p watch:src watch:ava" ,
29
+ "watch:ava" : " sleep 1 && ava -w --color | tap-diff" ,
30
+ "watch:src" : " npm run tsc:src -- -w --diagnostics --pretty"
24
31
},
25
32
"keywords" : [
26
33
" Relation" ,
36
43
"bugs" : {
37
44
38
45
"url" : " https://github.com/ReactiveDB/Relational-Database/issues"
46
+ },
47
+ "ava" : {
48
+ "files" : [
49
+ " test/**/*.js"
50
+ ],
51
+ "source" : [
52
+ " lib/**/*.js"
53
+ ],
54
+ "failWithoutAssertions" : true ,
55
+ "tap" : true ,
56
+ "color" : true
39
57
}
40
58
}
Original file line number Diff line number Diff line change 4
4
"target" : " es5" ,
5
5
"module" : " commonjs" ,
6
6
"outDir" : " ../lib" ,
7
- "declaration" : true
8
- }
7
+ "declaration" : true ,
8
+ "lib" : [
9
+ " es2015"
10
+ ]
11
+ },
12
+ "include" : [
13
+ " ./**/*.ts"
14
+ ]
9
15
}
Original file line number Diff line number Diff line change
1
+ const test = require ( 'ava' )
2
+ const { version } = require ( '../lib' )
3
+
4
+ test ( 'version should equal to package.json' , t => {
5
+ t . deepEqual ( version , require ( '../package.json' ) . version )
6
+ } )
You can’t perform that action at this time.
0 commit comments