An open API service indexing awesome lists of open source software.

https://github.com/knorpelsenf/sitemap-cli

Deno CLI to create a sitemap from build output
https://github.com/knorpelsenf/sitemap-cli

cli generation sitemap

Last synced: about 1 year ago
JSON representation

Deno CLI to create a sitemap from build output

Awesome Lists containing this project

README

          

# Sitemap CLI

Deno CLI to create a sitemap from build output.

## Usage

Usage: `deno run https://deno.land/x/sitemap/cli.ts [args]`

Deno CLI to generate a XML sitemap from a local directory.

Options:

```sh
-h, --help - Show this help.
-V, --version - Show the version number for this program.
-b, --basename - Base URL (required)
-r, --root - Root working directory (Default: ".")
-o, --out - Output file, or - for standard out
-m, --match - Glob patterns to match (Default: "**/*.html")
-i, --ignore - Glob patterns to ignore (Default: "404.html")
--clean - Strip HTML file extensions
```

Works well together with
[`deno install`](https://deno.land/manual/tools/script_installer).

## Contributions

All contributions are welcome!

Install [Deno](https://deno.land).

### Formatting

```sh
deno fmt
```

### Linting

```sh
deno lint
```

### Typechecks

```sh
deno check *.ts
```

## Credits

- for inspiration.
- for the initial implementation.