File tree 3 files changed +7
-7
lines changed
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,11 @@ const {run} = require('madrun');
4
4
5
5
module . exports = {
6
6
'test' : ( ) => `tape 'test/*.js'` ,
7
- 'watch:test' : ( ) => 'nodemon -w lib -w test -x "npm test"' ,
7
+ 'watch:test' : async ( ) => await run ( 'watcher' , await run ( 'test' ) ) ,
8
+ 'watcher' : ( ) => 'nodemon -w test -w lib -w bin --exec' ,
8
9
'lint' : ( ) => 'putout .' ,
9
10
'fix:lint' : ( ) => run ( 'lint' , '--fix' ) ,
10
- 'coverage' : ( ) => 'nyc npm test',
11
- 'report' : ( ) => 'nyc report --reporter=text- lcov | coveralls ' ,
11
+ 'coverage' : async ( ) => `c8 ${ await run ( ' test') } ` ,
12
+ 'report' : ( ) => 'c8 report --reporter=lcov' ,
12
13
} ;
13
14
Original file line number Diff line number Diff line change 1
1
# Try to Catch [ ![ NPM version] [ NPMIMGURL ]] [ NPMURL ] [ ![ Build Status] [ BuildStatusIMGURL ]] [ BuildStatusURL ] [ ![ Coverage Status] [ CoverageIMGURL ]] [ CoverageURL ]
2
2
3
3
[ NPMIMGURL ] : https://img.shields.io/npm/v/try-to-catch.svg?style=flat&longCache=true
4
- [ BuildStatusIMGURL ] : https://img.shields.io/travis/coderaiser/try-to-catch/master.svg?style=flat&longCache=true
5
4
[ NPMURL ] : https://npmjs.org/package/try-to-catch " npm "
6
- [ BuildStatusURL ] : https://travis-ci.org/coderaiser/try-to-catch " Build Status "
7
5
[ CoverageURL ] : https://coveralls.io/github/coderaiser/try-to-catch?branch=master
8
6
[ CoverageIMGURL ] : https://coveralls.io/repos/coderaiser/try-to-catch/badge.svg?branch=master&service=github
7
+ [ BuildStatusURL ] : https://github.com/coderaiser/putout/actions?query=workflow%3A%22Node+CI%22 " Build Status "
8
+ [ BuildStatusIMGURL ] : https://github.com/coderaiser/putout/workflows/Node%20CI/badge.svg
9
9
10
10
Functional ` try-catch ` wrapper for ` promises ` .
11
11
Original file line number Diff line number Diff line change 30
30
" then"
31
31
],
32
32
"devDependencies" : {
33
- "coveralls " : " ^3.0.0 " ,
33
+ "c8 " : " ^7.11.2 " ,
34
34
"eslint" : " ^8.10.0" ,
35
35
"eslint-plugin-node" : " ^11.0.0" ,
36
36
"eslint-plugin-putout" : " ^15.1.1" ,
37
37
"madrun" : " ^9.0.0" ,
38
38
"nodemon" : " ^2.0.2" ,
39
- "nyc" : " ^15.0.0" ,
40
39
"putout" : " ^25.4.1" ,
41
40
"supertape" : " ^7.2.0"
42
41
},
You can’t perform that action at this time.
0 commit comments