@cxl/build 0.2.0 → 1.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,17 @@
1
+ # @cxl/build
2
+
3
+ [![npm version](https://badge.fury.io/js/%40cxl%2Fbuild.svg)](https://badge.fury.io/js/%40cxl%2Fbuild)
4
+
5
+ A flexible build system that executes configurable build tasks producing output files, with logging and shell command support.
6
+
7
+ ## Project Details
8
+
9
+ - Branch Version: [1.0.0-beta.1](https://npmjs.com/package/@cxl/build/v/1.0.0-beta.1)
10
+ - License: GPL-3.0
11
+ - Documentation: [Link](https://cxlio.github.io/cxl/build)
12
+ - Report Issues: [Github](https://github.com/cxlio/cxl/issues)
13
+
14
+ ## Installation
15
+
16
+ npm install @cxl/build
17
+
package/builder.d.ts CHANGED
@@ -1,6 +1,10 @@
1
1
  import { SpawnOptions } from 'child_process';
2
- import { Observable } from '@cxl/rx';
3
- import { Output } from '@cxl/source';
2
+ import { Observable } from '../rx/index.js';
3
+ export interface Output {
4
+ path: string;
5
+ source: Buffer;
6
+ mtime?: number;
7
+ }
4
8
  export interface BuildConfiguration {
5
9
  target?: string;
6
10
  outputDir: string;
@@ -8,7 +12,8 @@ export interface BuildConfiguration {
8
12
  }
9
13
  export type Task = Observable<Output>;
10
14
  export declare const appLog: (...args: unknown[]) => void;
15
+ export declare const require: NodeJS.Require;
16
+ export declare function resolveRequire<T>(mod: string): T;
11
17
  export declare function build(...targets: BuildConfiguration[]): Promise<void>;
12
- export declare function exec(cmd: string): Observable<never, "none">;
13
- export declare function shell(cmd: string, options?: SpawnOptions): Observable<Buffer, "none">;
14
- export declare function run(cmd: string, params: Record<string, string | number | boolean | string[] | undefined>, options?: SpawnOptions): Promise<string>;
18
+ export declare function exec(cmd: string, options?: SpawnOptions): Observable<never, "none">;
19
+ export declare function shell(cmd: string, options?: SpawnOptions): Observable<Buffer<ArrayBufferLike>, "none">;
@@ -0,0 +1,24 @@
1
+ import{basename as wr,join as te}from"path";import{readFileSync as re}from"fs";var y={},br=Symbol("terminator");function Je(e,t){let r=!1,n={error:o,unsubscribe:s,get closed(){return r},signal:B(),next(i){if(!r)try{e.next?.(i)}catch(a){o(a)}},complete(){if(!r)try{e.complete?.()}finally{s()}}};e.signal?.subscribe(s);function o(i){if(r)throw i;if(!e.error)throw s(),i;try{e.error(i)}finally{s()}}function s(){r||(r=!0,n.signal.next())}try{if(t?.(n))throw new Error("Unsubscribe function result is deprectaed")}catch(i){o(i)}return n}function oe(...e){return t=>e.reduce((r,n)=>n(r),t)}var l=class{__subscribe;constructor(t){this.__subscribe=t}then(t,r){return We(this).then(t,r)}pipe(...t){return t.reduce((r,n)=>n(r),this)}subscribe(t){return Je(!t||typeof t=="function"?{next:t}:t,this.__subscribe)}},D=class extends l{closed=!1;signal=B();observers=new Set;constructor(){super(t=>this.onSubscribe(t))}next(t){if(!this.closed)for(let r of Array.from(this.observers))r.closed||r.next(t)}error(t){if(!this.closed){this.closed=!0;let r=!1,n;for(let o of Array.from(this.observers))try{o.error(t)}catch(s){r=!0,n=s}if(r)throw n}}complete(){this.closed||(this.closed=!0,Array.from(this.observers).forEach(t=>t.complete()),this.observers.clear())}onSubscribe(t){this.closed?t.complete():(this.observers.add(t),t.signal.subscribe(()=>this.observers.delete(t)))}},G=class extends l{closed=!1;observers=new Set;constructor(){super(t=>{this.closed?(t.next(),t.complete()):this.observers.add(t)})}next(){if(!this.closed){this.closed=!0;for(let t of Array.from(this.observers))t.closed||(t.next(),t.complete());this.observers.clear()}}};var O=class extends D{bufferSize;buffer=[];hasError=!1;lastError;constructor(t=1/0){super(),this.bufferSize=t}error(t){this.hasError=!0,this.lastError=t,super.error(t)}next(t){return this.buffer.length===this.bufferSize&&this.buffer.shift(),this.buffer.push(t),super.next(t)}onSubscribe(t){this.observers.add(t),this.buffer.forEach(r=>t.next(r)),this.hasError?t.error(this.lastError):this.closed&&t.complete(),t.signal.subscribe(()=>this.observers.delete(t))}},V=class extends D{$value=y;get hasValue(){return this.$value!==y}get value(){if(this.$value===y)throw new Error("Reference not initialized");return this.$value}next(t){return this.$value=t,super.next(t)}onSubscribe(t){!this.closed&&this.$value!==y&&t.next(this.$value),super.onSubscribe(t)}},M=class extends Error{message="No elements in sequence"};function B(){return new G}function v(e){return new l(t=>{e().subscribe(t)})}function ie(e){return new l(t=>{for(let r of e)t.closed||t.next(r);t.complete()})}function se(e){return new l(t=>{e.then(r=>{t.closed||t.next(r),t.complete()}).catch(r=>t.error(r))})}function U(e){return v(()=>se(e()))}function qe(e){return new l(t=>{for(let r of e)t.closed||t.next(r);t.complete()})}function ce(e){return e instanceof l?e:Array.isArray(e)?ie(e):e instanceof Promise?se(e):qe(e)}function J(...e){return ie(e)}function _e(e){return new Promise((t,r)=>{let n=y;e.subscribe({next:o=>n=o,error:o=>r(o),complete:()=>t(n)})})}function We(e){return _e(e).then(t=>t===y?void 0:t)}function E(e,t){return b(r=>({next:e(r),unsubscribe:t}))}function b(e){return t=>new l(r=>{let n=e(r,t);r.signal.subscribe(()=>n.unsubscribe?.()),n.error||(n.error=r.error),n.complete||(n.complete=r.complete),n.signal=r.signal,t.subscribe(n)})}function q(e){return E(t=>r=>t.next(e(r)))}function _(e,t){return b(r=>{let n=t,o=0;return{next(s){n=e(n,s,o++)},complete(){r.next(n),r.complete()}}})}function ze(e){return b(t=>{let r=!0,n;return{next(o){r&&(r=!1,t.next(o),n=setTimeout(()=>r=!0,e))},unsubscribe:()=>clearTimeout(n)}})}function Ye(e){return new l(t=>{let r=setTimeout(()=>{t.next(),t.complete()},e);t.signal.subscribe(()=>clearTimeout(r))})}function He(e,t=Ye){return ae(r=>t(e).map(()=>r))}function ae(e){return t=>$(r=>{let n=!1,o=!1,s,i=()=>{s?.next(),n=!1,o&&r.complete()},a=B();r.signal.subscribe(()=>{i(),a.next()}),t.subscribe({next(c){i(),s=B(),n=!0,e(c).subscribe({next:r.next,error:r.error,complete:i,signal:s})},error:r.error,complete(){o=!0,n||r.complete()},signal:a})})}function Ke(e){return t=>$(r=>{let n=r.signal,o=0,s=0,i=!1;t.subscribe({next:a=>{o++,e(a).subscribe({next:r.next,error:r.error,complete:()=>{s++,i&&s===o&&r.complete()},signal:n})},error:r.error,complete(){i=!0,s===o&&r.complete()},signal:n})})}function Xe(e){return b(t=>{let r=!0;return{next(n){r&&(r=!1,e(n).subscribe({next:t.next,error:t.error,complete:()=>r=!0,signal:t.signal}))}}})}function W(e){return E(t=>r=>{e(r)&&t.next(r)})}function Qe(e){return E(t=>r=>{e-- >0&&!t.closed&&t.next(r),(e<=0||t.closed)&&t.complete()})}function Ze(e){return E(t=>r=>{!t.closed&&e(r)?t.next(r):t.complete()})}function et(){let e=!1;return b(t=>({next(r){e||(e=!0,t.next(r),t.complete())},complete(){t.closed||t.error(new M)}}))}function z(e){return E(t=>r=>{e(r),t.next(r)})}function tt(e){return b((t,r)=>{let n,o={next:t.next,error(s){try{if(t.closed)return;let i=e(s,r);i&&(n?.next(),n=B(),i.subscribe({...o,signal:n}))}catch(i){t.error(i)}},unsubscribe:()=>n?.next()};return o})}function rt(){return E(e=>{let t=y;return r=>{r!==t&&(t=r,e.next(r))}})}function nt(){return e=>{let t=new O(1),r=!1;return $(n=>{t.subscribe(n),r||(r=!0,e.subscribe(t))})}}function ot(){return e=>{let t,r=0;function n(){--r===0&&t?.signal.next()}return $(o=>{o.signal.subscribe(n),r++===0?(t=at(),t.subscribe(o),e.subscribe(t)):t.subscribe(o)})}}function it(){return e=>{let t=new D,r,n,o=!1,s=!1;return $(i=>{s?(i.next(n),i.complete()):t.subscribe(i),r??=e.subscribe({next:a=>{o=!0,n=a},error:i.error,complete(){s=!0,o&&t.next(n),t.complete()},signal:i.signal})})}}function ue(...e){return e.length===1?e[0]:new l(t=>{let r=e.length;for(let n of e)t.closed||n.subscribe({next:t.next,error:t.error,complete(){r--===1&&t.complete()},signal:t.signal})})}function st(e){return b(t=>({next:t.next,unsubscribe:e}))}function ct(){return W(()=>!1)}var N=new l(e=>e.complete());function $(e){return new l(e)}function at(){return new V}var ne={catchError:tt,debounceTime:He,distinctUntilChanged:rt,exhaustMap:Xe,filter:W,finalize:st,first:et,ignoreElements:ct,map:q,mergeMap:Ke,publishLast:it,reduce:_,share:ot,shareLatest:nt,switchMap:ae,take:Qe,takeWhile:Ze,tap:z,throttleTime:ze};for(let e in ne)l.prototype[e]=function(...t){return this.pipe(ne[e](...t))};import{resolve as pt}from"path";import*as x from"inspector";import{relative as ut}from"path";function lt(e){let t=[];for(let r of e){let n=0,o=0;for(let s of r.functions)for(let i of s.ranges){let a=i.endOffset-i.startOffset;n+=a,i.count&&(o+=a)}t.push({url:r.url,functions:r.functions,blockTotal:n,blockCovered:o})}return t}async function ft(e){let t=process.cwd(),r=[],n=/\/node_modules\//;for(let o of e){let s=o.url.replace(/^file:\/\//,"");if(s.startsWith(t)&&!n.test(s)){let i=ut(t,s);r.push({url:i,functions:o.functions})}}return lt(r)}function le(e){let t=0,r=e.results.map(o=>(o.success===!1&&t++,{message:o.message,success:o.success,data:o.data,stack:o.stack})),n=(e.only.length?e.only:e.tests).map(o=>{let s=le(o);return t+=s.failureCount,s});return r.length===0&&e.tests.length===0&&(t++,r.push({success:!1,message:"No assertions found"})),{name:e.name,failureCount:t,results:r,tests:n,runTime:e.runTime,timeout:e.timeout}}async function I(e,t){let r=le(e),n=t&&await ft(t);return{success:r.failureCount===0,testReport:r,coverage:n}}function F(e,t,r={}){return new Promise((n,o)=>{e.post(t,r,(s,i)=>s?o(s):n(i))})}async function mt(e,t){await F(e,"Profiler.enable"),await F(e,"Profiler.startPreciseCoverage",{detailed:!0});let r=await t(),n=await F(e,"Profiler.takePreciseCoverage");return await F(e,"Profiler.stopPreciseCoverage"),await F(e,"Profiler.disable"),{coverage:n.result,result:r}}async function Y(e){async function t(){let s=(await import(o)).default;return s.run().then(()=>s)}let r=e.entryFile,n=new x.Session;e.log(`Runner: Node ${process.version}`);let o=pt(r);if(e.log(`Suite: ${o}`),e.inspect&&(x.open(),console.log(`Waiting for debugger (${x.url()})`),x.waitForDebugger()),n.connect(),e.ignoreCoverage){let s=await t();return I(s)}else{let{result:s,coverage:i}=await mt(n,t);return process.argv.includes("--inspect")&&(console.log("Press any key to continue"),await new Promise(a=>process.stdin.once("data",a))),I(s,i)}}import*as ge from"puppeteer";import{readFile as K,writeFile as fe,mkdir as pe}from"fs/promises";import{resolve as dt,join as gt,relative as ht}from"path";import{createRequire as xt}from"module";async function wt(e){await Promise.all([e.coverage.startJSCoverage({reportAnonymousScripts:!0})])}async function yt(e,t){let r=e.type(),{url:n,lineNumber:o}=e.location(),s=o!==void 0?` (${o})`:"";t.log(`console ${r}: ${n}${s}`);for(let i of e.args())try{console.log(await i.evaluate(a=>a instanceof Error?{message:a.message,stack:a.stack}:JSON.stringify(a,null,2)))}catch{console.log(i.toString())}}async function bt(e){return await(await e.createBrowserContext()).newPage()}async function $t(e,t,r,n){let o=await bt(t);function s(c){let u=c.type;if(u==="figure")try{return Pt(o,c,e)}catch(f){return{success:!1,message:String(f)||"Unknown Error"}}else{if(u==="hover"||u==="tap"||u==="click")return o.$(c.element).then(f=>{if(!f)throw new Error(`Element for selector "${c.element}" not found.`);return f[u]()}).then(()=>({success:!0,message:"Element"}));if(u==="type"||u==="press")return o.$(c.element).then(f=>{if(!f)throw new Error(`Element for selector "${c.element}" not found.`);return f[u](c.value)}).then(()=>({success:!0,message:"Element"}));if(u==="testElement")return{success:!0,message:"testElement supported"};if(u==="concurrency")return{success:!0,message:"Concurrency",concurrency:n}}return{success:!1,message:`Feature not supported: ${u}`}}o.on("console",c=>yt(c,e)),o.on("pageerror",c=>e.log(c)),o.on("requestfailed",c=>{e.log(`requestfailed: ${c.method()} ${c.url()} ${c.failure()?.errorText}`)}),o.exposeFunction("__cxlRunner",s),await wt(o),e.browserUrl&&await he(e,o,e.browserUrl),await o.bringToFront();let i=await vt(o,r,e);if(!i)throw new Error("Invalid suite");let a=e.ignoreCoverage?void 0:await kt(o,r);return{suite:i,coverage:a}}function he(e,t,r){return t.goto(r)}async function vt(e,t,r){let n=t[0].path,o=r.vfsRoot??process.cwd(),s=xt(process.cwd());await e.setRequestInterception(!0);function i(a){let c;try{if(c=s.resolve(a.slice(1)),c)return c}catch{}return gt(o,a)}return e.on("request",async a=>{try{let c=new URL(a.url());if(a.method()==="GET"&&c.hostname==="cxl-tester"){let u=i(c.pathname),f=c.pathname==="/"?"":await K(u,"utf8");u.endsWith(".js")&&!t.find(h=>h.source===f)&&t.push({path:u,source:f}),a.respond({status:200,contentType:u.endsWith(".js")?"text/javascript":"text/plain",body:f})}else a.continue()}catch{r.log(`Error handling request ${a.method()} ${a.url()}`),a.respond({status:500})}}),await he(r,e,"https://cxl-tester"),r.importmap&&await e.addScriptTag({type:"importmap",content:r.importmap}),e.evaluate(`(async entry => {
2
+ const r = (await import(entry)).default;
3
+ await r.run();
4
+ return r.toJSON();
5
+ })('${n}')`)}function H(e,t,r){return{startOffset:e,endOffset:t,count:r}}function Et(e){let t=[],r=0;for(let n of e.ranges)n.start>r&&t.push(H(r,n.start,0)),t.push(H(n.start,n.end,1)),r=n.end;return r<e.text.length&&t.push(H(r,e.text.length,0)),t}async function kt(e,t){return(await e.coverage.stopJSCoverage()).map(n=>{let o=t.find(s=>n.text.includes(s.source));return{url:o?.path?dt(o?.path):n.url,functions:[{functionName:"",ranges:Et(n),isBlockCoverage:!0}]}})}var me=Promise.resolve();async function de(e){let t=(await import("pngjs")).PNG;return new Promise((r,n)=>{new t().parse(Buffer.from(e),(s,i)=>{s?n(s):r(i)})})}function St(e,t,r){return new Promise((n,o)=>{let s=`#${t}`;me=me.then(()=>e.$eval(s,(i,a)=>{i.innerHTML=a,i.style.zIndex="10",i.getRootNode()?.activeElement?.blur?.()},r).then(async()=>(await e.waitForNetworkIdle({idleTime:120,timeout:5e3}),await e.waitForFunction("document.fonts?.ready"),await e.mouse.move(350,-100),(await e.$(s))?.screenshot({type:"png",encoding:"binary"}))).then(i=>{ArrayBuffer.isView(i)?n(i):o("Invalid value returned by screenshot()")},i=>o(i)))})}async function Pt(e,t,r){let{name:n,domId:o,html:s}=t,i=t.baseline=`${r.baselinePath||"spec"}/${n}.png`,a=`spec/${n}.png`,[c,u]=await Promise.all([K(i).catch(()=>{}),St(e,o,s)]);if(u&&pe("spec").catch(()=>!1).then(()=>fe(a,u)),(!c||r.updateBaselines)&&u&&r.baselinePath)pe(r.baselinePath).catch(()=>!1).then(()=>fe(i,u));else if(c&&u&&r.baselinePath){let[f,h]=await Promise.all([de(c),de(u)]),R=f.data,m=h.data,C=R.length;if(C!==m.length)return{success:!1,message:`Screenshot should match baseline: Different Size (${f.width}x${f.height} vs ${h.width}x${h.height})`,data:t};for(let T=0;T<C;T++)if(R.readUInt8(T)!==m.readUInt8(T))return{success:!1,message:"Screenshot should match baseline",data:t}}return{success:!0,message:"Screenshot should match baseline",data:t}}async function X(e){let t=e.vfsRoot?`./${ht(e.vfsRoot,e.entryFile)}`:e.entryFile,r=["--no-sandbox","--disable-setuid-sandbox","--disable-gpu","--font-render-hinting=none","--disable-font-subpixel-positioning","--animation-duration-scale=0","--force-device-scale-factor=1","--window-size=1280,1024","--disable-infobars","--hide-scrollbars","--blink-settings=imagesEnabled=true","--enable-font-antialiasing","--disable-features=Translate,BackForwardCache,ColorPicker,SharedArrayBuffer,InterestCohort,NotificationIndicator,Prerender2","--disable-background-timer-throttling","--disable-backgrounding-occluded-windows","--disable-renderer-backgrounding","--mute-audio","--disable-extensions"];e.disableSecurity&&r.push("--disable-web-security");let n=await ge.launch({headless:!0,args:r,timeout:5e3});try{e.log(`Puppeteer ${await n.version()}`);let o=await K(e.entryFile,"utf8"),s=[{path:t,source:o}],{suite:i,coverage:a}=await $t(e,n,s,0);return I(i,a)}finally{await n.close()}}function xe(e){return e.node?Y(e):X(e)}import{spawn as Ct}from"child_process";var we={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]},g=Object.keys(we).reduce((e,t)=>{let r=we[t],n="\x1B["+r[0]+"m",o="\x1B["+r[1]+"m";return e[t]=s=>n+s+o,e},{}),be='"(?:[^"\\\\]|\\\\.)*"',Dt="-(\\w\\w+)",$e=`\\s*=?\\s*(${be}|[^-][^\\s]*)?`,Bt=`-(\\w)${$e}`,Nt=`--(\\w+)${$e}`,Ar=new RegExp(`\\s*(?:${Dt}|${Bt}|${Nt}|(${be}|[^\\s]+))`,"g");function ye(){return process.hrtime.bigint()}async function ve(e){let t=ye(),r=await(typeof e=="function"?e():e),n=0,o=ye(),s={start:t,tasks:++n,time:o-t,result:r};return t=o,s}function Ee(e,...t){console.log(typeof e=="string"?e:e(),...t)}function p(e,t={}){return new Promise((r,n)=>{let o=Ct(e,[],{shell:!0,...t}),s="";o.stdout?.on("data",i=>s+=i?.toString()||""),o.stderr?.on("data",i=>s+=i?.toString()||""),o.on("exit",i=>{i!==0?n(s):r(s)})})}function It(e,t){let r=t.message;console.error(e,g.red(r)),t.stack&&console.error(t.stack)}function ke(e){let t="",r=e.results.filter(o=>(t+=o.success?g.green("."):g.red("X"),o.success===!1)),n=e.runTime>e.timeout?"brightYellow":e.runTime>e.timeout/2?"yellow":"gray";return console.group(`${e.name} ${g[n](`(${e.runTime.toFixed(2)} ms)`)} ${t}`),r.forEach(o=>It(e.name,o)),e.tests.forEach(ke),console.groupEnd(),r}function Ft(e){console.log("Coverage Report:");for(let t of e){let r=(t.blockCovered/t.blockTotal*100).toFixed(2);console.log(`${t.url}: ${r}% (${t.blockTotal}/${t.blockCovered})`)}}function Q(e){e.coverage&&Ft(e.coverage),ke(e.testReport)}import{dirname as Wt,relative as zt,resolve as Yt}from"path";import{existsSync as Ht,utimesSync as Kt,writeFileSync as Xt}from"fs";import{spawn as Qt,execSync as Re}from"child_process";import{createRequire as Zt}from"module";import{existsSync as At,readFileSync as Be}from"fs";import{join as Lt,resolve as Gt}from"path";import{promises as Rt,readFileSync as Ur}from"fs";import{basename as Tt,dirname as qr,resolve as jt}from"path";async function Pe(e){let t=await Rt.readFile(e);return{path:e,source:t}}function k(e,t){return v(()=>ce(Pe(e).then(r=>({path:t||jt(e),source:r.source}))))}function Wr(e){return z(t=>t.path=(e||"")+Tt(t.path))}function zr(e,t=`
6
+ `){return oe(_((r,n)=>`${r}${t}${n.source}`,""),q(r=>({path:e,source:Buffer.from(r)})))}function Yr(e){return new l(t=>{Promise.all(e.map(Pe)).then(r=>{r.forEach(n=>t.next(n)),t.complete()},r=>t.error(r))})}function Ce(e,t,r=""){return j(`mkdir -p ${t} && rsync -au -i --delete ${e}/${r} ${t}`)}function Hr(e,t){return Se(`zip - ${e.join(" ")}`).map(r=>({path:t,source:r}))}import{execSync as Ot}from"child_process";import*as Ne from"esbuild";var Vt=process.cwd(),S=Ot("npm prefix",{cwd:Vt}).toString().trim(),Mt={"GPL-3.0":"license-GPL-3.0.txt","GPL-3.0-only":"license-GPL-3.0.txt","Apache-2.0":"license-Apache-2.0.txt","SEE LICENSE IN LICENSE.md":"",UNLICENSED:""};function De(e,t,r){for(let n of e)if(!t[n])throw new Error(`Field "${n}" missing in "${r}"`)}function Ie(e){return new l(t=>{Ne.build({minify:!0,bundle:!0,splitting:!0,format:"esm",tsconfig:"tsconfig.json",platform:"browser",define:{CXL_DEBUG:"false"},...e}).then(()=>t.complete())})}function A(e=S){let t=Gt(e,"package.json");if(!At(t))throw new Error(`"${t}" not found`);let r=JSON.parse(Be(t,"utf8"));return De(["name","version","description"],r,t),r.private||De(["license"],r,t),r}function Ut(e,t){return J({path:"package.json",source:Buffer.from(JSON.stringify({name:e.name,version:e.version,description:e.description,private:e.private,license:e.license,files:e.files||["*.js","*.d.ts","*.css","LICENSE.md","*.md"],main:t??e.main??"index.js",exports:e.exports,browser:e.browser,homepage:e.homepage,bugs:e.bugs,bin:e.bin,repository:e.repository,dependencies:e.dependencies,peerDependencies:e.peerDependencies,bundledDependencies:e.bundledDependencies,type:e.type},null,2))})}function Jt(e){if(e==="UNLICENSED"||e==="SEE LICENSE IN LICENSE.md")return N;let t=Mt[e];if(!t)throw new Error(`Invalid license: "${e}"`);return k(Lt(import.meta.dirname,t),"LICENSE")}function qt(e,t){return`https://npmjs.com/package/${e}/v/${t}`}function _t(e){try{return Be(e,"utf8")}catch{return""}}function Fe(){return v(()=>{let e=A(S),t=_t("USAGE.md"),r=encodeURIComponent(e.name);return J({path:"README.md",source:Buffer.from(`# ${e.name}
7
+
8
+ [![npm version](https://badge.fury.io/js/${r}.svg)](https://badge.fury.io/js/${r})
9
+
10
+ ${e.description}
11
+
12
+ ## Project Details
13
+
14
+ - Branch Version: [${e.version}](${qt(e.name,e.version)})
15
+ - License: ${e.license}
16
+ - Documentation: [Link](${e.homepage})
17
+ - Report Issues: [Github](${e.bugs})
18
+
19
+ ## Installation
20
+
21
+ npm install ${e.name}
22
+
23
+ ${t}`)})})}function Z(e){return v(()=>{let t=A(),r=t.license,n=[Ut(t,e)];return r&&n.push(Jt(r)),ue(...n)})}var er=g.green("build"),w=Ee.bind(null,er),Te=Zt(import.meta.dirname);function tr(e){return(e/1e3).toFixed(2)+"kb"}function rr(e){let t=Number(e)/1e9,r=t.toFixed(4)+"s";return t>.1?t>.5?g.red(r):g.yellow(r):r}function L(e){return Te(Te.resolve(e,{paths:[process.cwd(),import.meta.dirname]}))}async function je(...e){if(!e)throw new Error("Invalid configuration");S!==process.cwd()&&(process.chdir(S),w(`chdir "${S}"`));let t=A();w(`${t.name} ${t.version}`);let r=[void 0,...process.argv];try{for(let n of r)for(let o of e)o.target===n&&await new ee(w,o).build()}catch(n){console.error(n),process.exit(1)}}function j(e,t){return new l(r=>{w(`sh ${e}`),ve(p(e,t)).then(n=>{w(`sh ${e}`,rr(n.time)),n.result&&console.log(n.result),r.complete()},n=>{r.error(n)})})}function Se(e,t={}){return new l(r=>{let n=Qt(e,[],{shell:!0,...t}),o,s;n.stdout?.on("data",i=>o=o?Buffer.concat([o,Buffer.from(i)]):Buffer.from(i)),n.stderr?.on("data",i=>s=s?Buffer.concat([s,Buffer.from(i)]):Buffer.from(i)),n.on("close",i=>{i?r.error(s||o):(r.next(o),r.complete())})})}var ee=class{log;config;outputDir;constructor(t,r){this.log=t,this.config=r,this.outputDir=r.outputDir||"."}async build(){try{let t=this.config.target||"";t&&this.log(`target ${t}`),Re(`mkdir -p ${this.outputDir}`),await Promise.all(this.config.tasks.map(r=>this.runTask(r)))}catch(t){throw console.log("BUILD: ",t),"Build finished with errors"}}async runTask(t){await t.tap(r=>{let n=Yt(this.outputDir,r.path),o=r.source,s=Wt(n);Ht(s)||Re(`mkdir -p ${s}`),Xt(n,o),r.mtime&&Kt(n,r.mtime,r.mtime);let i=zt(process.cwd(),n);this.log(`${i} ${tr((r.source||"").length)}`)})}};import{relative as nr,join as or}from"path";function ir(e){let t=[],r=!1;if(e.forEach(n=>{let o=n.errorCount,s=nr(process.cwd(),n.filePath);w(`eslint ${s}`),o&&(r=!0,n.messages.forEach(i=>console.error(`${s}#${i.line}:${i.column}: ${i.message} (${i.ruleId})`)))}),r)throw new Error("eslint errors found.");return t}function Ae(e){return new l(t=>{(async()=>{let{ESLint:r}=L("eslint");w(`eslint ${r.version}`),new r({cache:!0,cwd:process.cwd(),overrideConfigFile:or(import.meta.dirname,"eslint-config.js"),...e}).lintFiles(["**/*.ts?(x)"]).then(ir).then(()=>t.complete(),o=>t.error(o))})()})}import{relative as sr}from"path";var d=L("typescript"),P=d.sys,cr={useCaseSensitiveFileNames:!0,readDirectory:P.readDirectory,getCurrentDirectory:P.getCurrentDirectory,fileExists:P.fileExists,readFile:P.readFile,onUnRecoverableConfigFileDiagnostic(e){throw e}},ar={getCurrentDirectory:P.getCurrentDirectory,getNewLine:()=>`
24
+ `,getCanonicalFileName:e=>e},yn=d.version;function ur(e){return[...e.getConfigFileParsingDiagnostics(),...e.getOptionsDiagnostics(),...e.getGlobalDiagnostics(),...e.getDeclarationDiagnostics()]}function Le(e,t=ar){throw console.error(d.formatDiagnosticsWithColorAndContext(e,t)),new Error("Typescript compilation failed")}function lr(e="tsconfig.json",t={module:d.ModuleKind.CommonJS}){let r=d.createSolutionBuilderHost(P),n=pr(e);n.errors?.length&&Le(n.errors);let o=n.options.outDir;if(!o)throw new Error(`No outDir field set in ${e}`);let s=d.createSolutionBuilder(r,[e],t);return{outputDir:o,builder:s,options:n}}function fr(e="tsconfig.json",t,r={module:d.ModuleKind.CommonJS}){let{outputDir:n,builder:o}=lr(e,r),s,i="";function a(c,u){i&&c.startsWith(i)?(c=sr(n,c),t.next({path:c,source:Buffer.from(u)})):console.warn(`File "${c}" is outside of outDir. Ignoring.`)}for(;s=o.getNextInvalidatedProject();){if(s.kind===d.InvalidatedProjectKind.Build){let u=s.getProgram();if(i=s.getCompilerOptions().outDir??"",u){let f=ur(u);f.length&&Le(f)}}if(s.done(void 0,a)!==d.ExitStatus.Success)throw`${s.project}: Typescript compilation failed`}}function Ge(e="tsconfig.json",t){return new l(r=>{fr(e,r,t),r.complete()})}function pr(e){let t;try{t=d.getParsedCommandLineOfConfigFile(e,{},cr)}catch(r){if(r instanceof Error)throw r;let n=r?.message||r?.messageText||"Unknown Error";throw new Error(n)}if(!t)throw console.log(process.cwd()),new Error(`Could not parse config file "${e}"`);return t}import{readFile as mr}from"fs/promises";async function Oe(e){return(await p("git rev-parse --abbrev-ref HEAD",{cwd:e})).trim()}async function Ve(e){return(await p("git remote show origin",{cwd:e})).match(/HEAD branch:\s+(\S+)/)?.[1]}import{resolve as dr}from"path";async function gr(e){return JSON.parse(await mr(e,"utf8"))}async function hr(e,t){let r=dr(t);try{await p("npm install --production",{cwd:r}),await p("npm test",{cwd:e})}finally{await p(`rm -rf ${r}/node_modules ${r}/package-lock.json`)}}async function Me(e,t){let r=await Oe(process.cwd()),n=await Ve(process.cwd());if(r!==n)throw`Active branch "${r}" is not main branch`;let o=await gr(`${e}/package.json`),s=o.name.split("/")[1],i=await xr(o.name);if(i.versions.includes(o.version))console.log(`Package "${o.name}" version "${o.version}" already published. Skipping.`);else{console.log(`Building ${o.name} ${o.version}`),await p(`npm run build package --prefix ${e}`),await hr(e,t);let c=o.version.includes("beta")?"beta":o.version.includes("alpha")?"alpha":"latest",u=c==="alpha"?i["dist-tags"].alpha:void 0;if(console.log(await p(`npm publish --access=public --tag ${c}`,{cwd:t})),c==="beta"||c==="alpha"){let f=`${o.version.split(".")[0]}-${c}`;console.log(await p(`npm dist-tag add ${o.name}@${o.version} ${f}`))}if(u)try{console.log(await p(`npm unpublish ${o.name}@${u}`))}catch(f){console.error(`Removing old version ${o.name}@${u} failed.`),console.error(f)}}let a=`${s}/${o.version}`;(await p(`git tag -l ${a}`)).trim()||(console.log(`Creating tag "${a}"`),await p(`git tag ${a} && git push origin ${a}`))}async function xr(e){return JSON.parse((await p(`npm show ${e} --json`)).trim())}import{buildDocs as yr}from"@cxl/3doc/render.js";function Ue(e,t={}){for(let r in e)t[r]=`/${r}`;return t}function Vn(...e){let t=process.cwd(),n=JSON.parse(re(t+"/tsconfig.json","utf8"))?.compilerOptions?.outDir,o=wr(n),s=te(n,"package"),i=JSON.parse(re("package.json","utf8")),a=JSON.parse(re("../package.json","utf8")),c=!!i.browser,u=i.exports?.["."]??"index.bundle.js",f=c&&i.dependencies?Object.keys(i.dependencies):void 0,h;if(c){let m={};a.devDependencies&&Ue(a.devDependencies,m),i.dependencies&&Ue(i.dependencies,m),h=JSON.stringify({imports:m})}let R=i.exports?Object.values(i.exports).flatMap(m=>m?[te(n,m)]:[]):[{out:"index.bundle",in:te(n,"index.js")}];return je({outputDir:n,tasks:[k("test-screenshot.html","test-screenshot.html").catchError(()=>N),Ge("tsconfig.test.json"),Z("index.js")]},{target:"test",outputDir:n,tasks:[U(async()=>{try{process.chdir(n);let m=await xe({node:!c,mjs:!0,vfsRoot:"..",entryFile:"./test.js",importmap:h,log:console.log.bind(console)});Q(m)}finally{process.chdir(t)}}).ignoreElements()]},{target:"docs",outputDir:`../docs/${o}`,tasks:[$(m=>{yr({$:[],clean:!0,summary:!0,markdown:!0,cxlExtensions:!0,debug:!0,outputDir:`../docs/${o}`},C=>{m.next({path:C.name,source:Buffer.from(C.content)})}).then(()=>m.complete())})]},{target:"package",outputDir:".",tasks:[Fe(),Ae()]},{outputDir:".",tasks:[j(`rm -rf ${s}`)]},{outputDir:s,tasks:[k("README.md","README.md"),k("LICENSE.md","LICENSE.md").catchError(()=>N),Z(u),Ce(n,s,"*.d.ts"),Ie({entryPoints:R,platform:c?"browser":"node",outdir:s,external:f,packages:c?"bundle":"external"})]},{target:"publish",outputDir:n,tasks:[U(async()=>{await Me(".",s)}).ignoreElements()]},...e)}export{Ie as a,Fe as b,Z as c,je as d,j as e,Se as f,k as g,Wr as h,zr as i,Yr as j,Ce as k,Hr as l,Vn as m};
@@ -0,0 +1,2 @@
1
+ declare const _default: import("@typescript-eslint/utils/dist/ts-eslint").FlatConfig.ConfigArray;
2
+ export default _default;
@@ -0,0 +1,28 @@
1
+ import js from '@eslint/js';
2
+ import ts from 'typescript-eslint';
3
+ export default ts.config([
4
+ js.configs.recommended,
5
+ ts.configs.recommended,
6
+ {
7
+ files: ['**/*.ts', '**/*.tsx'],
8
+ languageOptions: {
9
+ ecmaVersion: 2022,
10
+ sourceType: 'module',
11
+ },
12
+ rules: {
13
+ '@typescript-eslint/member-ordering': 'error',
14
+ 'no-mixed-spaces-and-tabs': 'off',
15
+ 'no-prototype-builtins': 'off',
16
+ 'no-dupe-class-members': 'off',
17
+ 'sort-imports': 'off',
18
+ '@typescript-eslint/no-var-requires': 'off',
19
+ '@typescript-eslint/no-useless-constructor': 'error',
20
+ '@typescript-eslint/no-explicit-any': 2,
21
+ '@typescript-eslint/no-unused-vars': 'off',
22
+ '@typescript-eslint/explicit-function-return-type': 'off',
23
+ '@typescript-eslint/no-this-alias': 'off',
24
+ '@typescript-eslint/no-use-before-define': 'off',
25
+ '@typescript-eslint/no-empty-interface': 'off',
26
+ },
27
+ },
28
+ ]);
package/file.d.ts CHANGED
@@ -1,31 +1,29 @@
1
- import * as Terser from 'terser';
2
- import { Observable } from '@cxl/rx';
3
- import { Output } from '@cxl/source';
4
- interface MinifyConfig extends Terser.MinifyOptions {
5
- sourceMap?: false | {
6
- content?: string;
7
- url: string;
8
- };
9
- changePath?: boolean;
10
- }
1
+ import { Observable } from '../rx/index.js';
2
+ import { Output } from './builder.js';
3
+ /**
4
+ * Provides an Observable that emits the absolute paths of all entries in a given
5
+ * directory. Useful for streaming file paths for further processing.
6
+ */
11
7
  export declare function ls(dir: string): Observable<string, "none">;
12
8
  export declare function read(source: string): Promise<Output>;
13
- export declare function filterPath(matchPath: string): import("@cxl/rx").Operator<Output, Output>;
9
+ export declare function filterPath(matchPath: string): import("../rx/index.js").Operator<Output, Output>;
14
10
  export declare function file(source: string, out?: string): Observable<{
15
11
  path: string;
16
- source: Buffer;
12
+ source: Buffer<ArrayBufferLike>;
17
13
  }, "none">;
18
- export declare function basename(replace?: string): import("@cxl/rx").Operator<Output, Output>;
19
- export declare function concatFile(outName: string, separator?: string): import("@cxl/rx").Operator<Output, {
14
+ export declare function basename(replace?: string): import("../rx/index.js").Operator<Output, Output>;
15
+ export declare function concatFile(outName: string, separator?: string): import("../rx/index.js").Operator<Output, {
20
16
  path: string;
21
- source: Buffer;
17
+ source: Buffer<ArrayBuffer>;
22
18
  }>;
19
+ /**
20
+ * Reads multiple files asynchronously and emits them in order
21
+ */
23
22
  export declare function files(sources: string[]): Observable<Output, "none">;
24
23
  export declare function matchStat(fromPath: string, toPath: string): Promise<boolean>;
24
+ /**
25
+ * Copy Directory
26
+ */
25
27
  export declare function copyDir(fromPath: string, toPath: string, glob?: string): Observable<never, "none">;
26
28
  export declare function getSourceMap(out: Output): Output | undefined;
27
- export declare const MinifyDefault: MinifyConfig;
28
- export declare function minify(op?: MinifyConfig): (source: Observable<Output, "none">) => Observable<Output, "none">;
29
- export declare function minifyDir(dir: string, op?: MinifyConfig): Observable<Output, "none">;
30
29
  export declare function zip(src: string[], path: string): Observable<Output>;
31
- export {};
package/git.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export declare function getBranch(cwd: string): Promise<string>;
2
2
  export declare function checkBranchClean(branch: string): Promise<void>;
3
- export declare function checkBranchUpToDate(branch?: string): Promise<void>;
3
+ export declare function checkBranchUpToDate(branch: string): Promise<void>;
4
+ export declare function getMainBranch(cwd: string): Promise<string | undefined>;
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import{a as i,b as r,c as o,d as a,e as t,f as m,g as l,h as p,i as b,j as f,k as n,l as d,m as s}from"./chunk-ZYWVDQ3W.js";if(import.meta.main){let{buildLibrary:e}=await import("./library-MSWYOSE7.js");await e()}export{p as basename,a as build,s as buildLibrary,b as concatFile,n as copyDir,i as esbuild,t as exec,l as file,f as files,o as pkg,r as readme,m as shell,d as zip};
package/index.d.ts CHANGED
@@ -1,10 +1,6 @@
1
1
  #!/usr/bin/env node
2
- export { tsconfig, bundle as tsBundle } from './tsc.js';
3
- export { basename, file, files, concatFile, copyDir, minify, zip, } from './file.js';
4
- export { concat } from '@cxl/rx';
5
- export { mkdirp, sh, readJson } from '@cxl/program';
6
- export { Output } from '@cxl/source';
7
- export { AMD, REQUIRE_REPLACE, pkg, readme, bundle, bundleAmd, template, docgen, docgenTask, } from './package.js';
2
+ export { basename, file, files, concatFile, copyDir, zip } from './file.js';
3
+ export { pkg, readme, esbuild } from './package.js';
8
4
  export { Package } from './npm.js';
9
- export { buildCxl } from './cxl.js';
5
+ export { buildLibrary } from './library.js';
10
6
  export { Task, build, exec, shell } from './builder.js';
@@ -0,0 +1 @@
1
+ import{m as a}from"./chunk-ZYWVDQ3W.js";export{a as buildLibrary};
package/library.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ import { BuildConfiguration } from './builder.js';
2
+ export declare function buildLibrary(...extra: BuildConfiguration[]): Promise<void>;
package/lint.d.ts CHANGED
@@ -1,3 +1,4 @@
1
- import { Observable } from '@cxl/rx';
2
- import { Output } from '@cxl/source';
3
- export declare function eslint(options?: any): Observable<Output, "none">;
1
+ import { Observable } from '../rx/index.js';
2
+ import { Output } from './builder.js';
3
+ import type { ESLint } from 'eslint';
4
+ export declare function eslint(options?: ESLint.Options): Observable<Output, "none">;
package/npm.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export type License = 'GPL-3.0' | 'GPL-3.0-only' | 'Apache-2.0' | 'UNLICENSED' | 'SEE LICENSE IN LICENSE.txt';
1
+ export type License = 'GPL-3.0' | 'GPL-3.0-only' | 'Apache-2.0' | 'UNLICENSED' | 'SEE LICENSE IN LICENSE.md';
2
2
  export type Dependencies = Record<string, string>;
3
3
  export interface Package {
4
4
  name: string;
@@ -24,6 +24,9 @@ export interface Package {
24
24
  bundledDependecies?: Dependencies;
25
25
  type?: string;
26
26
  scripts?: Record<string, string>;
27
+ exports?: Record<string, string>;
28
+ bundledDependencies: Dependencies;
29
+ tsgo?: boolean;
27
30
  }
28
31
  export interface PackageInfo extends Package {
29
32
  'dist-tags': Record<string, string>;
@@ -33,6 +36,6 @@ export interface PackageInfo extends Package {
33
36
  export declare function readPackage(path: string): Promise<Package>;
34
37
  export declare function getLatestVersion(packageName: string, tag?: string): Promise<string | undefined>;
35
38
  export declare function isPackageVersionPublished(packageName: string, version: string): Promise<boolean>;
36
- export declare function testPackage(dir: string): Promise<void>;
37
- export declare function publishNpm(dir: string): Promise<void>;
39
+ export declare function testPackage(dir: string, distDir: string): Promise<void>;
40
+ export declare function publishNpm(dir: string, distDir: string): Promise<void>;
38
41
  export declare function getPackageInfo(name: string): Promise<PackageInfo>;
package/package.d.ts CHANGED
@@ -1,67 +1,15 @@
1
- import { Observable } from '@cxl/rx';
2
- import { Output } from '@cxl/source';
1
+ import { Observable } from '../rx/index.js';
2
+ import { Output } from './builder.js';
3
3
  import { Package } from './npm.js';
4
- import * as ts from 'typescript';
4
+ import * as esbuildApi from 'esbuild';
5
5
  export declare const BASEDIR: string;
6
+ export declare function esbuild(options: esbuildApi.BuildOptions): Observable<never, "none">;
6
7
  export declare function readPackage(base?: string): Package;
7
- export declare function docs(dirName: string, devMode?: boolean): Observable<any, "none">;
8
- export interface DocgenOptions {
9
- file: string | string[];
10
- name: string;
11
- npm?: string;
12
- setup?: string;
13
- repo?: string;
14
- repodir?: string;
15
- typeRoots?: string;
16
- sitemapBase?: string;
17
- scripts?: string;
18
- packageJson?: string;
19
- docsJson?: string;
20
- cwd?: string;
21
- forceInstall?: boolean;
22
- markdown?: boolean;
23
- baseHref?: string;
24
- tag: string;
25
- outDir?: string;
26
- tmpDir?: string;
27
- rootDir?: string;
28
- customJsDocTags?: string[];
29
- exports?: string[];
30
- summary?: boolean;
31
- followReferences?: boolean;
32
- cxlExtensions?: boolean;
33
- headHtml?: string;
34
- }
35
- export declare function docgen(options: DocgenOptions): Promise<{
36
- name: string;
37
- version: string;
38
- description: string;
39
- sitemap: string;
40
- }>;
41
- export declare function docgenTask(packages: DocgenOptions[], commonOptions?: Partial<DocgenOptions>): Observable<{
42
- path: string;
43
- source: Buffer;
44
- }, "none">;
8
+ /**
9
+ * Generate README file
10
+ */
45
11
  export declare function readme(): Observable<{
46
12
  path: string;
47
- source: Buffer;
48
- }, "none">;
49
- export declare function pkg(): Observable<Output, "none">;
50
- export declare function AMD(): Observable<Output, "none">;
51
- export declare function bundle(files: Record<string, string>, outFile: string, config?: ts.CompilerOptions): Observable<Output, "none">;
52
- export declare function bundleAmd(files: Record<string, string>, outFile: string): Observable<Output, "none">;
53
- export declare const REQUIRE_REPLACE = "\n\trequire.replace = function (path) {\n\t\treturn path.replace(\n\t\t\t/^@cxl\\/workspace\\.(.+)/,\n\t\t\t(str, p1) =>\n\t\t\t\t`/cxl.app/dist/${str.endsWith('.js') ? p1 : p1 + '/index.js'}`\n\t\t).replace(\n\t\t\t/^@cxl\\/(ui.*)/,\n\t\t\t(str, p1) =>\n\t\t\t\t`/ui/dist/${str.endsWith('.js') ? p1 : p1 + '/index.js'}`\n\t\t).replace(\n\t\t\t/^@cxl\\/(.+)/,\n\t\t\t(str, p1) =>\n\t\t\t\t`/cxl/dist/${str.endsWith('.js') ? p1 : p1 + '/index.js'}`\n\t\t);\n\t};\n";
54
- interface TemplateConfig {
55
- header: string;
56
- debugHeader: string;
57
- }
58
- export declare function template(filename: string, config?: Partial<TemplateConfig>): Observable<{
59
- path: string;
60
- source: string;
13
+ source: Buffer<ArrayBuffer>;
61
14
  }, "none">;
62
- export interface PublishConfiguration {
63
- s3Path: string;
64
- environment: 'dev' | 'prod';
65
- }
66
- export declare function deployS3({ environment, s3Path }: PublishConfiguration): Observable<never, "none">;
67
- export {};
15
+ export declare function pkg(main: string): Observable<Output, "none">;
package/package.json CHANGED
@@ -1,32 +1,31 @@
1
1
  {
2
- "name": "@cxl/build",
3
- "version": "0.2.0",
4
- "bin": {
5
- "cxl-build": "index.js"
6
- },
7
- "description": "Build Tool",
8
- "license": "GPL-3.0",
9
- "main": "index.js",
10
- "scripts": {
11
- "build-index": "tsc -b && tsc -b tsconfig.amd.json",
12
- "build-test": "tsc -b tsconfig.test.json",
13
- "build": "node build.mjs",
14
- "test": "npm run build && cd ../dist/build && node ../tester --node"
15
- },
16
- "dependencies": {
17
- "eslint": "^8.56.0",
18
- "terser": "^5.16.1",
19
- "typescript": "^5.5.3",
20
- "@cxl/rx": "~0.8.0",
21
- "@cxl/source": "~0.0.2",
22
- "@cxl/amd": "~0.0.1",
23
- "@cxl/program": "~0.0.3"
24
- },
25
- "bugs": "https://github.com/cxlio/cxl/issues",
26
- "homepage": "https://cxlio.github.io/cxl/build",
27
- "repository": {
28
- "type": "git",
29
- "url": "https://github.com/cxlio/cxl.git",
30
- "directory": "build"
31
- }
32
- }
2
+ "name": "@cxl/build",
3
+ "version": "1.0.0-beta.1",
4
+ "description": "A flexible build system that executes configurable build tasks producing output files, with logging and shell command support.",
5
+ "license": "GPL-3.0",
6
+ "files": [
7
+ "*.js",
8
+ "*.d.ts",
9
+ "*.css",
10
+ "LICENSE.md",
11
+ "*.md"
12
+ ],
13
+ "main": "index.bundle.js",
14
+ "homepage": "https://cxlio.github.io/cxl/build",
15
+ "bugs": "https://github.com/cxlio/cxl/issues",
16
+ "bin": {
17
+ "cxl-build": "index.bundle.js"
18
+ },
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "https://github.com/cxlio/cxl.git",
22
+ "directory": "build"
23
+ },
24
+ "dependencies": {
25
+ "@eslint/js": "^9.30.1",
26
+ "esbuild": "*",
27
+ "typescript": "^5.9.2",
28
+ "typescript-eslint": "^8.39.0"
29
+ },
30
+ "type": "module"
31
+ }
package/test.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: import("@cxl/spec").Test;
1
+ declare const _default: import("../spec/index.js").Test;
2
2
  export default _default;
package/tsc.d.ts CHANGED
@@ -1,10 +1,9 @@
1
- import type { Output } from '@cxl/source';
2
- import { Observable, Subscriber } from '@cxl/rx';
3
- import type { BuilderProgram, BuildOptions, Diagnostic, FormatDiagnosticsHost, Program } from 'typescript';
1
+ import { Observable, Subscriber } from '../rx/index.js';
2
+ import type { BuilderProgram, BuildOptions, Diagnostic, FormatDiagnosticsHost, Program, ParsedCommandLine } from 'typescript';
3
+ import { Output } from './builder.js';
4
4
  export declare const tscVersion: string;
5
5
  export declare function buildDiagnostics(program: Program | BuilderProgram): Diagnostic[];
6
- export declare function printDiagnostics(diagnostics: Diagnostic[], host?: FormatDiagnosticsHost): void;
7
- export declare function tsbuild(tsconfig: string | undefined, subs: Subscriber<Output>, defaultOptions?: BuildOptions, outDir?: string): void;
8
- export declare function tsconfig(tsconfig?: string, options?: BuildOptions, outputDir?: string): Observable<Output, "none">;
9
- export declare function flagsToString(flags: any, Flags: any): string[];
10
- export declare function bundle(tsconfig?: string, outFile?: string, amd?: boolean): Observable<Output, "none">;
6
+ export declare function printDiagnostics(diagnostics: readonly Diagnostic[], host?: FormatDiagnosticsHost): void;
7
+ export declare function tsbuild(tsconfig: string | undefined, subs: Subscriber<Output>, defaultOptions?: BuildOptions): void;
8
+ export declare function tsconfig(tsconfig?: string, options?: BuildOptions): Observable<Output, "none">;
9
+ export declare function parseTsConfig(tsconfig: string): ParsedCommandLine;
package/amd-static.d.ts DELETED
File without changes
package/amd-static.js DELETED
@@ -1,56 +0,0 @@
1
- (function (window) {
2
- function _require(path, resolve, reject) {
3
- if (Array.isArray(path)) {
4
- path = path[0];
5
- return Promise.resolve()
6
- .then(function () { return _require(path); })
7
- .then(resolve, reject);
8
- }
9
- else {
10
- var mod = define.modules[path];
11
- if (!mod) {
12
- try {
13
- mod = module.require(path);
14
- }
15
- catch (e) {
16
- throw new Error("Module \"".concat(path, "\" not found"));
17
- }
18
- }
19
- return mod;
20
- }
21
- }
22
- window.define = window.define || define;
23
- function define(name, injects, module) {
24
- window.require = window.require || _require;
25
- if (arguments.length === 2 && Array.isArray(name)) {
26
- module = injects;
27
- injects = name;
28
- name = new Error().fileName;
29
- }
30
- else if (arguments.length === 1) {
31
- module = name;
32
- injects = [];
33
- name = new Error().fileName;
34
- }
35
- var modules = define.modules || (define.modules = window.require.modules || {});
36
- var moduleExports = (name && modules[name]) || {};
37
- if (name)
38
- modules[name] = moduleExports;
39
- function findModule(name) {
40
- if (name === 'exports')
41
- return moduleExports;
42
- if (name === 'require')
43
- return window.require;
44
- var id = name.replace(/\.js$/, '');
45
- return modules[id] || _require(name);
46
- }
47
- var args = injects.map(findModule);
48
- var oldModule = window.module;
49
- window.module = { exports: moduleExports };
50
- module.apply(void 0, args);
51
- if (name && window.module.exports !== moduleExports)
52
- modules[name] = window.module.exports;
53
- window.module = oldModule;
54
- define.amd = true;
55
- }
56
- })(typeof self === 'undefined' ? global : self);
@@ -1 +0,0 @@
1
- {"program":{"fileNames":["../../node_modules/typescript/lib/lib.d.ts","../../node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../node_modules/typescript/lib/lib.scripthost.d.ts","../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../node_modules/typescript/lib/lib.decorators.d.ts","../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../build/amd.js","../../node_modules/@types/codemirror/index.d.ts","../../node_modules/@types/eslint/helpers.d.ts","../../node_modules/@types/eslint/lib/rules/index.d.ts","../../node_modules/@types/json-schema/index.d.ts","../../node_modules/@types/estree/index.d.ts","../../node_modules/@types/eslint/index.d.ts","../../node_modules/@types/linkify-it/index.d.ts","../../node_modules/@types/mdurl/encode.d.ts","../../node_modules/@types/mdurl/decode.d.ts","../../node_modules/@types/mdurl/parse.d.ts","../../node_modules/@types/mdurl/format.d.ts","../../node_modules/@types/mdurl/index.d.ts","../../node_modules/@types/markdown-it/lib/common/utils.d.ts","../../node_modules/@types/markdown-it/lib/token.d.ts","../../node_modules/@types/markdown-it/lib/rules_inline/state_inline.d.ts","../../node_modules/@types/markdown-it/lib/helpers/parse_link_label.d.ts","../../node_modules/@types/markdown-it/lib/helpers/parse_link_destination.d.ts","../../node_modules/@types/markdown-it/lib/helpers/parse_link_title.d.ts","../../node_modules/@types/markdown-it/lib/helpers/index.d.ts","../../node_modules/@types/markdown-it/lib/ruler.d.ts","../../node_modules/@types/markdown-it/lib/rules_block/state_block.d.ts","../../node_modules/@types/markdown-it/lib/parser_block.d.ts","../../node_modules/@types/markdown-it/lib/rules_core/state_core.d.ts","../../node_modules/@types/markdown-it/lib/parser_core.d.ts","../../node_modules/@types/markdown-it/lib/parser_inline.d.ts","../../node_modules/@types/markdown-it/lib/renderer.d.ts","../../node_modules/@types/markdown-it/lib/index.d.ts","../../node_modules/@types/markdown-it/index.d.ts","../../node_modules/@types/node/assert.d.ts","../../node_modules/@types/node/assert/strict.d.ts","../../node_modules/buffer/index.d.ts","../../node_modules/undici-types/header.d.ts","../../node_modules/undici-types/readable.d.ts","../../node_modules/undici-types/file.d.ts","../../node_modules/undici-types/fetch.d.ts","../../node_modules/undici-types/formdata.d.ts","../../node_modules/undici-types/connector.d.ts","../../node_modules/undici-types/client.d.ts","../../node_modules/undici-types/errors.d.ts","../../node_modules/undici-types/dispatcher.d.ts","../../node_modules/undici-types/global-dispatcher.d.ts","../../node_modules/undici-types/global-origin.d.ts","../../node_modules/undici-types/pool-stats.d.ts","../../node_modules/undici-types/pool.d.ts","../../node_modules/undici-types/handlers.d.ts","../../node_modules/undici-types/balanced-pool.d.ts","../../node_modules/undici-types/agent.d.ts","../../node_modules/undici-types/mock-interceptor.d.ts","../../node_modules/undici-types/mock-agent.d.ts","../../node_modules/undici-types/mock-client.d.ts","../../node_modules/undici-types/mock-pool.d.ts","../../node_modules/undici-types/mock-errors.d.ts","../../node_modules/undici-types/proxy-agent.d.ts","../../node_modules/undici-types/api.d.ts","../../node_modules/undici-types/cookies.d.ts","../../node_modules/undici-types/patch.d.ts","../../node_modules/undici-types/filereader.d.ts","../../node_modules/undici-types/diagnostics-channel.d.ts","../../node_modules/undici-types/websocket.d.ts","../../node_modules/undici-types/content-type.d.ts","../../node_modules/undici-types/cache.d.ts","../../node_modules/undici-types/interceptors.d.ts","../../node_modules/undici-types/index.d.ts","../../node_modules/@types/node/globals.d.ts","../../node_modules/@types/node/async_hooks.d.ts","../../node_modules/@types/node/buffer.d.ts","../../node_modules/@types/node/child_process.d.ts","../../node_modules/@types/node/cluster.d.ts","../../node_modules/@types/node/console.d.ts","../../node_modules/@types/node/constants.d.ts","../../node_modules/@types/node/crypto.d.ts","../../node_modules/@types/node/dgram.d.ts","../../node_modules/@types/node/diagnostics_channel.d.ts","../../node_modules/@types/node/dns.d.ts","../../node_modules/@types/node/dns/promises.d.ts","../../node_modules/@types/node/domain.d.ts","../../node_modules/@types/node/dom-events.d.ts","../../node_modules/@types/node/events.d.ts","../../node_modules/@types/node/fs.d.ts","../../node_modules/@types/node/fs/promises.d.ts","../../node_modules/@types/node/http.d.ts","../../node_modules/@types/node/http2.d.ts","../../node_modules/@types/node/https.d.ts","../../node_modules/@types/node/inspector.d.ts","../../node_modules/@types/node/module.d.ts","../../node_modules/@types/node/net.d.ts","../../node_modules/@types/node/os.d.ts","../../node_modules/@types/node/path.d.ts","../../node_modules/@types/node/perf_hooks.d.ts","../../node_modules/@types/node/process.d.ts","../../node_modules/@types/node/punycode.d.ts","../../node_modules/@types/node/querystring.d.ts","../../node_modules/@types/node/readline.d.ts","../../node_modules/@types/node/readline/promises.d.ts","../../node_modules/@types/node/repl.d.ts","../../node_modules/@types/node/sea.d.ts","../../node_modules/@types/node/stream.d.ts","../../node_modules/@types/node/stream/promises.d.ts","../../node_modules/@types/node/stream/consumers.d.ts","../../node_modules/@types/node/stream/web.d.ts","../../node_modules/@types/node/string_decoder.d.ts","../../node_modules/@types/node/test.d.ts","../../node_modules/@types/node/timers.d.ts","../../node_modules/@types/node/timers/promises.d.ts","../../node_modules/@types/node/tls.d.ts","../../node_modules/@types/node/trace_events.d.ts","../../node_modules/@types/node/tty.d.ts","../../node_modules/@types/node/url.d.ts","../../node_modules/@types/node/util.d.ts","../../node_modules/@types/node/v8.d.ts","../../node_modules/@types/node/vm.d.ts","../../node_modules/@types/node/wasi.d.ts","../../node_modules/@types/node/worker_threads.d.ts","../../node_modules/@types/node/zlib.d.ts","../../node_modules/@types/node/globals.global.d.ts","../../node_modules/@types/node/index.d.ts","../../node_modules/@types/pngjs/index.d.ts","../../node_modules/@types/semver/classes/semver.d.ts","../../node_modules/@types/semver/functions/parse.d.ts","../../node_modules/@types/semver/functions/valid.d.ts","../../node_modules/@types/semver/functions/clean.d.ts","../../node_modules/@types/semver/functions/inc.d.ts","../../node_modules/@types/semver/functions/diff.d.ts","../../node_modules/@types/semver/functions/major.d.ts","../../node_modules/@types/semver/functions/minor.d.ts","../../node_modules/@types/semver/functions/patch.d.ts","../../node_modules/@types/semver/functions/prerelease.d.ts","../../node_modules/@types/semver/functions/compare.d.ts","../../node_modules/@types/semver/functions/rcompare.d.ts","../../node_modules/@types/semver/functions/compare-loose.d.ts","../../node_modules/@types/semver/functions/compare-build.d.ts","../../node_modules/@types/semver/functions/sort.d.ts","../../node_modules/@types/semver/functions/rsort.d.ts","../../node_modules/@types/semver/functions/gt.d.ts","../../node_modules/@types/semver/functions/lt.d.ts","../../node_modules/@types/semver/functions/eq.d.ts","../../node_modules/@types/semver/functions/neq.d.ts","../../node_modules/@types/semver/functions/gte.d.ts","../../node_modules/@types/semver/functions/lte.d.ts","../../node_modules/@types/semver/functions/cmp.d.ts","../../node_modules/@types/semver/functions/coerce.d.ts","../../node_modules/@types/semver/classes/comparator.d.ts","../../node_modules/@types/semver/classes/range.d.ts","../../node_modules/@types/semver/functions/satisfies.d.ts","../../node_modules/@types/semver/ranges/max-satisfying.d.ts","../../node_modules/@types/semver/ranges/min-satisfying.d.ts","../../node_modules/@types/semver/ranges/to-comparators.d.ts","../../node_modules/@types/semver/ranges/min-version.d.ts","../../node_modules/@types/semver/ranges/valid.d.ts","../../node_modules/@types/semver/ranges/outside.d.ts","../../node_modules/@types/semver/ranges/gtr.d.ts","../../node_modules/@types/semver/ranges/ltr.d.ts","../../node_modules/@types/semver/ranges/intersects.d.ts","../../node_modules/@types/semver/ranges/simplify.d.ts","../../node_modules/@types/semver/ranges/subset.d.ts","../../node_modules/@types/semver/internals/identifiers.d.ts","../../node_modules/@types/semver/index.d.ts","../../node_modules/@types/tern/lib/tern/index.d.ts","../../node_modules/@types/tern/lib/infer/index.d.ts","../../node_modules/@types/tern/index.d.ts","../../node_modules/@types/yauzl/index.d.ts"],"fileInfos":["a7297ff837fcdf174a9524925966429eb8e5feecc2cc55cc06574e6b092c1eaa","44e584d4f6444f58791784f1d530875970993129442a847597db702a073ca68c","45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","4af6b0c727b7a2896463d512fafd23634229adf69ac7c00e2ae15a09cb084fad","80e18897e5884b6723488d4f5652167e7bb5024f946743134ecc4aa4ee731f89","cd034f499c6cdca722b60c04b5b1b78e058487a7085a8e0d6fb50809947ee573","6920e1448680767498a0b77c6a00a8e77d14d62c3da8967b171f1ddffa3c18e4","dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","bc47685641087c015972a3f072480889f0d6c65515f12bd85222f49a98952ed7","0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","ea011c76963fb15ef1cdd7ce6a6808b46322c527de2077b6cfdf23ae6f5f9ec7","38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","bb42a7797d996412ecdc5b2787720de477103a0b2e53058569069a0e2bae6c7e","4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","b541a838a13f9234aba650a825393ffc2292dc0fc87681a5d81ef0c96d281e7a","9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","ae37d6ccd1560b0203ab88d46987393adaaa78c919e51acf32fb82c86502e98c","063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","5e07ed3809d48205d5b985642a59f2eba47c402374a7cf8006b686f79efadcbd","2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","479553e3779be7d4f68e9f40cdb82d038e5ef7592010100410723ceced22a0f7","368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","8183509758c17d0c70da9b81f7737a74323ada9c0f46d177143389af452a5bfe","f4584e95c63371b5d507749924d94e324c7e041f964975a92e7c8a1abc840328","64d4b35c5456adf258d2cf56c341e203a073253f229ef3208fc0d5020253b241","0133ebdd17a823ae56861948870cde4dac18dd8818ab641039c85bbb720429e0","f3d8c757e148ad968f0d98697987db363070abada5f503da3c06aefd9d4248c1","ade6e6c42087188b5c56f0384651c32736b2df192dadd3c8617e9845b76fd41b","874d84ca5699231d5af2868fef01fc63f948bd83be928881479db48508f92ca0","6503fb6addf62f9b10f8564d9869ad824565a914ec1ac3dd7d13da14a3f57036","f313731860257325f13351575f381fef333d4dfe30daf5a2e72f894208feea08","951b37f7d86f6012f09e6b35f1de57c69d75f16908cb0adaa56b93675ea0b853","3816fc03ffd9cbd1a7a3362a264756a4a1d547caabea50ca68303046be40e376","0c417b4ec46b88fb62a43ec00204700b560d01eb5677c7faa8ecd34610f096a8","13d29cdeb64e8496424edf42749bbb47de5e42d201cf958911a4638cbcffbd3f","0f9e381eecc5860f693c31fe463b3ca20a64ca9b8db0cf6208cd4a053f064809","95902d5561c6aac5dfc40568a12b0aca324037749dcd32a81f23423bfde69bab","5dfb2aca4136abdc5a2740f14be8134a6e6b66fd53470bb2e954e40f8abfaf3e","577463167dd69bd81f76697dfc3f7b22b77a6152f60a602a9218e52e3183ad67","b8396e9024d554b611cbe31a024b176ba7116063d19354b5a02dccd8f0118989","4b28e1c5bf88d891e07a1403358b81a51b3ba2eae1ffada51cca7476b5ac6407","7150ad575d28bf98fae321a1c0f10ad17b127927811f488ded6ff1d88d4244e5","8b155c4757d197969553de3762c8d23d5866710301de41e1b66b97c9ed867003","93733466609dd8bf72eace502a24ca7574bd073d934216e628f1b615c8d3cb3c","45e9228761aabcadb79c82fb3008523db334491525bdb8e74e0f26eaf7a4f7f4","aeacac2778c9821512b6b889da79ac31606a863610c8f28da1e483579627bf90","569fdb354062fc098a6a3ba93a029edf22d6fe480cf72b231b3c07832b2e7c97","bf9876e62fb7f4237deafab8c7444770ef6e82b4cad2d5dc768664ff340feeb2","6cf60e76d37faf0fbc2f80a873eab0fd545f6b1bf300e7f0823f956ddb3083e9","6adaa6103086f931e3eee20f0987e86e8879e9d13aa6bd6075ccfc58b9c5681c","ee0af0f2b8d3b4d0baf669f2ff6fcef4a8816a473c894cc7c905029f7505fed0","2db0dd3aaa2ed285950273ce96ae8a450b45423aa9da2d10e194570f1233fa6b","7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","7180c03fd3cb6e22f911ce9ba0f8a7008b1a6ddbe88ccf16a9c8140ef9ac1686","25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","54cb85a47d760da1c13c00add10d26b5118280d44d58e6908d8e89abbd9d7725","3e4825171442666d31c845aeb47fcd34b62e14041bb353ae2b874285d78482aa","c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","a967bfe3ad4e62243eb604bf956101e4c740f5921277c60debaf325c1320bf88","e9775e97ac4877aebf963a0289c81abe76d1ec9a2a7778dbe637e5151f25c5f3","471e1da5a78350bc55ef8cef24eb3aca6174143c281b8b214ca2beda51f5e04a","cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","db3435f3525cd785bf21ec6769bf8da7e8a776be1a99e2e7efb5f244a2ef5fee","c3b170c45fc031db31f782e612adf7314b167e60439d304b49e704010e7bafe5","40383ebef22b943d503c6ce2cb2e060282936b952a01bea5f9f493d5fb487cc7","4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","3a84b7cb891141824bd00ef8a50b6a44596aded4075da937f180c90e362fe5f6","13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","33203609eba548914dc83ddf6cadbc0bcb6e8ef89f6d648ca0908ae887f9fcc5","0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","9f0a92164925aa37d4a5d9dd3e0134cff8177208dba55fd2310cd74beea40ee2","8bfdb79bf1a9d435ec48d9372dc93291161f152c0865b81fc0b2694aedb4578d","2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","d32275be3546f252e3ad33976caf8c5e842c09cb87d468cb40d5f4cf092d1acc","4a0c3504813a3289f7fb1115db13967c8e004aa8e4f8a9021b95285502221bd1","e7be367719c613d580d4b27fdf8fe64c9736f48217f4b322c0d63b2971460918","3d77c73be94570813f8cadd1f05ebc3dc5e2e4fdefe4d340ca20cd018724ee36","392eadc2af403dd10b4debfbc655c089a7fa6a9750caeb770cfb30051e55e848","62f1c00d3d246e0e3cf0224f91e122d560428ec1ccc36bb51d4574a84f1dbad0","53f0960fdcc53d097918adfd8861ffbe0db989c56ffc16c052197bf115da5ed6","662163e5327f260b23ca0a1a1ad8a74078aabb587c904fcb5ef518986987eaff","a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb","c48c503c6b3f63baf18257e9a87559b5602a4e960107c762586d2a6a62b64a18","b0c0d1d13be149f790a75b381b413490f98558649428bb916fd2d71a3f47a134","3c884d9d9ec454bdf0d5a0b8465bf8297d2caa4d853851d92cc417ac6f30b969","0364f8bb461d6e84252412d4e5590feda4eb582f77d47f7a024a7a9ff105dfdc","5433f7f77cd1fd53f45bd82445a4e437b2f6a72a32070e907530a4fea56c30c8","d0ca5d7df114035258a9d01165be309371fcccf0cccd9d57b1453204686d1ed0","ee1ee365d88c4c6c0c0a5a5701d66ebc27ccd0bcfcfaa482c6e2e7fe7b98edf7","9a30b7fefd7f8abbca4828d481c61c18e40fe5ff107e113b1c1fcd2c8dcf2743","173b6275a81ebdb283b180654890f46516c21199734fed01a773b1c168b8c45c","304f66274aa8119e8d65a49b1cff84cbf803def6afe1b2cc987386e9a9890e22","1b9adafe8a7fefaeaf9099a0e06f602903f6268438147b843a33a5233ac71745","98273274f2dbb79b0b2009b20f74eca4a7146a3447c912d580cd5d2d94a7ae30","c933f7ba4b201c98b14275fd11a14abb950178afd2074703250fe3654fc10cd2","2eaa31492906bc8525aff3c3ec2236e22d90b0dfeee77089f196cd0adf0b3e3b","ea455cc68871b049bcecd9f56d4cf27b852d6dafd5e3b54468ca87cc11604e4d","8f5814f29dbaf8bacd1764aebdf1c8a6eb86381f6a188ddbac0fcbaab855ce52","a63d03de72adfb91777784015bd3b4125abd2f5ef867fc5a13920b5649e8f52b","d20e003f3d518a7c1f749dbe27c6ab5e3be7b3c905a48361b04a9557de4a6900","1d4d78c8b23c9ddaaaa49485e6adc2ec01086dfe5d8d4d36ca4cdc98d2f7e74a","44fc16356b81c0463cc7d7b2b35dcf324d8144136f5bc5ce73ced86f2b3475b5","575fb200043b11b464db8e42cc64379c5fd322b6d787638e005b5ee98a64486d","6de2f225d942562733e231a695534b30039bdf1875b377bb7255881f0df8ede8","56249fd3ef1f6b90888e606f4ea648c43978ef43a7263aafad64f8d83cd3b8aa","139ad1dc93a503da85b7a0d5f615bddbae61ad796bc68fedd049150db67a1e26","7b166975fdbd3b37afb64707b98bca88e46577bbc6c59871f9383a7df2daacd1","9eece5e586312581ccd106d4853e861aaaa1a39f8e3ea672b8c3847eedd12f6e","81505c54d7cad0009352eaa21bd923ab7cdee7ec3405357a54d9a5da033a2084","269929a24b2816343a178008ac9ae9248304d92a8ba8e233055e0ed6dbe6ef71","93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","3c1f19c7abcda6b3a4cf9438a15c7307a080bd3b51dfd56b198d9f86baf19447","2ee1645e0df9d84467cfe1d67b0ad3003c2f387de55874d565094464ee6f2927","071d4b4af5755e1a081aa3b785b5526d09276af5a50e4725dea26edd4e7deb31","9cf780e96b687e4bdfd1907ed26a688c18b89797490a00598fa8b8ab683335dd","98e00f3613402504bc2a2c9a621800ab48e0a463d1eed062208a4ae98ad8f84c","9ae88ce9f73446c24b2d2452e993b676da1b31fca5ceb7276e7f36279f693ed1","e49d7625faff2a7842e4e7b9b197f972633fca685afcf6b4403400c97d087c36","b82c38abc53922b1b3670c3af6f333c21b735722a8f156e7d357a2da7c53a0a0","b423f53647708043299ded4daa68d95c967a2ac30aa1437adc4442129d7d0a6c","7245af181218216bacb01fbdf51095617a51661f20d77178c69a377e16fb69ed","4f0fc7b7f54422bd97cfaf558ddb4bca86893839367b746a8f86b60ac7619673","4cdd8b6b51599180a387cc7c1c50f49eca5ce06595d781638fd0216520d98246","d91a7d8b5655c42986f1bdfe2105c4408f472831c8f20cf11a8c3345b6b56c8c","8704423bf338bff381ebc951ed819935d0252d90cd6de7dffe5b0a5debb65d07","7c6929fd7cbf38499b6a600b91c3b603d1d78395046dc3499b2b92d01418b94b","ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","a42be67ed1ddaec743582f41fc219db96a1b69719fccac6d1464321178d610fc","68aef7344b608c22e2e6b3a5a386cb215568e1689923e5c04a89d9a62bfe2aaf","5b5337f28573ffdbc95c3653c4a7961d0f02fdf4788888253bf74a3b5a05443e","9871b7ee672bc16c78833bdab3052615834b08375cb144e4d2cba74473f4a589","c863198dae89420f3c552b5a03da6ed6d0acfa3807a64772b895db624b0de707","8b03a5e327d7db67112ebbc93b4f744133eda2c1743dbb0a990c61a8007823ef","86c73f2ee1752bac8eeeece234fd05dfcf0637a4fbd8032e4f5f43102faa8eec","42fad1f540271e35ca37cecda12c4ce2eef27f0f5cf0f8dd761d723c744d3159","ff3743a5de32bee10906aff63d1de726f6a7fd6ee2da4b8229054dfa69de2c34","83acd370f7f84f203e71ebba33ba61b7f1291ca027d7f9a662c6307d74e4ac22","1445cec898f90bdd18b2949b9590b3c012f5b7e1804e6e329fb0fe053946d5ec","0e5318ec2275d8da858b541920d9306650ae6ac8012f0e872fe66eb50321a669","cf530297c3fb3a92ec9591dd4fa229d58b5981e45fe6702a0bd2bea53a5e59be","c1f6f7d08d42148ddfe164d36d7aba91f467dbcb3caa715966ff95f55048b3a4","f4e9bf9103191ef3b3612d3ec0044ca4044ca5be27711fe648ada06fad4bcc85","0c1ee27b8f6a00097c2d6d91a21ee4d096ab52c1e28350f6362542b55380059a","7677d5b0db9e020d3017720f853ba18f415219fb3a9597343b1b1012cfd699f7","bc1c6bc119c1784b1a2be6d9c47addec0d83ef0d52c8fbe1f14a51b4dfffc675","52cf2ce99c2a23de70225e252e9822a22b4e0adb82643ab0b710858810e00bf1","770625067bb27a20b9826255a8d47b6b5b0a2d3dfcbd21f89904c731f671ba77","d1ed6765f4d7906a05968fb5cd6d1db8afa14dbe512a4884e8ea5c0f5e142c80","799c0f1b07c092626cf1efd71d459997635911bb5f7fc1196efe449bba87e965","2a184e4462b9914a30b1b5c41cf80c6d3428f17b20d3afb711fff3f0644001fd","9eabde32a3aa5d80de34af2c2206cdc3ee094c6504a8d0c2d6d20c7c179503cc","397c8051b6cfcb48aa22656f0faca2553c5f56187262135162ee79d2b2f6c966","a8ead142e0c87dcd5dc130eba1f8eeed506b08952d905c47621dc2f583b1bff9","a02f10ea5f73130efca046429254a4e3c06b5475baecc8f7b99a0014731be8b3","c2576a4083232b0e2d9bd06875dd43d371dee2e090325a9eac0133fd5650c1cb","4c9a0564bb317349de6a24eb4efea8bb79898fa72ad63a1809165f5bd42970dd","f40ac11d8859092d20f953aae14ba967282c3bb056431a37fced1866ec7a2681","cc11e9e79d4746cc59e0e17473a59d6f104692fd0eeea1bdb2e206eabed83b03","b444a410d34fb5e98aa5ee2b381362044f4884652e8bc8a11c8fe14bbd85518e","c35808c1f5e16d2c571aa65067e3cb95afeff843b259ecfa2fc107a9519b5392","14d5dc055143e941c8743c6a21fa459f961cbc3deedf1bfe47b11587ca4b3ef5","a3ad4e1fc542751005267d50a6298e6765928c0c3a8dce1572f2ba6ca518661c","f237e7c97a3a89f4591afd49ecb3bd8d14f51a1c4adc8fcae3430febedff5eb6","3ffdfbec93b7aed71082af62b8c3e0cc71261cc68d796665faa1e91604fbae8f","662201f943ed45b1ad600d03a90dffe20841e725203ced8b708c91fcd7f9379a","c9ef74c64ed051ea5b958621e7fb853fe3b56e8787c1587aefc6ea988b3c7e79","2462ccfac5f3375794b861abaa81da380f1bbd9401de59ffa43119a0b644253d","34baf65cfee92f110d6653322e2120c2d368ee64b3c7981dff08ed105c4f19b0","85f8ebd7f245e8bf29da270e8b53dcdd17528826ffd27176c5fc7e426213ef5a","0ad2a04de2246300db5468491b6d76f1f8de510822eaa0c89b46ada60f4f2cbe","7c1e19aaac1f980bf5842da2f40b19b50aa5d9429be97384a82219680ef70498","8868835a248a95ee97085831014d989ccfc87c0bc3dcffc2d628809d9648815f","65dfa4bc49ccd1355789abb6ae215b302a5b050fdee9651124fe7e826f33113c"],"root":[50],"options":{"allowJs":true,"composite":true,"declaration":true,"outFile":"./amd-static.js"},"outSignature":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","latestChangedDtsFile":"./amd-static.d.ts"},"version":"5.5.3"}