Skip to content
This repository was archived by the owner on Jun 27, 2019. It is now read-only.
This repository was archived by the owner on Jun 27, 2019. It is now read-only.

Add enable/disable command for plugins #40

Open

Description

@raphaelokon

Add following feature:

patternlab enable --plugins=plugin-name1, plugin-name2
patternlab disable --plugins=plugin-name1, plugin-name2

Activity

  1. self-assigned this
    on Mar 27, 2017
  2. raphaelokon commented on Oct 11, 2017

    @raphaelokon
    ContributorAuthor

    @bmuenzenmeyer Is this a viable feature and par with any core functionality?

  3. bmuenzenmeyer commented on Oct 11, 2017

    @bmuenzenmeyer
    Member

    yes,

    as long as by enable and disable, you setting the value inside patternlab-config.json per guidance in the example here: https://github.com/pattern-lab/plugin-node-tab#configuration

    this is how plugins will work in 3.X

  4. raphaelokon commented on Oct 11, 2017

    @raphaelokon
    ContributorAuthor

    Cool. I will implement it as per spec. Thanks

  5. raphaelokon commented on Oct 12, 2017

    @raphaelokon
    ContributorAuthor

    Just had a second look at it … isn't it a bit verbose to just expose plugin-related logic on the config?

    This way either the plugin itself has to
    (a) return its default configuration or
    (b) the CLI has to map that somehow or
    (c) the user has to manually add it to the PL config

    I prefer (a) … as this unties the CLI and user from knowing the exact config. Also if different plugins or plugin versions require diff config this would be the easiest way to make sure having a non-breaking setup.

  6. raphaelokon commented on Oct 12, 2017

    @raphaelokon
    ContributorAuthor

    Actually: The more I think about this the more I feel we should handle it like babel—let the user enable/config plugins. I am closing this for now

  7. added this to the v1.0.0 milestone on Nov 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions