Skip to content

Commit 5b5001e

Browse files
Update dependencies
1 parent 5d051fe commit 5b5001e

File tree

3 files changed

+17
-14
lines changed

3 files changed

+17
-14
lines changed

cli.js

+11-7
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,16 @@ const updateNotifier = require('update-notifier');
55
const meow = require('meow');
66
const mobicon = require('mobicon');
77
const logSymbols = require('log-symbols');
8-
const chalk = require('chalk');
98

109
const cli = meow(`
1110
Usage
1211
$ mobicon <file>
1312
1413
Options
15-
-p, --platform Platform to generate icons for
16-
-b, --background Color of the icon background if the icon is transparant [Default: white]
17-
-r, --contentRatio Logo-icon ratio [Default: 1]
18-
-o, --out Output directory [Default: cwd]
14+
--platform, -p Platform to generate icons for
15+
--background, -b Color of the icon background if the icon is transparant [Default: white]
16+
--contentRatio, -r Logo-icon ratio [Default: 1]
17+
--out, -o Output directory [Default: cwd]
1918
2019
Examples
2120
$ mobicon icon.png -p=android
@@ -69,9 +68,14 @@ Promise.all(platforms.map(platform => {
6968
dest = path.join(dest, platform);
7069
}
7170

72-
return mobicon(cli.input[0], {platform, dest, background: cli.flags.background, contentRatio: cli.flags.contentRatio});
71+
return mobicon(cli.input[0], {
72+
platform,
73+
dest,
74+
background: cli.flags.background,
75+
contentRatio: cli.flags.contentRatio
76+
});
7377
})).then(() => {
7478
console.log(` ${logSymbols.success} success`);
7579
}).catch(error => {
76-
console.log(` ${logSymbols.error} ${chalk.bold.red('error')} ${error.message}`);
80+
console.log(` ${logSymbols.error} ${error.message}`);
7781
});

package.json

+4-5
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,16 @@
3636
"blackberry10"
3737
],
3838
"dependencies": {
39-
"chalk": "^1.1.1",
40-
"log-symbols": "^1.0.2",
39+
"log-symbols": "^3.0.0",
4140
"meow": "^5.0.0",
4241
"mobicon": "^2.0.0",
43-
"update-notifier": "^0.6.0"
42+
"update-notifier": "^3.0.1"
4443
},
4544
"devDependencies": {
4645
"ava": "^2.3.0",
4746
"execa": "^0.1.1",
48-
"path-exists": "^2.1.0",
49-
"tempfile": "^1.1.1",
47+
"path-exists": "^4.0.0",
48+
"tempy": "^0.3.0",
5049
"xo": "^0.24.0"
5150
}
5251
}

test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import path from 'path';
22
import test from 'ava';
33
import execa from 'execa';
4-
import tempfile from 'tempfile';
4+
import tempy from 'tempy';
55
import pathExists from 'path-exists';
66

77
test.beforeEach(t => {
8-
t.context.tmp = tempfile();
8+
t.context.tmp = tempy.file();
99
});
1010

1111
test('error', async t => {

0 commit comments

Comments
 (0)