Skip to content

Commit 0691633

Browse files
thymikeegrabbou
authored andcommitted
chore: remove some unused files (#217)
1 parent d70b10f commit 0691633

File tree

10 files changed

+13
-152
lines changed

10 files changed

+13
-152
lines changed

commitlint.config.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

packages/cli/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
"errorhandler": "^1.5.0",
2929
"escape-string-regexp": "^1.0.5",
3030
"execa": "^1.0.0",
31-
"fs-extra": "^1.0.0",
3231
"glob": "^7.1.1",
3332
"graceful-fs": "^4.1.3",
3433
"inquirer": "^3.0.6",

packages/cli/src/commands/link/android/copyAssets.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @format
7+
* @flow
88
*/
99

10-
import fs from 'fs-extra';
10+
import fs from 'fs';
1111
import path from 'path';
1212
import groupFilesByType from '../groupFilesByType';
1313

@@ -17,11 +17,14 @@ import groupFilesByType from '../groupFilesByType';
1717
* For now, the only types of files that are handled are:
1818
* - Fonts (otf, ttf) - copied to targetPath/fonts under original name
1919
*/
20-
export default function copyAssetsAndroid(files, project) {
20+
export default function copyAssetsAndroid(
21+
files: Array<string>,
22+
project: {assetsPath: string},
23+
) {
2124
const assets = groupFilesByType(files);
2225

2326
(assets.font || []).forEach(asset =>
24-
fs.copySync(
27+
fs.copyFileSync(
2528
asset,
2629
path.join(project.assetsPath, 'fonts', path.basename(asset)),
2730
),

packages/cli/src/commands/link/android/fs.js

Lines changed: 0 additions & 17 deletions
This file was deleted.

packages/cli/src/commands/link/android/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @format
7+
* @flow
88
*/
99

1010
import isInstalled from './isInstalled';

packages/cli/src/commands/link/android/unlinkAssets.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @format
88
*/
99

10-
import fs from 'fs-extra';
10+
import fs from 'fs';
1111
import path from 'path';
1212
import groupFilesByType from '../groupFilesByType';
1313

packages/cli/src/commands/link/groupFilesByType.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @format
7+
* @flow
88
*/
99

1010
import {groupBy} from 'lodash';
@@ -31,6 +31,6 @@ mime.define({
3131
* Given an array ['fonts/a.ttf', 'images/b.jpg'],
3232
* the returned object will be: {font: ['fonts/a.ttf'], image: ['images/b.jpg']}
3333
*/
34-
export default function groupFilesByType(assets) {
34+
export default function groupFilesByType(assets: Array<string>) {
3535
return groupBy(assets, type => mime.lookup(type).split('/')[0]);
3636
}

packages/cli/src/commands/link/ios/copyAssets.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @format
88
*/
99

10-
import fs from 'fs-extra';
10+
import fs from 'fs';
1111
import path from 'path';
1212
import xcode from 'xcode';
1313
import groupFilesByType from '../groupFilesByType';

packages/cli/src/commands/link/ios/unlinkAssets.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
*/
88

9-
import fs from 'fs-extra';
9+
import fs from 'fs';
1010
import path from 'path';
1111
import xcode from 'xcode';
1212
import {difference} from 'lodash';

packages/cli/src/commands/server/jsPackagerClient.js

Lines changed: 0 additions & 121 deletions
This file was deleted.

0 commit comments

Comments
 (0)