Skip to content

Commit

Permalink
Require Node.js 10 (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
1000ch authored Jun 2, 2020
1 parent 600546a commit 59fb739
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
language: node_js
node_js:
- '14'
- '12'
- '10'
- '8'
- '6'
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"pngout": "cli.js"
},
"engines": {
"node": ">=6"
"node": ">=10"
},
"scripts": {
"postinstall": "node lib/install.js",
Expand All @@ -56,10 +56,10 @@
"logalot": "^2.0.0"
},
"devDependencies": {
"ava": "*",
"ava": "^3.8.0",
"compare-size": "^3.0.0",
"execa": "^1.0.0",
"tempy": "^0.2.1",
"xo": "*"
"execa": "^4.0.0",
"tempy": "^0.5.0",
"xo": "^0.30.0"
}
}
8 changes: 4 additions & 4 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ const compareSize = require('compare-size');
const pngout = require('..');

test('minify a PNG', async t => {
const tmp = tempy.directory();
const temporary = tempy.directory();
const src = path.join(__dirname, 'fixtures/test.png');
const dest = path.join(tmp, 'test.png');
const dest = path.join(temporary, 'test.png');
const args = [
src,
dest,
Expand All @@ -19,7 +19,7 @@ test('minify a PNG', async t => {
];

await execa(pngout, args);
const res = await compareSize(src, dest);
const result = await compareSize(src, dest);

t.true(res[dest] < res[src]);
t.true(result[dest] < result[src]);
});

0 comments on commit 59fb739

Please sign in to comment.