Socket
Socket
Sign inDemoInstall

@workday/canvas-kit-codemod

Package Overview
Dependencies
299
Maintainers
6
Versions
938
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @workday/canvas-kit-codemod

A collection of codemods for use on Workday Canvas Kit packages.


Version published
Weekly downloads
2.5K
increased by5.18%
Maintainers
6
Install size
17.8 MB
Created
Weekly downloads
 

Changelog

Source

v10.3.33 (2024-04-15)

Documentation

  • docs: Improve the "accessible" example of loading dots (#2673) (@williamjstanton, @RayRedGoose, @NicholasBoll) Accessible LoadingDots example has been updated, by changing background to a darker color that allows soap400 to meet the minimum 3:1 contrast ratio and adding better screen reader support with the AriaLiveRegion component.

Readme

Source

Canvas Kit Codemods

This package is designed to help you migrate between major versions of Canvas Kit and adopt API changes.

Usage

> npx @workday/canvas-kit-codemod <transform> [path]
Commands (transforms):
  canvas-kit-codemod v5 [path]  Canvas Kit v4 > v5 migration transform

Options:
  --ignore-config,  Ignore files if they match patterns sourced from a config file [string]
  --ignore-pattern, Ignore files that match a provided glob expression             [string] [default: **/node_modules/**]
  --verbose,        Show more information about the transform process              [number] [choices: 0, 1, 2] [default: 0]
  -v, --version     Show version number                                            [boolean]
  -h, --help        Show help                                                      [boolean]

Note: These codemods only work on .js, .jsx, .ts, and .tsx extensions. You may need to make some manual changes in other file types (.json, .mdx, .md, etc.).

Note: You may need to run your linter after executing the codemod, as it's resulting formatting (spacing, quotes, etc.) may not match your project's styling.

Installation

Alternatively, you can install the codemod package and run it without npx.

> yarn add @workday/canvas-kit-codemod
> canvas-kit-codemod <transform> [path]

Options

Ignore Config

If you'd like to provide a configuration for files to ignore instead of a glob, use --ignore-config.

> canvas-kit-codemod <transform> [path] --ignore-config=.gitignore

Ignore Pattern

If you'd like to provide a glob to ignore files, use --ignore-pattern. By default, this is set to ignore all node_modules directories.

> canvas-kit-codemod <transform> [path] --ignore-pattern=**/dist/**

Verbose

If you'd like to have more verbose logging to know which files are being parsed, use --verbose. By default this is set to 0.

# See all files being parsed
> canvas-kit-codemod <transform> [path] --verbose=2

Keywords

FAQs

Last updated on 15 Apr 2024

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc