Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
@preply/ds-visual-coverage-core
Advanced tools
@preply/ds-visual-coverage-core
Generic utils useful to count the Design System visual coverage.
See @preply/ds-visual-coverage-web and @preply/ds-visual-coverage-rn for platform-specific tools.
tl;dr:
Provide all the utils to count the Design System visual coverage.
As a reminder, the general idea is to
To visualize it: think of a page like the following, where we highlight outline the components (green = DS components, red = non-DS components)
🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
🟥⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️🟥
🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️
🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
🟥⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️🟥
🟥⬛️🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩⬛️🟥
🟥⬛️🟩⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️🟩⬛️🟥
🟥⬛️🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩⬛️🟥
🟥⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️🟥
🟥⬛️⬛️⬛️⬛️⬛️⬛️🟩🟩🟩🟩🟩⬛️🟩🟩🟩🟩🟩⬛️🟥
🟥⬛️⬛️⬛️⬛️⬛️⬛️🟩⬛️⬛️⬛️🟩⬛️🟩⬛️⬛️⬛️🟩⬛️🟥
🟥⬛️⬛️⬛️⬛️⬛️⬛️🟩🟩🟩🟩🟩⬛️🟩🟩🟩🟩🟩⬛️🟥
🟥⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️🟥
🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥
🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩
🟩⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️🟩
🟩⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️🟩
🟩⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️⬛️🟩
🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩
the visual coverage utils convert them to an array like
[
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,0,
0,-,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,-,0,
0,-,1,-,-,-,-,-,-,-,-,-,-,-,-,-,-,1,-,0,
0,-,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,-,0,
0,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,0,
0,-,-,-,-,-,-,1,1,1,1,1,-,1,1,1,1,1,-,0,
0,-,-,-,-,-,-,1,-,-,-,1,-,1,-,-,-,1,-,0,
0,-,-,-,-,-,-,1,1,1,1,1,-,1,1,1,1,1,-,0,
0,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
1,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,1,
1,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,1,
1,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,1,
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
]
and then counts the coverage %.
You probably want to execute yarn dev
in the root, as per instructions in @preply/ds-workspace.
For quicker - and more focused - feedback, you can also directly use the scripts in this package directory, but make sure you have first executed yarn build
in root, or that you have the root yarn dev
script running in the background.
Install CodeTour and follow the platform-specific "visual coverage walkthrough" CodeTours.
FAQs
Unknown package
The npm package @preply/ds-visual-coverage-core receives a total of 3,162 weekly downloads. As such, @preply/ds-visual-coverage-core popularity was classified as popular.
We found that @preply/ds-visual-coverage-core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.