Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR] A couple of QoL Feature Requests #1029

Open
Mearman opened this issue Jan 25, 2024 · 0 comments
Open

[FR] A couple of QoL Feature Requests #1029

Mearman opened this issue Jan 25, 2024 · 0 comments

Comments

@Mearman
Copy link

Mearman commented Jan 25, 2024

I am putting them in one issue for cleanliness because some of them might not be worthwhile/feasible/within scope.
These are sleepless 04:00 thoughts, so I will tidy up and give examples later.

  1. Allow configuration of the WireIt env vars in the package.json configuration, both package-wide and per script
    Maybe also via somewhere like ./.wireitrc.json, ~/.wireitrc
  2. Also config of general env vars as above
  3. Generate visualisation of graph for WireIt scripts
  4. WireIt script aliases
    e.g. push as an alias for deploy
  5. In VSCoode, when triggering refactor prompt, add wireit to dev-dependencies
  6. wireit cli
    WireIt as a global install and npx command with CLI bin for commands such as:
    1. wireit init:
      adds wireit as dev dependency to current package and creates an empty wireit config directive in the package.json
    2. wireit refactor
      same as above but also converts all current scripts. possibly also parse npm beforeX and afterX lifecycle scripts.
    3. wireit deintegrate
      :( opposite of above.
  7. General detection of npm lifecycle scripts when calling refactor in vscode
  8. When refactoring a script that is already just a wireit command where there is no wireit config for it, do not set command to "wireit"
    • e.g.
      • current:
        • before:
        {
            "scripts": {
                "foo": "wireit"
            }
        }
        • after:
        {
            "scripts": {
                "foo": "wireit"
            },
            "wireit": {
                "foo": {
                    "command": "wireit"
                }
        }
      • proposed:
        • after:
        {
            "scripts": {
                "foo": "wireit"
            },
            "wireit": {
                "foo": {
                }
        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant