Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Specify a test path runner will open in browser #259

Closed
jjallwood opened this issue Mar 17, 2021 · 1 comment
Closed

Specify a test path runner will open in browser #259

jjallwood opened this issue Mar 17, 2021 · 1 comment
Labels

Comments

@jjallwood
Copy link

馃挕 Feature request

Is your feature request related to a problem? Please describe

The runner pattern helps us to easily develop modules in isolation. However it can be difficult to know the best URL to be able to preview / test a module. Especially if a module has any required props.

This feature would allow you to specify a path and default query params within a modules code i.e package.json. Then use the runner CLI to open the defined path in a browser. It should be able with any OneApp module; to work on demand, or specifically when the one-app-runner instance is available to avoid delay in engineering.

Example

@JAdshead provided the following API example.

"one-amex": {
  "runner": {
    "modules": ["."],
    "startPath: "/demo",
    "startPathParams": {
       "campaignId": "12345",
       "theme": "centurion"    
    }
  }
}

"one-amex": {
  "runner": {
    "modules": ["."],
    "startPath: "/"
  }
}
@nellyk
Copy link
Contributor

nellyk commented Apr 21, 2021

hopefully #269 might resolve part of this

@10xLaCroixDrinker 10xLaCroixDrinker closed this as not planned Won't fix, can't repro, duplicate, stale May 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants