Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove some unused files #217

Merged
merged 1 commit into from
Mar 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions commitlint.config.js

This file was deleted.

1 change: 0 additions & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"errorhandler": "^1.5.0",
"escape-string-regexp": "^1.0.5",
"execa": "^1.0.0",
"fs-extra": "^1.0.0",
"glob": "^7.1.1",
"graceful-fs": "^4.1.3",
"inquirer": "^3.0.6",
Expand Down
11 changes: 7 additions & 4 deletions packages/cli/src/commands/link/android/copyAssets.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
* @flow
*/

import fs from 'fs-extra';
import fs from 'fs';
import path from 'path';
import groupFilesByType from '../groupFilesByType';

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

(assets.font || []).forEach(asset =>
fs.copySync(
fs.copyFileSync(
asset,
path.join(project.assetsPath, 'fonts', path.basename(asset)),
),
Expand Down
17 changes: 0 additions & 17 deletions packages/cli/src/commands/link/android/fs.js

This file was deleted.

2 changes: 1 addition & 1 deletion packages/cli/src/commands/link/android/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
* @flow
*/

import isInstalled from './isInstalled';
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/link/android/unlinkAssets.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @format
*/

import fs from 'fs-extra';
import fs from 'fs';
import path from 'path';
import groupFilesByType from '../groupFilesByType';

Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/commands/link/groupFilesByType.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
* @flow
*/

import {groupBy} from 'lodash';
Expand All @@ -31,6 +31,6 @@ mime.define({
* Given an array ['fonts/a.ttf', 'images/b.jpg'],
* the returned object will be: {font: ['fonts/a.ttf'], image: ['images/b.jpg']}
*/
export default function groupFilesByType(assets) {
export default function groupFilesByType(assets: Array<string>) {
return groupBy(assets, type => mime.lookup(type).split('/')[0]);
}
2 changes: 1 addition & 1 deletion packages/cli/src/commands/link/ios/copyAssets.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @format
*/

import fs from 'fs-extra';
import fs from 'fs';
import path from 'path';
import xcode from 'xcode';
import groupFilesByType from '../groupFilesByType';
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/link/ios/unlinkAssets.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
*/

import fs from 'fs-extra';
import fs from 'fs';
import path from 'path';
import xcode from 'xcode';
import {difference} from 'lodash';
Expand Down
121 changes: 0 additions & 121 deletions packages/cli/src/commands/server/jsPackagerClient.js

This file was deleted.