Skip to content

Patch Javascript / Typescript Step #28

Description

@LorisRue

What problem does this solve?

Editing Js/Ts files via patchText might be a little bit sketchy.

Proposed Solution

Make a step to edit .js/.ts files in a similar way to patchJson step by using the Abstract Syntax Tree used during js precompilation to access properties in a similar form as json.

Alternatives Considered

You could just use patch text, but patchJs feels a bit more controlled and safer, for the same reason you would use patchJson and not patchText for json files.

Area

New step type suggestion

Contribution

  • I'm willing to open a PR for this feature

Before submitting

  • I have searched for existing issues and this is not a duplicate

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions