![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@gitlab/duo-ui
Advanced tools
Duo UI is a library that is home to all Duo Components which are shared across multiple Host systems.
To use Duo UI in your project, add it as a dependency:
yarn add @gitlab/duo-ui
Note: Make sure to also install Duo UI's peer dependencies. Refer to the
package.json
for the list of peer dependencies and their expected versions.
Note: Duo UI isn't designed to be built on Windows natively. Either WSL or GitPod can be used to set up a UNIX-like environment in which to build it.
Make sure you have Node 16.x (LTS) and Yarn 1.22 or newer.
# Clone the project
git clone git@gitlab.com:gitlab-org/duo-ui.git
# Navigate to the root of the project
cd duo-ui
# Install all the dependencies of the project
yarn # or yarn install
# Build and launch storybook to see the components in the browser
yarn storybook
Go to http://localhost:9001/
Components’ unit tests live in the tests/components
. The tests are organized following the same
directory structure used to organize components.
yarn test:unit
runs all unit tests.
yarn test:unit:watch
runs all unit tests in watch mode.
yarn test:unit:debug
runs all unit tests and allow to attach a debugger to the test runner process.
yarn jest [name_pattern]
runs spec files that match the specified name pattern.
yarn jest datepicker
will match all spec files with a name that contains the word datepicker.
yarn jest datepicker -t "when draw event is emitted"
goes a step further and only runs the test
with a description that matches the argument passed to the t
flag.
Duo UI uses visual snapshot tests to prevent introducing regressions with CSS and layout changes on components. Read more on this in the visual testing documentation.
Components’ end to end tests live in the cypress/e2e
folder. See our
end to end testing documentation for more details.
yarn run cypress open
runs Cypress locally to run end to end tests.
See Updating Duo UI Packages for information on how the
@gitlab/duo-ui
package is kept up to date in various projects.
Please refer to CONTRIBUTING.md for details on how to add new components and contribute in general to Duo UI.
Any question? Have a look at our FAQ.md, you might find the answer there.
FAQs
Duo UI Components
The npm package @gitlab/duo-ui receives a total of 63,643 weekly downloads. As such, @gitlab/duo-ui popularity was classified as popular.
We found that @gitlab/duo-ui demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.