Skip to content

Support declarative format for deployment configurations #2

Description

@siddharthvp

Wikiploy is a cool tool, but the need to write JavaScript code for deploy configurations seems avoidable. The package can be easier to use if it allows configurations in a declarative format like YAML. The JS API can of course be retained for advanced scenarios with custom edit summaries, etc.

Example wikiploy.yml file to be placed in repo root:

dev:
  site: test.wikipedia.org
  source: src/xyz.js
  destination: User:SD0001/xyz.js

prod:
  site: en.wikipedia.org
  source: src/xyz.js
  destination: User:SD0001/sandbox/xyz.js

The format can be easily expanded to support multiple files per configuration, edit summaries with placeholder substitutions, etc.

Running npx wikiploy dev would deploy using the dev configuration, and so on.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions