Skip to content

Commit

Permalink
clean up legacy even more
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Feb 1, 2020
1 parent 02ddfe7 commit 8bcc3bf
Show file tree
Hide file tree
Showing 93 changed files with 53 additions and 342 deletions.
11 changes: 11 additions & 0 deletions packages/material-ui-icons/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import rimraf from 'rimraf';
import Mustache from 'mustache';
import Queue from 'modules/waterfall/Queue';
import util from 'util';
import intersection from 'lodash/intersection';
import glob from 'glob';
import SVGO from 'svgo';

Expand Down Expand Up @@ -238,6 +239,16 @@ export async function main(options) {
queue.push(svgPaths);
await queue.wait({ empty: true });

let legacyFiles = await globAsync(path.join(__dirname, '/legacy', '*.js'));
legacyFiles = legacyFiles.map(file => path.basename(file));
let generatedFiles = await globAsync(path.join(options.outputDir, '*.js'));
generatedFiles = generatedFiles.map(file => path.basename(file));

if (intersection(legacyFiles, generatedFiles).length > 0) {
console.warn(intersection(legacyFiles, generatedFiles));
throw new Error('Duplicated icons in legacy folder');
}

await fse.copy(path.join(__dirname, '/legacy'), options.outputDir);
await fse.copy(path.join(__dirname, '/custom'), options.outputDir);

Expand Down
6 changes: 0 additions & 6 deletions packages/material-ui-icons/legacy/AddLocation.js

This file was deleted.

6 changes: 0 additions & 6 deletions packages/material-ui-icons/legacy/AddLocationOutlined.js

This file was deleted.

6 changes: 0 additions & 6 deletions packages/material-ui-icons/legacy/AddLocationRounded.js

This file was deleted.

6 changes: 0 additions & 6 deletions packages/material-ui-icons/legacy/AddLocationSharp.js

This file was deleted.

6 changes: 0 additions & 6 deletions packages/material-ui-icons/legacy/AddLocationTwoTone.js

This file was deleted.

6 changes: 0 additions & 6 deletions packages/material-ui-icons/legacy/AlternateEmail.js

This file was deleted.

6 changes: 0 additions & 6 deletions packages/material-ui-icons/legacy/AlternateEmailOutlined.js

This file was deleted.

6 changes: 0 additions & 6 deletions packages/material-ui-icons/legacy/AlternateEmailRounded.js

This file was deleted.

6 changes: 0 additions & 6 deletions packages/material-ui-icons/legacy/AlternateEmailSharp.js

This file was deleted.

6 changes: 0 additions & 6 deletions packages/material-ui-icons/legacy/AlternateEmailTwoTone.js

This file was deleted.

6 changes: 0 additions & 6 deletions packages/material-ui-icons/legacy/Domain.js

This file was deleted.

6 changes: 0 additions & 6 deletions packages/material-ui-icons/legacy/DomainOutlined.js

This file was deleted.

6 changes: 0 additions & 6 deletions packages/material-ui-icons/legacy/DomainRounded.js

This file was deleted.

6 changes: 0 additions & 6 deletions packages/material-ui-icons/legacy/DomainSharp.js

This file was deleted.

6 changes: 0 additions & 6 deletions packages/material-ui-icons/legacy/DomainTwoTone.js

This file was deleted.

6 changes: 0 additions & 6 deletions packages/material-ui-icons/legacy/EditLocation.js

This file was deleted.

6 changes: 0 additions & 6 deletions packages/material-ui-icons/legacy/EditLocationOutlined.js

This file was deleted.

6 changes: 0 additions & 6 deletions packages/material-ui-icons/legacy/EditLocationRounded.js

This file was deleted.

6 changes: 0 additions & 6 deletions packages/material-ui-icons/legacy/EditLocationSharp.js

This file was deleted.

6 changes: 0 additions & 6 deletions packages/material-ui-icons/legacy/EditLocationTwoTone.js

This file was deleted.

2 changes: 1 addition & 1 deletion packages/material-ui-icons/legacy/LocationOffOutlined.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import React from 'react';
import createSvgIcon from './utils/createSvgIcon';

export default createSvgIcon(
<React.Fragment><path d="M12 4c2.76 0 5 2.24 5 5 0 1.06-.39 2.32-1 3.62l1.49 1.49C18.37 12.36 19 10.57 19 9c0-3.87-3.13-7-7-7-1.84 0-3.5.71-4.75 1.86l1.43 1.43C9.56 4.5 10.72 4 12 4zm0 2.5c-.59 0-1.13.21-1.56.56l3.5 3.5c.35-.43.56-.97.56-1.56 0-1.38-1.12-2.5-2.5-2.5zM3.41 2.86L2 4.27l3.18 3.18C5.07 7.95 5 8.47 5 9c0 5.25 7 13 7 13s1.67-1.85 3.38-4.35L18.73 21l1.41-1.41L3.41 2.86zM12 18.88c-2.01-2.58-4.8-6.74-4.98-9.59l6.92 6.92c-.65.98-1.33 1.89-1.94 2.67z" /></React.Fragment>
<path d="M12 4c2.76 0 5 2.24 5 5 0 1.06-.39 2.32-1 3.62l1.49 1.49C18.37 12.36 19 10.57 19 9c0-3.87-3.13-7-7-7-1.84 0-3.5.71-4.75 1.86l1.43 1.43C9.56 4.5 10.72 4 12 4zm0 2.5c-.59 0-1.13.21-1.56.56l3.5 3.5c.35-.43.56-.97.56-1.56 0-1.38-1.12-2.5-2.5-2.5zM3.41 2.86L2 4.27l3.18 3.18C5.07 7.95 5 8.47 5 9c0 5.25 7 13 7 13s1.67-1.85 3.38-4.35L18.73 21l1.41-1.41L3.41 2.86zM12 18.88c-2.01-2.58-4.8-6.74-4.98-9.59l6.92 6.92c-.65.98-1.33 1.89-1.94 2.67z" />
, 'LocationOffOutlined');
2 changes: 1 addition & 1 deletion packages/material-ui-icons/legacy/LocationOffRounded.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import React from 'react';
import createSvgIcon from './utils/createSvgIcon';

export default createSvgIcon(
<React.Fragment><path d="M2.71 3.56c-.39.39-.39 1.02 0 1.41l2.47 2.47C5.07 7.95 5 8.47 5 9c0 4.17 4.42 9.92 6.23 12.11.4.48 1.13.48 1.53 0 .65-.78 1.62-2.01 2.61-3.46l2.65 2.65c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L4.12 3.56a.9959.9959 0 0 0-1.41 0zM12 2c-1.84 0-3.5.71-4.75 1.86l3.19 3.19c.43-.34.97-.55 1.56-.55 1.38 0 2.5 1.12 2.5 2.5 0 .59-.21 1.13-.56 1.56l3.55 3.55C18.37 12.36 19 10.57 19 9c0-3.87-3.13-7-7-7z" /></React.Fragment>
<path d="M2.71 3.56c-.39.39-.39 1.02 0 1.41l2.47 2.47C5.07 7.95 5 8.47 5 9c0 4.17 4.42 9.92 6.23 12.11.4.48 1.13.48 1.53 0 .65-.78 1.62-2.01 2.61-3.46l2.65 2.65c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L4.12 3.56a.9959.9959 0 0 0-1.41 0zM12 2c-1.84 0-3.5.71-4.75 1.86l3.19 3.19c.43-.34.97-.55 1.56-.55 1.38 0 2.5 1.12 2.5 2.5 0 .59-.21 1.13-.56 1.56l3.55 3.55C18.37 12.36 19 10.57 19 9c0-3.87-3.13-7-7-7z" />
, 'LocationOffRounded');
2 changes: 1 addition & 1 deletion packages/material-ui-icons/legacy/LocationOffSharp.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import React from 'react';
import createSvgIcon from './utils/createSvgIcon';

export default createSvgIcon(
<React.Fragment><path d="M3.41 2.86L2 4.27l3.18 3.18C5.07 7.95 5 8.47 5 9c0 5.25 7 13 7 13s1.67-1.85 3.38-4.35L18.73 21l1.41-1.41L3.41 2.86zM12 2c-1.84 0-3.5.71-4.75 1.86l3.19 3.19c.43-.34.97-.55 1.56-.55 1.38 0 2.5 1.12 2.5 2.5 0 .59-.21 1.13-.56 1.56l3.55 3.55C18.37 12.36 19 10.57 19 9c0-3.87-3.13-7-7-7z" /></React.Fragment>
<path d="M3.41 2.86L2 4.27l3.18 3.18C5.07 7.95 5 8.47 5 9c0 5.25 7 13 7 13s1.67-1.85 3.38-4.35L18.73 21l1.41-1.41L3.41 2.86zM12 2c-1.84 0-3.5.71-4.75 1.86l3.19 3.19c.43-.34.97-.55 1.56-.55 1.38 0 2.5 1.12 2.5 2.5 0 .59-.21 1.13-.56 1.56l3.55 3.55C18.37 12.36 19 10.57 19 9c0-3.87-3.13-7-7-7z" />
, 'LocationOffSharp');
2 changes: 1 addition & 1 deletion packages/material-ui-icons/legacy/LocationOffTwoTone.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import React from 'react';
import createSvgIcon from './utils/createSvgIcon';

export default createSvgIcon(
<React.Fragment><path d="M17 9c0 1.06-.39 2.32-1 3.62l1.49 1.49C18.37 12.36 19 10.57 19 9c0-3.87-3.13-7-7-7-1.84 0-3.5.71-4.75 1.86l1.43 1.43C9.56 4.5 10.72 4 12 4c2.76 0 5 2.24 5 5zm-5-2.5c-.59 0-1.13.21-1.56.56l3.5 3.5c.35-.43.56-.97.56-1.56 0-1.38-1.12-2.5-2.5-2.5zM3.41 2.86L2 4.27l3.18 3.18C5.07 7.95 5 8.47 5 9c0 5.25 7 13 7 13s1.67-1.85 3.38-4.35L18.73 21l1.41-1.41L3.41 2.86zM12 18.88c-2.01-2.58-4.8-6.74-4.98-9.59l6.92 6.92c-.65.98-1.33 1.89-1.94 2.67z" /></React.Fragment>
<path d="M17 9c0 1.06-.39 2.32-1 3.62l1.49 1.49C18.37 12.36 19 10.57 19 9c0-3.87-3.13-7-7-7-1.84 0-3.5.71-4.75 1.86l1.43 1.43C9.56 4.5 10.72 4 12 4c2.76 0 5 2.24 5 5zm-5-2.5c-.59 0-1.13.21-1.56.56l3.5 3.5c.35-.43.56-.97.56-1.56 0-1.38-1.12-2.5-2.5-2.5zM3.41 2.86L2 4.27l3.18 3.18C5.07 7.95 5 8.47 5 9c0 5.25 7 13 7 13s1.67-1.85 3.38-4.35L18.73 21l1.41-1.41L3.41 2.86zM12 18.88c-2.01-2.58-4.8-6.74-4.98-9.59l6.92 6.92c-.65.98-1.33 1.89-1.94 2.67z" />
, 'LocationOffTwoTone');
2 changes: 1 addition & 1 deletion packages/material-ui-icons/legacy/LocationOnRounded.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import React from 'react';
import createSvgIcon from './utils/createSvgIcon';

export default createSvgIcon(
<React.Fragment><path d="M12 2C8.13 2 5 5.13 5 9c0 4.17 4.42 9.92 6.24 12.11.4.48 1.13.48 1.53 0C14.58 18.92 19 13.17 19 9c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" /></React.Fragment>
<path d="M12 2C8.13 2 5 5.13 5 9c0 4.17 4.42 9.92 6.24 12.11.4.48 1.13.48 1.53 0C14.58 18.92 19 13.17 19 9c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" />
, 'LocationOnRounded');
2 changes: 1 addition & 1 deletion packages/material-ui-icons/legacy/LocationOnSharp.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import React from 'react';
import createSvgIcon from './utils/createSvgIcon';

export default createSvgIcon(
<React.Fragment><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" /></React.Fragment>
<path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" />
, 'LocationOnSharp');
6 changes: 0 additions & 6 deletions packages/material-ui-icons/legacy/NotListedLocation.js

This file was deleted.

This file was deleted.

6 changes: 0 additions & 6 deletions packages/material-ui-icons/legacy/NotListedLocationRounded.js

This file was deleted.

6 changes: 0 additions & 6 deletions packages/material-ui-icons/legacy/NotListedLocationSharp.js

This file was deleted.

6 changes: 0 additions & 6 deletions packages/material-ui-icons/legacy/NotListedLocationTwoTone.js

This file was deleted.

6 changes: 0 additions & 6 deletions packages/material-ui-icons/legacy/PersonPinCircle.js

This file was deleted.

6 changes: 0 additions & 6 deletions packages/material-ui-icons/legacy/PersonPinCircleOutlined.js

This file was deleted.

6 changes: 0 additions & 6 deletions packages/material-ui-icons/legacy/PersonPinCircleRounded.js

This file was deleted.

Loading

0 comments on commit 8bcc3bf

Please sign in to comment.