Skip to content

Guide devs on the various happy paths of an add-on lifecycle #1043

@sacrosanctic

Description

@sacrosanctic

create - clean workspace
add (update) - compatibility checks
addx2 (incremental update) - detect dependency, possibly bail.

For an add-on like eslint, it most likely has to bail as soon as it detects a discrepency during add and addx2. Loosely coupled packages like component libraries could be able to handle all 3, addx2 could be bumping dependencies and running codemod.

Not sure if this comes in the form of an API, util or just a pattern (and docs) we should to add to the official add-ons.

This came up in #1034. It wasn't immediately obvious to me that I should handle these cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions