From 2c91d30b1d861b33fe9e99c95aee64b5a16ee04e Mon Sep 17 00:00:00 2001 From: Charlotte Som Date: Thu, 29 Feb 2024 21:20:44 +0000 Subject: [PATCH] Prepare for jsr publication --- README.md | 2 +- deno.json | 5 +++++ ngx.ts | 4 +--- 3 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 deno.json 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 !== "";