0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-07 23:06:50 -05:00

Minor tweaks to README.md (#173)

This commit is contained in:
Zearin 2018-06-08 04:38:47 -04:00 committed by Ryan Dahl
parent 58eb14031d
commit c977cba123

View file

@ -2,12 +2,12 @@
[![Build Status](https://travis-ci.com/ry/deno.svg?branch=master)](https://travis-ci.com/ry/deno) [![Build Status](https://travis-ci.com/ry/deno.svg?branch=master)](https://travis-ci.com/ry/deno)
A secure TypeScript runtime on V8 ## A secure TypeScript runtime built on V8
* Supports TypeScript 2.8 out of the box. Uses V8 6.8.275.3. That is, it's * Supports TypeScript 2.8 out of the box. Uses V8 6.8.275.3. That is, it's
very modern JavaScript. very modern JavaScript.
* No package.json, no npm. Not explicitly compatible with Node. * No `package.json`. No npm. Not explicitly compatible with Node.
* Imports reference source code URLs only. * Imports reference source code URLs only.
``` ```
@ -15,14 +15,14 @@ A secure TypeScript runtime on V8
import { log } from "./util.ts" import { log } from "./util.ts"
``` ```
Remote code is fetched and cached on first execution, and never updated until Remote code is fetched and cached on first execution, and never updated until
the code is run with the `--reload` flag. (So this will still work on an the code is run with the `--reload` flag. (So, this will still work on an
airplane. See `~/.deno/src` for details on the cache.) airplane. See `~/.deno/src` for details on the cache.)
* File system and network access can be controlled in order to run sandboxed * File system and network access can be controlled in order to run sandboxed
code. Defaults to read-only file system access and no network access. code. Defaults to read-only file system access and no network access.
Access between V8 (unprivileged) and Golang (privileged) is only done via Access between V8 (unprivileged) and Golang (privileged) is only done via
serialized messages defined in this serialized messages defined in this
[protobuf](https://github.com/ry/deno/blob/master/msg.proto), this makes it [protobuf](https://github.com/ry/deno/blob/master/msg.proto). This makes it
easy to audit. easy to audit.
To enable write access explicitly use `--allow-write` and `--allow-net` for To enable write access explicitly use `--allow-write` and `--allow-net` for
network access. network access.
@ -43,7 +43,7 @@ A secure TypeScript runtime on V8
* Always dies on uncaught errors. * Always dies on uncaught errors.
* Supports top-level await. * Supports top-level `await`.
* Aims to be browser compatible. * Aims to be browser compatible.
@ -61,17 +61,18 @@ And examples are around here: [testdata/004_set_timeout.ts](https://github.com/r
Roadmap is [here](https://github.com/ry/deno/blob/master/TODO.txt). Roadmap is [here](https://github.com/ry/deno/blob/master/TODO.txt).
Also see this preentation http://tinyclouds.org/jsconf2018.pdf Also see this presentation: http://tinyclouds.org/jsconf2018.pdf
## Compile instructions ## Compile instructions
I will release binaries at some point but for now you have to build it I will release binaries at some point, but for now you have to build it
yourself. yourself.
You will need [Go](https://golang.org/) with `$GOPATH` defined and You will need [Go](https://golang.org) with `$GOPATH` defined and
`$GOPATH/bin` in your `$PATH`. You will also need `$GOPATH/bin` in your `$PATH`.
[yarn](https://yarnpkg.com/lang/en/docs/install/) installed.
You will also need [yarn](https://yarnpkg.com/lang/en/docs/install/) installed.
You need Protobuf 3. On Linux this might work: You need Protobuf 3. On Linux this might work:
@ -111,9 +112,9 @@ go get -u github.com/ry/v8worker2
cd $GOPATH/src/github.com/ry/v8worker2 cd $GOPATH/src/github.com/ry/v8worker2
./build.py --use_ccache ./build.py --use_ccache
``` ```
Maybe also run `git submodule update --init` in the v8worker2 dir. Maybe also run `git submodule update --init` in the `v8worker2/` dir.
Finally you can get `deno` and its other Go deps. Finally, you can get `deno` and its other Go deps.
``` bash ``` bash
go get -u github.com/ry/deno/... go get -u github.com/ry/deno/...
@ -129,7 +130,7 @@ make # Wait for redacted
./deno testdata/001_hello.js # Output: Hello World ./deno testdata/001_hello.js # Output: Hello World
``` ```
## make commands ## `make` commands
``` bash ``` bash
make deno # Builds the deno executable. make deno # Builds the deno executable.