Skip to content

Commit bcb2135

Browse files
committed
feature(format-io) drop support of legacy
1 parent 3307a99 commit bcb2135

7 files changed

Lines changed: 36 additions & 21 deletions

File tree

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
node_modules
2-
legacy
32
yarn-error.log
43
*.swp
54
.nyc_output

.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ test
33

44
.*
55

6+
madrun.js
7+

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
language: node_js
22
node_js:
3+
- 12
34
- 10
45
- 8
56

README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,6 @@ format.permissions.numeric(perm);
3939
'00777'
4040
```
4141

42-
## Environments
43-
44-
In environments that not supports `es2015`, `format` can be used with:
45-
46-
```js
47-
var format = require('format/legacy');
48-
```
49-
5042
# License
5143

5244
MIT

lib/mode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const currify = require('currify/legacy');
3+
const currify = require('currify');
44

55
/*
66
S_IRUSR 0000400 protection: readable by owner

madrun.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
'use strict';
2+
3+
const {
4+
run
5+
} = require('madrun');
6+
7+
module.exports = {
8+
'fix:lint': () => run('lint', '--fix'),
9+
'lint': () => 'putout lib madrun.js',
10+
"lint:test": () => 'putout -c .putoutrc.test --no-putoutrc test',
11+
"test": () => 'tape \'test/**/*.js\'',
12+
"report": () => 'nyc report --reporter=text-lcov | coveralls',
13+
"coverage": () => 'nyc npm test',
14+
"watcher": () => 'nodemon -w test -w lib --exec',
15+
"watch:test": () => run('watcher', 'npm test'),
16+
"watch:lint": () => run('watcher', '\'npm run lint\'')
17+
};
18+

package.json

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@
1414
"permissions"
1515
],
1616
"scripts": {
17-
"wisdom": "npm run build",
18-
"lint": "redrun lint:*",
19-
"lint:lib": "eslint lib",
20-
"lint:test": "eslint -c .eslintrc.test --no-eslintrc test",
21-
"test": "tape 'test/**/*.js'",
22-
"report": "nyc report --reporter=text-lcov | coveralls",
23-
"coverage": "nyc npm test",
24-
"watcher": "nodemon -w test -w lib --exec",
25-
"watch:test": "npm run watcher -- npm test",
26-
"watch:lint": "npm run watcher -- 'npm run lint'"
17+
"wisdom": "madrun wisdom",
18+
"fix:lint": "madrun fix:lint",
19+
"lint": "madrun lint",
20+
"lint:test": "madrun lint:test",
21+
"test": "madrun test",
22+
"report": "madrun report",
23+
"coverage": "madrun coverage",
24+
"watcher": "madrun watcher",
25+
"watch:test": "madrun watch:test",
26+
"watch:lint": "madrun watch:lint"
2727
},
2828
"dependencies": {
2929
"currify": "^4.0.0"
@@ -37,9 +37,12 @@
3737
"coveralls": "^3.0.1",
3838
"eslint": "^6.4.0",
3939
"eslint-plugin-node": "^10.0.0",
40+
"eslint-plugin-putout": "^2.0.0",
41+
"madrun": "^3.0.5",
4042
"mkdirp": "^0.5.1",
4143
"nodemon": "^1.17.5",
4244
"nyc": "^14.1.1",
43-
"rimraf": "^2.6.2"
45+
"putout": "^6.1.0",
46+
"supertape": "^1.2.3"
4447
}
4548
}

0 commit comments

Comments
 (0)