这是indexloc提供的服务,不要输入任何密码
Skip to content

Run a project from a remote repository #147

@Angelmmiguel

Description

@Angelmmiguel

Is your feature request related to a problem? Please describe.

There are many different ways a project / workers could be stored. Currently, we are allowing only local resources by pointing wws to a system folder:

wws ./my-folder

However, this restriction introduces an extra step of downloading and configuring the project in the environment. wws can identify the resources based on the path, extension and protocol, and prepare the environment on behalf of the user.

Describe the solution you'd like

All the examples require you to clone / download workers. Ideally, the demos must be available in a single command:

wws https://github.com/vmware-labs/wasm-workers-server.git

wws must detect the resource and prepare the environment based on it. For this initial implementation, it will detect links that ends as .git to process them as git repositories. I would like to set other specific configurations related to git like:

  • --git-folder
  • --git-branch
  • --git-rev

Describe alternatives you've considered

The current alternative is to ask you to clone the repo in advance. We want to avoid this and simplify the process.

Additional context

Related issue from @k33g (#121).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions