Skip to content

Commit 5e5c521

Browse files
committed
feature(read-files-sync) madrun
1 parent e72710c commit 5e5c521

File tree

5 files changed

+32
-8
lines changed

5 files changed

+32
-8
lines changed

.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
test
44
yarn-error.log
55

6+
madrun.js
7+

lib/read-files-sync.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
'use strict';
12
'uses strict';
23

34
const fs = require('fs');

madrun.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+

package.json

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@
1717
"url": "git://github.com/cloudcmd/node-read-files-sync.git"
1818
},
1919
"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"
2627
},
2728
"dependencies": {
2829
"currify": "^4.0.0",
@@ -32,9 +33,13 @@
3233
"devDependencies": {
3334
"coveralls": "^3.0.0",
3435
"eslint": "^6.4.0",
36+
"eslint-plugin-node": "^10.0.0",
37+
"eslint-plugin-putout": "^2.0.0",
38+
"madrun": "^3.0.5",
3539
"nodemon": "^1.11.0",
3640
"nyc": "^14.1.1",
37-
"tape": "^4.2.0"
41+
"putout": "^6.1.0",
42+
"supertape": "^1.2.3"
3843
},
3944
"engines": {
4045
"node": ">=8.0.0"

test/read-files-sync.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const path = require('path');
44

55
const readFilesSync = require('..');
6-
const test = require('tape');
6+
const test = require('supertape');
77
const dirFixture = path.join(__dirname, 'fixture');
88

99
test('readFilesSync: args: no', (t) => {

0 commit comments

Comments
 (0)