1
0
mirror of https://github.com/golang/go synced 2024-11-18 16:14:46 -07:00
go/cmd/heapview/client
Michael Matloob 72064bd647 cmd/heapview: dowgrade to customelements v0
I've had too many issues with customelements v1. The interface for v0
isn't as nice, and v0 will eventually be deprecated. But v1's polyfill
library is better supported, and it will be easy to upgrade later.

Change-Id: I87b376376b750167a0464c6c249930edecbd59db
Reviewed-on: https://go-review.googlesource.com/25545
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
2016-08-05 20:49:36 +00:00
..
testing x/tools/cmd/heapview: add a heading to the page 2016-08-05 01:00:25 +00:00
.clang-format cmd/heapview: add karma+jasmine TS unit testing config 2016-08-03 18:16:31 +00:00
.gitignore x/tools/cmd/heapview: add basic client serving 2016-07-26 20:51:39 +00:00
main_test.ts x/tools/cmd/heapview: add a heading to the page 2016-08-05 01:00:25 +00:00
main.ts cmd/heapview: dowgrade to customelements v0 2016-08-05 20:49:36 +00:00
package.json x/tools/cmd/heapview: add a heading to the page 2016-08-05 01:00:25 +00:00
README.md x/tools/cmd/heapview: add basic client serving 2016-07-26 20:51:39 +00:00
tsconfig.json x/tools/cmd/heapview: add basic client serving 2016-07-26 20:51:39 +00:00
tslint.json cmd/heapview: add karma+jasmine TS unit testing config 2016-08-03 18:16:31 +00:00

Go Heap Viewer Client

This directory contains the client Typescript code for the Go heap viewer.

Typescript Tooling

Below are instructions for downloading tooling and files to help make the development process more convenient. These tools are not required for contributing or running the heap viewer- they are just meant as development aids.

Node and NPM

We use npm to manage the dependencies for these tools. There are a couple of ways of installing npm on your system, but we recommend using nvm.

Run the following command to install nvm:

[shell]$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.3/install.sh | bash

or see the instructions on the nvm github page for alternative methods. This will put the nvm tool in your home directory and edit your path to add nvm, node and other tools you install using them. Once nvm is installed, use

[shell]$ nvm install node

then

[shell]$ nvm use node

to install node.js.

Once node is installed, you can install typescript using

[shell]$ npm install -g typescript

Finally, import type definitions into this project by running

[shell]$ npm install

in this directory. They will be imported into the node_packages directory and be automatically available to the Typescript compiler.