You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/cmd/tsconnect
Mihai Parparita b763a12331 cmd/tsconnect: allow building static resources in a different directory
When using tsconnect as a module in another repo, we cannot write to
the ./dist directory (modules directories are read-only by default -
there is a -modcacherw flag for `go get` but we can't count on it).

We add a -distdir flag that is honored by both the build and serve
commands for where to place output in.

Somewhat tedious because esbuild outputs paths relative to the working
directory, so we need to do some extra munging to make them relative
to the output directory.

Signed-off-by: Mihai Parparita <mihai@tailscale.com>
2 years ago
..
dist cmd/tsconnect: initial scaffolding for Tailscale Connect browser client 2 years ago
src cmd/tsconnect: initial scaffolding for Tailscale Connect browser client 2 years ago
wasm cmd/tsconnect: initial scaffolding for Tailscale Connect browser client 2 years ago
.gitignore cmd/tsconnect: initial scaffolding for Tailscale Connect browser client 2 years ago
build.go cmd/tsconnect: allow building static resources in a different directory 2 years ago
common.go cmd/tsconnect: allow building static resources in a different directory 2 years ago
dev.go cmd/tsconnect: initial scaffolding for Tailscale Connect browser client 2 years ago
index.html cmd/tsconnect: initial scaffolding for Tailscale Connect browser client 2 years ago
package.json cmd/tsconnect: initial scaffolding for Tailscale Connect browser client 2 years ago
serve.go cmd/tsconnect: allow building static resources in a different directory 2 years ago
tsconnect.go cmd/tsconnect: allow building static resources in a different directory 2 years ago
yarn.lock cmd/tsconnect: initial scaffolding for Tailscale Connect browser client 2 years ago