File tree 5 files changed +32
-8
lines changed 5 files changed +32
-8
lines changed Original file line number Diff line number Diff line change 3
3
test
4
4
yarn-error.log
5
5
6
+ madrun.js
7
+
Original file line number Diff line number Diff line change
1
+ 'use strict' ;
1
2
'uses strict' ;
2
3
3
4
const fs = require ( 'fs' ) ;
Original file line number Diff line number Diff line change
1
+ 'use strict' ;
2
+
3
+ const {
4
+ run
5
+ } = require ( 'madrun' ) ;
6
+
7
+ module . exports = {
8
+ "test" : ( ) => 'tape test/*.js' ,
9
+ "lint" : ( ) => 'putout lib test madrun.js' ,
10
+ 'fix:lint' : ( ) => run ( 'lint' , '--fix' ) ,
11
+ "watch:test" : ( ) => run ( 'watcher' , '"npm test"' ) ,
12
+ "watcher" : ( ) => 'nodemon -w lib -w test -x' ,
13
+ "coverage" : ( ) => 'nyc npm test' ,
14
+ "report" : ( ) => 'nyc report --reporter=text-lcov | coveralls'
15
+ } ;
16
+
Original file line number Diff line number Diff line change 17
17
"url" : " git://github.com/cloudcmd/node-read-files-sync.git"
18
18
},
19
19
"scripts" : {
20
- "test" : " tape test/*.js" ,
21
- "lint" : " eslint lib test" ,
22
- "watch:test" : " npm run watcher -- \" npm test\" " ,
23
- "watcher" : " nodemon -w lib -w test -x" ,
24
- "coverage" : " nyc npm test" ,
25
- "report" : " nyc report --reporter=text-lcov | coveralls"
20
+ "test" : " madrun test" ,
21
+ "lint" : " madrun lint" ,
22
+ "fix:lint" : " madrun fix:lint" ,
23
+ "watch:test" : " madrun watch:test" ,
24
+ "watcher" : " madrun watcher" ,
25
+ "coverage" : " madrun coverage" ,
26
+ "report" : " madrun report"
26
27
},
27
28
"dependencies" : {
28
29
"currify" : " ^4.0.0" ,
32
33
"devDependencies" : {
33
34
"coveralls" : " ^3.0.0" ,
34
35
"eslint" : " ^6.4.0" ,
36
+ "eslint-plugin-node" : " ^10.0.0" ,
37
+ "eslint-plugin-putout" : " ^2.0.0" ,
38
+ "madrun" : " ^3.0.5" ,
35
39
"nodemon" : " ^1.11.0" ,
36
40
"nyc" : " ^14.1.1" ,
37
- "tape" : " ^4.2.0"
41
+ "putout" : " ^6.1.0" ,
42
+ "supertape" : " ^1.2.3"
38
43
},
39
44
"engines" : {
40
45
"node" : " >=8.0.0"
Original file line number Diff line number Diff line change 3
3
const path = require ( 'path' ) ;
4
4
5
5
const readFilesSync = require ( '..' ) ;
6
- const test = require ( 'tape ' ) ;
6
+ const test = require ( 'supertape ' ) ;
7
7
const dirFixture = path . join ( __dirname , 'fixture' ) ;
8
8
9
9
test ( 'readFilesSync: args: no' , ( t ) => {
You can’t perform that action at this time.
0 commit comments