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

refactor(icons): flatten dist directory #2425

Merged
merged 2 commits into from
Nov 2, 2020
Merged

Conversation

ilhan007
Copy link
Member

@ilhan007 ilhan007 commented Oct 30, 2020

Change the distribution path of all individual icons, which changes all icons' public imports, by bringing the icons modules one level up and removing the additional dist/icons folder.
And remove the assumption for multiple collections in the icons package by removing the icon-collections folder and moving the SAP-icons.json file: icons/src/icon-collections/SAP-icons.jsonpackages/icons/src/SAP-icons.json.
Add options to the build config script to be used by the upcoming new icons-tnt, while the icons` can use the default config.

Old:

import "@ui5/webcomponents-icons/dist/icons/accept.js";

New:

import "@ui5/webcomponents-icons/dist/accept.js";

BREAKING_CHANGE: All icons imports are changed. The individual icons modules are available in the icon package's "dist" folder. If you previously had import "@ui5/webcomponents-icons/dist/icons/accept.js", now it becomes import "@ui5/webcomponents-icons/dist/accept.js";

@ilhan007 ilhan007 merged commit c84bc8b into master Nov 2, 2020
@ilhan007 ilhan007 deleted the flattern-icons-dirs branch November 2, 2020 10:47
ilhan007 added a commit that referenced this pull request Nov 11, 2020
Change the distribution path of all individual `icons`, which changes all icons' public imports, by bringing the icons modules one level up and removing the additional "icons" folder:
```js
import "@ui5/webcomponents-icons/dist/accept.js";
```

BREAKING_CHANGE: All icons imports are changed. The individual icons modules are available in the icon package's "dist" folder. If you previously had `import "@ui5/webcomponents-icons/dist/icons/accept.js"`, now it becomes `import "@ui5/webcomponents-icons/dist/accept.js";`
ilhan007 added a commit that referenced this pull request Nov 19, 2020
Change the distribution path of all individual `icons`, which changes all icons' public imports, by bringing the icons modules one level up and removing the additional "icons" folder:
```js
import "@ui5/webcomponents-icons/dist/accept.js";
```

BREAKING_CHANGE: All icons imports are changed. The individual icons modules are available in the icon package's "dist" folder. If you previously had `import "@ui5/webcomponents-icons/dist/icons/accept.js"`, now it becomes `import "@ui5/webcomponents-icons/dist/accept.js";`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants