Skip to content

Commit

Permalink
readme wording suggestions (#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford authored and rauchg committed Dec 31, 2018
1 parent ea37034 commit f89e9e5
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,22 @@ together with all its dependencies, gcc-style.
npm i -g @zeit/ncc
```

### CLI
### Usage

```bash
$ ncc build input.js -o dist
```

For fast rebuilds the watcher can be run with:
Outputs the Node.js compact build of `input.js` into `dist/index.js`.

```bash
$ ncc build input.js -o dist -w
```
### Execution Testing

Outputs the build of `input.js` into `dist/index.js`.
For testing and debugging, a file can be built into a temporary directory and executed with full source maps support with the command:

```bash
$ ncc run input.js
```

Build to a temporary folder and run the built JS file through Node.js, with source maps support for debugging.

### With TypeScript

The only requirement is to point `ncc` to `.ts` or `.tsx` files. A `tsconfig.json`
Expand Down

0 comments on commit f89e9e5

Please sign in to comment.