@ukic/codemod

1.1.0 • Public • Published

Codemod

This script is used to modify files which use ICDS components to upgrade from v2 to v3 of the ICDS library.

What is this used for

This codemod has been developed to help users migrate from v2 of ICDS components to v3.

Given a directory, it will scan over files and find any relevant ICDS components that require a change either by component name or props used.

How to run

This package will be usable as an executable, requiring a directory and optional test boolean argument to cover tests

- npx @ukic/codemod <dir> <test>

Options:

  --dir     Directory your project is located in using ICDS components
    [string]
  --test   By default testing is false (with exception of types)
    [boolean]: true | false                                            

Examples:

With tests

- npx @ukic/codemod --dir ./#path/app/src/components --test true

Without tests

- npx @ukic/codemod --dir ./#path/app/src/components

Contributing

We have a couple of resources to help you with contributing.

Security

If you've found a vulnerability, we want to know so that we can fix it. Our security policy tells you how to do this.

Questions about the departments

The team is only able to talk about the projects we've put on GitHub 🕵️. We unfortunately can't talk about the work of our departments 😢.

Visit our websites to learn more about:

License

Unless stated otherwise, the codebase is released under the MIT License. This covers both the codebase and any sample code in the documentation. The documentation is and available under the terms of the Open Government License v3.0.

© Crown copyright 2022

Readme

Keywords

none

Package Sidebar

Install

npm i @ukic/codemod

Weekly Downloads

66

Version

1.1.0

License

MIT

Unpacked Size

31.5 kB

Total Files

15

Last publish

Collaborators

  • mi6-255
  • gchqdeveloper741
  • gchqdeveloper847