diff --git a/README.md b/README.md index 168d48f..9436b0c 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # ngx -Opinionated nginx config generation in Deno. +Opinionated nginx config generation for Deno. diff --git a/deno.json b/deno.json new file mode 100644 index 0000000..eec401a --- /dev/null +++ b/deno.json @@ -0,0 +1,5 @@ +{ + "name": "@char/ngx", + "version": "0.1.0", + "exports": "./ngx.ts" +} diff --git a/ngx.ts b/ngx.ts index 459d871..e275fee 100644 --- a/ngx.ts +++ b/ngx.ts @@ -1,6 +1,5 @@ -const NGX_VERSION = "0.1"; +const NGX_VERSION = "0.1.0"; -// #region Implementation type ConfigNode = ConfigStatement | ConfigBlock | ConfigBreak | ConfigFile; class ConfigBuildable { @@ -89,7 +88,6 @@ function conform(looseNode: LooseConfigNode): ConfigNode[] { } return [looseNode]; } -// #endregion export function ngx(value?: string, children?: LooseConfigNode[]): ConfigNode { const hasValue = value !== undefined && value !== "";