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
Mihai Parparita 1a093ef482 cmd/tsconnect: extract NPM package for reusing in other projects
`src/` is broken up into several subdirectories:
- `lib/` and `types`/ for shared code and type definitions (more code
  will be moved here)
- `app/` for the existing Preact-app
- `pkg/` for the new NPM package

A new `build-pkg` esbuild-based command is added to generate the files
for the NPM package. To generate type definitions (something that esbuild
does not do), we set up `dts-bundle-generator`.

Includes additional cleanups to the Wasm type definitions (we switch to
string literals for enums, since exported const enums are hard to use
via packages).

Also allows the control URL to be set a runtime (in addition to the
current build option), so that we don't have to rebuild the package
for dev vs. prod use.

Updates #5415

Signed-off-by: Mihai Parparita <mihai@tailscale.com>
2 years ago
..
addlicense cmd/addlicense: add command to add licenseheaders to generated code 3 years ago
cloner cmd/{cloner,viewer}: add support for map values with pointers 2 years ago
derper client,cmd/tailscale,ipn,tka,types: implement tka initialization flow 2 years ago
derpprobe net/stun: convert to use net/netip.AddrPort 2 years ago
gitops-pusher cmd/gitops-pusher: things i forgot to push last PR (#5128) 2 years ago
hello net/netaddr: start migrating to net/netip via new netaddr adapter package 2 years ago
mkpkg cmd/mkpkg: use package flag (#4373) 3 years ago
nginx-auth cmd/nginx-auth: allow use of shared nodes 2 years ago
printdep Docker: add ALPINE.txt to manage alpine versions 2 years ago
proxy-to-grafana all: gofmt for Go 1.19 2 years ago
speedtest cmd: upgrade to ffcli v3 3 years ago
tailscale client,cmd/tailscale,ipn,tka,types: implement tka initialization flow 2 years ago
tailscaled net/dns: [win] add MagicDNS entries to etc/hosts 2 years ago
testcontrol all: use any instead of interface{} 3 years ago
tsconnect cmd/tsconnect: extract NPM package for reusing in other projects 2 years ago
tsshd cmd/tsshd: add a package line to appease gofmt 2 years ago
viewer cmd/viewer: add flag to support Clone generation without Views 2 years ago