Skip to content

Commit

Permalink
Merge pull request #33 from SimplrJS/dev
Browse files Browse the repository at this point in the history
v0.1.0
  • Loading branch information
Martynas Žilinskas authored Jan 30, 2018
2 parents 1c99f99 + a2db630 commit 7a30161
Show file tree
Hide file tree
Showing 140 changed files with 6,041 additions and 3,478 deletions.
1,093 changes: 581 additions & 512 deletions common/config/rush/npm-shrinkwrap.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/ts-docs-gen/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"tests/**/__tests__/**/*.test.ts": true
"tests/cases/__tests__/**/*.test.ts": true
}
}
46 changes: 45 additions & 1 deletion packages/ts-docs-gen/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,45 @@
# ts-docs-gen
# ts-docs-gen

_Readme is WIP._

Generates documentation from TypeScript files.

## Get started
```sh
npm install ts-docs-gen -g
```

## CLI usage
```sh
ts-docs-gen -h
```

### Examples

#### Without config

If you want to use `ts-docs-gen` without config file, `entryFile` flag is required.
```
ts-docs-gen --entryFile ./src/index.ts
```

Multiple entry files:
```
ts-docs-gen --entryFile ./src/index.ts --entryFile ./src/internal.ts
```

#### With config

```
ts-docs-gen --config ./docs-gen.json
```

## Configuration
JSON config properties and CLI flags.

| Property | CLI Flag | Required | Type | Default | Description |
|-------------|-------------------|------------|----------|---------------------------|--------------------------------------------|
| `entryFile` | `--entryFile` | _required_ | string[] | | TypeScript project entry files. |
| `project` | `--project`, `-p` | _optional_ | string | Current working directory | Full path to TypeScript project directory. |
| `output` | `--output`, `-o` | _optional_ | string | ./docs/api/ | Documentation output directory. |
| `plugin` | `--plugin` | _optional_ | string[] | | Packagename or path to plugin. |
3 changes: 3 additions & 0 deletions packages/ts-docs-gen/docs-gen.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"entryFile": "./src/index.ts"
}

This file was deleted.

Loading

0 comments on commit 7a30161

Please sign in to comment.