1.2.0 • Published 5 months ago

@orderly.network/codemod v1.2.0

Weekly downloads
-
License
-
Repository
-
Last release
5 months ago

Orderly Codemod

orderly-codemod is a command-line tool to help you migrate the package import and OrderlyAppProvider configuration from v1 to v2

Usage

npx @orderly.network/codemod [OPTION] PATH
  • PATH: Specifies the file or directory path to be transformed (required).

Options

  • -p, --parser <string>
    Specifies the parser for source files. Supported options:

    • babel
    • babylon
    • flow
    • ts
    • tsx

    Default: tsx.

    Please note that when using TypeScript, you need to use the tsx parser; otherwise, the codemod cannot be correctly applied!

  • --ext, --extensions <string>
    Specifies file extensions to transform, with multiple extensions separated by commas. Default: tsx.

  • -i, --ignore <string>
    Specifies a glob pattern to ignore files. Default: node_modules.

Examples

  • Scan all .tsx files in a specified directory with default settings:

    npx @orderly.network/codemod src/
  • Custom extensions:

    npx @orderly.network/codemod --extensions jsx src/
  • Ignore files in the dist folder:

    npx @orderly.network/codemod --ignore dist src/

Note: Applying a codemod may disrupt your existing code formatting, so don’t forget to run prettier and/or eslint after applying the codemod!

Help

Run the following command to display help information:

npx @orderly.network/codemod --help

Error Handling

If no file or directory path is provided, the tool will display an error message:

Error: You have to provide at least one file/directory to transform.
1.2.0

5 months ago

1.2.0-alpha.0

5 months ago

1.1.3

5 months ago

1.1.3-alpha.0

5 months ago

1.1.2

5 months ago

1.1.2-alpha.0

5 months ago

1.1.1

6 months ago

1.1.1-alpha.0

6 months ago

1.1.0

6 months ago

1.0.7-alpha.0

6 months ago

1.0.6

7 months ago

1.0.6-alpha.0

7 months ago

1.0.5

8 months ago

1.0.5-alpha.0

8 months ago

1.0.4

8 months ago

1.0.4-alpha.0

8 months ago

1.0.3

8 months ago

1.0.3-alpha.0

8 months ago

1.0.2

9 months ago

1.0.2-alpha.0

9 months ago

1.0.1

10 months ago

1.0.1-alpha.0

10 months ago

1.0.1-preview.3

10 months ago

1.0.1-preview.2

10 months ago

1.0.1-preview.1

10 months ago

1.0.1-preview.0

10 months ago

1.0.1-alpha.3

11 months ago

1.0.1-alpha.2

11 months ago

1.0.1-alpha.1

11 months ago