Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@loophq/design-system
Advanced tools
npm i -S @loophq/design-system focus-visible
Focus-visible is a polyfill for the :focus-visible pseudo-class and needs to be installed as a peer dependency. Vue 2.6 is also a peer dependency, we're assuming you have that installed already. :)
In your entry point (src/main.js for a standard vue-cli project), put these two lines at the top:
import 'focus-visible';
import '@loophq/design-system/dist/loop-design-system.css';
focus-visible
is used to manage all focus styles. If you don't include this line, the library will fall back to the browser focus styles. The CSS file needs to be included, it contains all of the CSS custom properties and component CSS for the design system. If you'd like to change a variable (there are a few theme variables), we recommend importing this file here as a base and then overwriting it in your own global css file. This should be imported before your App.vue
;
Components can be imported via named imports:
import { BaseCard } from '@loophq/design-system';
To import all and register globally (not recommended), put this in your main.js:
import LoopComponents from '@loophq/design-system';
Vue.use(LoopComponents);
npm i
This spins up a local storybook server and runs unit tests in parallel, recompiling and rerunning relevant tests where needed.
npm run dev
npm run library:build
Change version number in package.json
npm libary:publish -- <version> next
Makes sure to push the updates that npm makes when publishing to your release branch before merging into main.
npm run build-storybook
If this is your first time releasing, ask in the engineering team channel to be added to the loop npm organization. Make sure you log in to npm in your terminal as well.
On your machine, check out the branch you'd like to release. This can either be a feature branch or a release branch if you have multiple features to package together as a release. This branch should be PRed into main
and be approved by a peer before releasing.
Compile the component library
npm run library:build
(Optional) Commit any file changes the build script made. This is not always necessary but when adding new components this will generally be necessary.
Figure out the version number this release will be. We follow SemVer, and the general rule of thumb is that if you're adding new components, bump the minor version, everything else should just bump the patch version. Major versions bumps are rare and should be a team decision.
Publish the library to npm. Make sure you are on the branch you intend to release, this will modify your package.json
and you MUST be on a non-main
branch for this to be mergeable.
npm run library:publish -- <version> <tag>
Push all changes the build and release scripts made to Github.
In Github, merge the release branch into main.
FAQs
## Installation (into another repo)
The npm package @loophq/design-system receives a total of 0 weekly downloads. As such, @loophq/design-system popularity was classified as not popular.
We found that @loophq/design-system 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.