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

Dependency Checker will parse CSS files #516

Merged
merged 5 commits into from
Apr 17, 2019
Merged

Dependency Checker will parse CSS files #516

merged 5 commits into from
Apr 17, 2019

Conversation

pomek
Copy link
Member

@pomek pomek commented Apr 14, 2019

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.

@pomek pomek requested a review from Reinmar April 14, 2019 11:47
@coveralls
Copy link

coveralls commented Apr 14, 2019

Coverage Status

Coverage remained the same at 89.129% when pulling 0e15b51 on t/depcheck into eeb5819 on master.

* @returns {Array.<String>|undefined}
*/
function parsePostCSS( fileContent, filePath, dependencies ) {
const matchedImports = fileContent.match( /^@import "(@ckeditor\/[^/]+)[^"]+";/mg );
Copy link
Member

Choose a reason for hiding this comment

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

Why only @ckeditor/* packages?

Copy link
Member Author

Choose a reason for hiding this comment

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

Now it checks everything.

Copy link
Member Author

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.

@Reinmar Reinmar merged commit 55f2e98 into master Apr 17, 2019
@Reinmar Reinmar deleted the t/depcheck branch April 17, 2019 11:30
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.

4 participants