1
0
mirror of https://github.com/golang/go synced 2024-11-18 09:04:49 -07:00
go/cmd
Michael Matloob 053ddb97bf x/tools/cmd/heapview: add basic client serving
This change primarily exists to import Typescript and the
ES6 module loader polyfill as dependencies for this project.
Both dependencies are relatively lightweight and can be easily
removed if we decide we don't need them.

The module loader polyfill implements support for an upcoming
browser feature in ES6 (the next version of JavaScript). This
feature helps modularize Javascript code and conveniently split it
into multiple files. It should be supported by the stable versions
of the four major browsers (Chrome, Firefox, Safari and Edge)
by the end of the year. Once that happens, we can remove the polyfill.

The Typescript compiler provides two things: First, it compiles
new, but not-yet-supported ES6 Javascript features into ES5. It
also provides a typechecker similar to what Closure does, but types
are indicated in syntax rather than JSDoc comments. If we decide
we don't want this dependency, we can compile the Typescript code
into human-readable JavaScript code. (The compiler basically
strips out types and replaces ES6 language features with more
well-supported JavaScript equivalents). The Typescript compiler
is not required for development. typescript.js and a feature in
the module loader will be used to compile Typescript into JavaScript
at serving time. (We might want to do something different for the
production version, but we can get to that later).

The change also adds code to serve the HTML and Javascript files.

Updates golang/go#16410

Change-Id: I42c669d1de636d8b221fc03ed22aa7ac60554610
Reviewed-on: https://go-review.googlesource.com/25240
Reviewed-by: Austin Clements <austin@google.com>
2016-07-26 20:51:39 +00:00
..
benchcmp benchmark/parser, cmd/benchcmp: improve names of exported identifiers 2015-01-15 01:28:17 +00:00
bundle cmd/bundle: More idiomatic flag.Usage. 2016-07-21 15:33:57 +00:00
callgraph x/tools/cmd/callgraph: add -ptalog flag 2015-12-04 17:49:28 +00:00
cover all: address vet issues, fix print calls 2016-03-27 20:36:34 +00:00
digraph tools: add import comments. 2014-12-09 22:42:16 +00:00
eg refactor/eg: refactor to break dependency on go/loader 2015-09-01 14:26:06 +00:00
fiximports cmd/fiximports: -replace flag specifies canonical packages in absence of import comments 2015-09-01 14:23:39 +00:00
godex x/tools: delete x/tools/go/types and dependent packages/client files 2016-04-06 21:52:49 +00:00
godoc cmd/godoc: set Strict-Transport-Security header in production 2016-05-02 17:22:30 +00:00
goimports cmd/goimports, imports: add -local flag 2016-07-23 01:23:54 +00:00
gomvpkg go/buildutil: TagsFlag provides a flag.Value for setting build.Context.BuildTags from -tags flag. 2015-04-23 14:10:21 +00:00
gorename cmd/gorename: -d flag prints diffs instead of rewriting files 2015-12-30 15:25:00 +00:00
gotype x/tools: delete x/tools/go/types and dependent packages/client files 2016-04-06 21:52:49 +00:00
guru cmd/guru: suppress failing test on plan9 2016-07-18 14:28:24 +00:00
heapview x/tools/cmd/heapview: add basic client serving 2016-07-26 20:51:39 +00:00
html2article tools: fix 'Split called after Scan' 2016-05-04 16:29:22 +00:00
oracle cmd/oracle: announce planned deletion in 2.5 months 2016-07-18 23:21:13 +00:00
present x/tools/cmd/present: Fix present not working on Safari 2016-07-03 04:58:21 +00:00
ssadump x/tools: delete x/tools/go/types and dependent packages/client files 2016-04-06 21:52:49 +00:00
stress all: fix plan9 failures 2016-01-28 00:31:03 +00:00
stringer cmd/stringer: fixed usage line typo 2016-04-17 02:19:27 +00:00
tip tip: update package doc to refer to stable code 2016-07-11 22:47:40 +00:00