Socket
Socket
Sign inDemoInstall

@lmc-eu/spirit-codemods

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lmc-eu/spirit-codemods

Codemods scripts for Spirit Design System packages


Version published
Weekly downloads
0
Maintainers
0
Weekly downloads
 
Created
Source

@lmc-eu/spirit-codemods

Codemods for migration to the newer version of the Spirit Design library.

spirit-codemods is a CLI tool designed to assist you in migrating to the latest version of our Spirit Design System library. This tool efficiently handles the removal of breaking changes and deprecations with simple commands.

For React transformations, it utilizes the jscodeshift library.

Install

No installation of this package is necessary; you can run it using npx.

Usage

To view the available arguments for this package, use -h or --help as shown in the example below:

npx @lmc-eu/spirit-codemods -h

There are two mandatory arguments: -p/--path and -t/--transformation. The former specifies the directory path where you want to execute transforms, while the latter specifies the desired codemod to run.

npx @lmc-eu/spirit-codemods -p ./ -t v2/web-react/<codemod-name>

Other optional arguments include:

  • -v/--version - Displays current version
  • -h/--help - Displays this message
  • -e/--extensions - Extensions of the transformed files, default: ts,tsx,js,jsx
  • --parser - Parser to use (babel, ts, tsx, flow), default: tsx
  • --ignore - Ignore files or directories, default: **/node_modules/**

For example, this could be the command you will run:

npx @lmc-eu/spirit-codemods -p ./src -t v2/web-react/fileuploader-prop-names -e js,jsx --parser babel

Available Scripts

Keywords

FAQs

Package last updated on 09 Sep 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc