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

[FEATURE] Add 'libraryLessGenerator' processor #560

Merged
merged 13 commits into from
Dec 17, 2020

Conversation

matz3
Copy link
Member

@matz3 matz3 commented Dec 9, 2020

JIRA: CPOUI5FOUNDATION-264

@matz3 matz3 added the enhancement New feature or request label Dec 9, 2020
@coveralls
Copy link

coveralls commented Dec 9, 2020

Coverage Status

Coverage increased (+0.06%) to 93.252% when pulling 6c1c582 on libraryLessGenerator into 6d44481 on master.

@matz3 matz3 marked this pull request as ready for review December 14, 2020 15:01
lib/processors/libraryLessGenerator.js Outdated Show resolved Hide resolved
lib/processors/libraryLessGenerator.js Show resolved Hide resolved
lib/processors/libraryLessGenerator.js Outdated Show resolved Hide resolved
lib/processors/libraryLessGenerator.js Outdated Show resolved Hide resolved
@RandomByte RandomByte dismissed their stale review December 15, 2020 19:17

All remarks resolved

sinon.restore();
});

test.serial("processor", async (t) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is .serial actually necessary?

@RandomByte
Copy link
Member

I'm mostly fine with this change. But as discussed, we should rather merge it into a dedicated branch where we can then add the corresponding generateThemeDesignerResources task and merge everything into master once it's all done and tested 👍


const IMPORT_PATTERN = /@import .*"(.*)";/g;
const BASE_LESS_PATTERN = /^\/resources\/sap\/ui\/core\/themes\/([^/]+)\/base\.less$/;
const GLOBAL_LESS_PATTERN = /^\/resources\/sap\/ui\/core\/themes\/([^/]+)\/global\.(less|css)$/;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The global.css was only relevant for old themes.
The only reference I could still find is in "sap_platinum" which has been removed with 1.48, so I think it's save to also not handle it in here.

@matz3 matz3 requested a review from KlattG December 16, 2020 15:01
KlattG
KlattG previously approved these changes Dec 17, 2020
Copy link
Contributor

@KlattG KlattG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one small suggestion, otherwise LG

lib/processors/libraryLessGenerator.js Outdated Show resolved Hide resolved
@matz3 matz3 changed the base branch from master to generateThemeDesignerResources December 17, 2020 09:44
@matz3 matz3 merged commit 8a7dc8f into generateThemeDesignerResources Dec 17, 2020
@matz3 matz3 deleted the libraryLessGenerator branch December 17, 2020 09:58
@matz3
Copy link
Member Author

matz3 commented Dec 17, 2020

Merged into generateThemeDesignerResources branch. Will be merged into master as part of #565.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants