@userway/cicd-core
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

@userway/cicd-core is a component of UserWay CI/CD (Continuous Accessibility) infrastructure. This library encapsulates client-side integration logic with the Continuous Accessibility backend and triggers accessibility analysis. It glues UserWay CI/CD E2E integrations (like @userway/a11y-cypress) and UserWay CI/CD backend. The primary function is to collect a11y reports generated during CI/CD pipeline execution and trigger analysis via the UserWay CI/CD API. @userway/cicd-core exposes API and is used by multiple Continuous Accessibility extensions:

It is recommended that one of those extensions be used in most cases, but developers can install and use @userway/cicd-core directly to trigger Continuous Accessibility analysis programmatically.

Installation of @userway/cicd-core npm package

npm install --save-dev @userway/cicd-core

Usage example

import { scan } from '@userway/cicd-core';

const scanResult: Scan = await scan({
    organization: 'YOUR-CICD-ORGANIZATION-SLUG',
    project: 'YOUR-CICD-PROJECT-NAME',
    token: 'YOUR-CICD-PROJECT-TOKEN',
    reportPaths: ['./uw-a11y-reports']
});

Readme

Keywords

none

Package Sidebar

Install

npm i @userway/cicd-core

Weekly Downloads

574

Version

0.1.3

License

none

Unpacked Size

1.9 MB

Total Files

6

Last publish

Collaborators

  • userway-dev