Prepare for jsr publication
parent
1888dbacc5
commit
2c91d30b1d
|
@ -1,3 +1,3 @@
|
|||
# ngx
|
||||
|
||||
Opinionated nginx config generation in Deno.
|
||||
Opinionated nginx config generation for Deno.
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"name": "@char/ngx",
|
||||
"version": "0.1.0",
|
||||
"exports": "./ngx.ts"
|
||||
}
|
4
ngx.ts
4
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 !== "";
|
||||
|
|
Loading…
Reference in New Issue