-
Notifications
You must be signed in to change notification settings - Fork 27
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
Dependency Checker will parse CSS files #516
Conversation
* @returns {Array.<String>|undefined} | ||
*/ | ||
function parsePostCSS( fileContent, filePath, dependencies ) { | ||
const matchedImports = fileContent.match( /^@import "(@ckeditor\/[^/]+)[^"]+";/mg ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why only @ckeditor/*
packages?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now it checks everything.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It means – relative file imports, scoped and non-scoped packages.
Suggested merge commit message (convention)
Other: Introduced a parser for
*.css
files. Now it will check CSS files and if some package is missing, it will be printed by the dependency checker script. See ckeditor/ckeditor5#1662.