This website requires JavaScript.
Explore
Help
Sign In
TheArchive
/
tailscale
Watch
1
Star
0
Fork
0
You've already forked tailscale
mirror of
https://github.com/tailscale/tailscale.git
synced
2024-11-25 19:15:34 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
main
tailscale
/
cmd
/
tsconnect
/
.gitignore
4 lines
25 B
Plaintext
Raw
Permalink
Normal View
History
Unescape
Escape
cmd/tsconnect: initial scaffolding for Tailscale Connect browser client Runs a Tailscale client in the browser (via a WebAssembly build of the wasm package) and allows SSH access to machines. The wasm package exports a newIPN function, which returns a simple JS object with methods like start(), login(), logout() and ssh(). The golang.org/x/crypto/ssh package is used for the SSH client. Terminal emulation and QR code renedring is done via NPM packages (xterm and qrcode respectively), thus we also need a JS toolchain that can install and bundle them. Yarn is used for installation, and esbuild handles loading them and bundling for production serving. Updates #3157 Signed-off-by: Mihai Parparita <mihai@tailscale.com>
2022-06-07 21:24:22 +00:00
node_modules/
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>
2022-08-24 01:05:23 +00:00
/dist
/pkg
Reference in New Issue
Copy Permalink