@lytjs/cli 4.0.4 → 4.1.0
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/dist/index.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/types/build.d.ts +30 -0
- package/dist/types/build.d.ts.map +1 -0
- package/dist/types/create.d.ts +19 -0
- package/dist/types/create.d.ts.map +1 -0
- package/dist/types/dev.d.ts +24 -0
- package/dist/types/dev.d.ts.map +1 -0
- package/dist/types/hmr.d.ts +55 -0
- package/dist/types/hmr.d.ts.map +1 -0
- package/dist/types/index.d.ts +20 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/scaffold.d.ts +52 -0
- package/dist/types/scaffold.d.ts.map +1 -0
- package/dist/types/utils.d.ts +92 -0
- package/dist/types/utils.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
var ne=Object.create;var F=Object.defineProperty;var se=Object.getOwnPropertyDescriptor;var ie=Object.getOwnPropertyNames;var ae=Object.getPrototypeOf,ce=Object.prototype.hasOwnProperty;var le=(e,o)=>{for(var r in o)F(e,r,{get:o[r],enumerable:!0})},N=(e,o,r,n)=>{if(o&&typeof o=="object"||typeof o=="function")for(let s of ie(o))!ce.call(e,s)&&s!==r&&F(e,s,{get:()=>o[s],enumerable:!(n=se(o,s))||n.enumerable});return e};var h=(e,o,r)=>(r=e!=null?ne(ae(e)):{},N(o||!e||!e.__esModule?F(r,"default",{value:e,enumerable:!0}):r,e)),pe=e=>N(F({},"__esModule",{value:!0}),e);var Ze={};le(Ze,{createHMREndpoint:()=>G,createHMRServer:()=>V,createProject:()=>O,getHMRClientScript:()=>B});module.exports=pe(Ze);var te=h(require("fs")),oe=h(require("path"));var v=h(require("fs")),U=h(require("path")),ue="\x1B[0m",de={black:"\x1B[30m",red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m",cyan:"\x1B[36m",white:"\x1B[37m",brightRed:"\x1B[91m",brightGreen:"\x1B[92m",brightYellow:"\x1B[93m",brightBlue:"\x1B[94m",brightMagenta:"\x1B[95m",brightCyan:"\x1B[96m",brightWhite:"\x1B[97m",bgBlack:"\x1B[40m",bgRed:"\x1B[41m",bgGreen:"\x1B[42m",bgYellow:"\x1B[43m",bgBlue:"\x1B[44m",bgMagenta:"\x1B[45m",bgCyan:"\x1B[46m",bgWhite:"\x1B[47m",bold:"\x1B[1m",dim:"\x1B[2m",italic:"\x1B[3m",underline:"\x1B[4m",strikethrough:"\x1B[9m"};function t(e,o){let r=de[o];return r?`${r}${e}${ue}`:e}function Y(e){let o=e.slice(2),r={command:"",args:[],options:{},raw:o},n=0;for(;n<o.length;){let s=o[n];if(s==="--help"||s==="-h")r.options.help=!0,n++;else if(s==="--version"||s==="-v")r.options.version=!0,n++;else if(s.startsWith("--")){let c=s.indexOf("=");if(c!==-1){let d=s.slice(2,c),p=s.slice(c+1);r.options[d]=p}else{let d=s.slice(2),p=o[n+1];p&&!p.startsWith("-")?(r.options[d]=p,n++):r.options[d]=!0}n++}else if(s.startsWith("-")&&s.length>1){let c=s.slice(1),d=o[n+1];d&&!d.startsWith("-")?(r.options[c]=d,n++):r.options[c]=!0,n++}else r.command?(r.args.push(s),n++):(r.command=s,n++)}return r}function j(e){v.existsSync(e)||v.mkdirSync(e,{recursive:!0})}function H(e){return v.existsSync(e)}function R(e){return v.readFileSync(e,"utf-8")}function C(e,o){let r=U.dirname(e);j(r),v.writeFileSync(e,o,"utf-8")}var i={info(e){console.log(`${t("[INFO]","blue")} ${e}`)},warn(e){console.log(`${t("[WARN]","yellow")} ${e}`)},error(e){console.error(`${t("[ERROR]","red")} ${e}`)},success(e){console.log(`${t("[SUCCESS]","green")} ${e}`)}};var D=h(require("path"));function fe(){return`<!DOCTYPE html>
|
|
3
3
|
<html lang="zh-CN">
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="UTF-8" />
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"fileNames":["../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.dom.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.scripthost.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/.pnpm/typescript@6.0.2/node_modules/typescript/lib/lib.es2022.full.d.ts","../src/utils.ts","../src/build.ts","../src/create.ts","../src/hmr.ts","../src/dev.ts","../src/generate.ts","../src/scaffold.ts","../src/index.ts"],"fileIdsList":[[64],[64,67],[64,65,66,67,68,69,70]],"fileInfos":[{"version":"bcd24271a113971ba9eb71ff8cb01bc6b0f872a85c23fdbe5d93065b375933cd","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"3f88bedbeb09c6f5a6645cb24c7c55f1aa22d19ae96c8e6959cbd8b85a707bc6","signature":false,"impliedFormat":1},{"version":"7fe93b39b810eadd916be8db880dd7f0f7012a5cc6ffb62de8f62a2117fa6f1f","signature":false,"impliedFormat":1},{"version":"bb0074cc08b84a2374af33d8bf044b80851ccc9e719a5e202eacf40db2c31600","signature":false,"impliedFormat":1},{"version":"1a7daebe4f45fb03d9ec53d60008fbf9ac45a697fdc89e4ce218bc94b94f94d6","signature":false,"impliedFormat":1},{"version":"f94b133a3cb14a288803be545ac2683e0d0ff6661bcd37e31aaaec54fc382aed","signature":false,"impliedFormat":1},{"version":"f59d0650799f8782fd74cf73c19223730c6d1b9198671b1c5b3a38e1188b5953","signature":false,"impliedFormat":1},{"version":"8a15b4607d9a499e2dbeed9ec0d3c0d7372c850b2d5f1fb259e8f6d41d468a84","signature":false,"impliedFormat":1},{"version":"26e0fe14baee4e127f4365d1ae0b276f400562e45e19e35fd2d4c296684715e6","signature":false,"impliedFormat":1},{"version":"d6b1eba8496bdd0eed6fc8a685768fe01b2da4a0388b5fe7df558290bffcf32f","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"7f57fc4404ff020bc45b9c620aff2b40f700b95fe31164024c453a5e3c163c54","signature":false,"impliedFormat":1},{"version":"7f57fc4404ff020bc45b9c620aff2b40f700b95fe31164024c453a5e3c163c54","signature":false,"impliedFormat":1},{"version":"2a2de5b9459b3fc44decd9ce6100b72f1b002ef523126c1d3d8b2a4a63d74d78","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"f13f4b465c99041e912db5c44129a94588e1aafee35a50eab51044833f50b4ee","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"eadcffda2aa84802c73938e589b9e58248d74c59cb7fcbca6474e3435ac15504","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"105ba8ff7ba746404fe1a2e189d1d3d2e0eb29a08c18dded791af02f29fb4711","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"00343ca5b2e3d48fa5df1db6e32ea2a59afab09590274a6cccb1dbae82e60c7c","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"ebd9f816d4002697cb2864bea1f0b70a103124e18a8cd9645eeccc09bdf80ab4","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"2c1afac30a01772cd2a9a298a7ce7706b5892e447bb46bdbeef720f7b5da77ad","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"7b0225f483e4fa685625ebe43dd584bb7973bbd84e66a6ba7bbe175ee1048b4f","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"c0a4b8ac6ce74679c1da2b3795296f5896e31c38e888469a8e0f99dc3305de60","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"3084a7b5f569088e0146533a00830e206565de65cae2239509168b11434cd84f","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"c5079c53f0f141a0698faa903e76cb41cd664e3efb01cc17a5c46ec2eb0bef42","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"32cafbc484dea6b0ab62cf8473182bbcb23020d70845b406f80b7526f38ae862","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"fca4cdcb6d6c5ef18a869003d02c9f0fd95df8cfaf6eb431cd3376bc034cad36","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"b93ec88115de9a9dc1b602291b85baf825c85666bf25985cc5f698073892b467","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"f5c06dcc3fe849fcb297c247865a161f995cc29de7aa823afdd75aaaddc1419b","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"b77e16112127a4b169ef0b8c3a4d730edf459c5f25fe52d5e436a6919206c4d7","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"fbffd9337146eff822c7c00acbb78b01ea7ea23987f6c961eba689349e744f8c","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"a995c0e49b721312f74fdfb89e4ba29bd9824c770bbb4021d74d2bf560e4c6bd","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"c7b3542146734342e440a84b213384bfa188835537ddbda50d30766f0593aff9","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"ce6180fa19b1cccd07ee7f7dbb9a367ac19c0ed160573e4686425060b6df7f57","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"3f02e2476bccb9dbe21280d6090f0df17d2f66b74711489415a8aa4df73c9675","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"45e3ab34c1c013c8ab2dc1ba4c80c780744b13b5676800ae2e3be27ae862c40c","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"805c86f6cca8d7702a62a844856dbaa2a3fd2abef0536e65d48732441dde5b5b","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"e42e397f1a5a77994f0185fd1466520691456c772d06bf843e5084ceb879a0ad","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"f4c2b41f90c95b1c532ecc874bd3c111865793b23aebcc1c3cbbabcd5d76ffb0","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"ab26191cfad5b66afa11b8bf935ef1cd88fabfcb28d30b2dfa6fad877d050332","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"2088bc26531e38fb05eedac2951480db5309f6be3fa4a08d2221abb0f5b4200d","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"cb9d366c425fea79716a8fb3af0d78e6b22ebbab3bd64d25063b42dc9f531c1e","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"500934a8089c26d57ebdb688fc9757389bb6207a3c8f0674d68efa900d2abb34","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"689da16f46e647cef0d64b0def88910e818a5877ca5379ede156ca3afb780ac3","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"bc21cc8b6fee4f4c2440d08035b7ea3c06b3511314c8bab6bef7a92de58a2593","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"7ca53d13d2957003abb47922a71866ba7cb2068f8d154877c596d63c359fed25","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"54725f8c4df3d900cb4dac84b64689ce29548da0b4e9b7c2de61d41c79293611","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"e5594bc3076ac29e6c1ebda77939bc4c8833de72f654b6e376862c0473199323","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"2f3eb332c2d73e729f3364fcc0c2b375e72a121e8157d25a82d67a138c83a95c","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"6f4427f9642ce8d500970e4e69d1397f64072ab73b97e476b4002a646ac743b1","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"48915f327cd1dea4d7bd358d9dc7732f58f9e1626a29cc0c05c8c692419d9bb7","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"b7bf9377723203b5a6a4b920164df22d56a43f593269ba6ae1fdc97774b68855","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"db9709688f82c9e5f65a119c64d835f906efe5f559d08b11642d56eb85b79357","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"4b25b8c874acd1a4cf8444c3617e037d444d19080ac9f634b405583fd10ce1f7","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"37be57d7c90cf1f8112ee2636a068d8fd181289f82b744160ec56a7dc158a9f5","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"a917a49ac94cd26b754ab84e113369a75d1a47a710661d7cd25e961cc797065f","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"6d3261badeb7843d157ef3e6f5d1427d0eeb0af0cf9df84a62cfd29fd47ac86e","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"195daca651dde22f2167ac0d0a05e215308119a3100f5e6268e8317d05a92526","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"8b11e4285cd2bb164a4dc09248bdec69e9842517db4ca47c1ba913011e44ff2f","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"0508571a52475e245b02bc50fa1394065a0a3d05277fbf5120c3784b85651799","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"8f9af488f510c3015af3cc8c267a9e9d96c4dd38a1fdff0e11dc5a544711415b","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"fc611fea8d30ea72c6bbfb599c9b4d393ce22e2f5bfef2172534781e7d138104","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"1ce14b81c5cc821994aa8ec1d42b220dd41b27fcc06373bce3958af7421b77d4","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"b3a048b3e9302ef9a34ef4ebb9aecfb28b66abb3bce577206a79fee559c230da","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"01a30f9e8582b369075c0808df71121e6855cb06fd8d3d39511d9ebb66405205","signature":false,"impliedFormat":1},{"version":"cab54ce44f04633a70d1d3a031869487168f7b12aa57e763109d0ffcd70d8b24","signature":false},{"version":"05d73507a19f794147bd1b7fa5be6ec0c946fc03e115c62f9d54f4547f603ef6","signature":false},{"version":"d9d337fb72e0b7fc1ce57faea297422edea38ec5a5d30dbcefbbd1d8d6f78920","signature":false},{"version":"8614752a905dd237a073aa4fbfae839dfec16bb9d377afaab91efb2b9ac85dec","signature":false},{"version":"df603fe0e15544f2e935b912358a603a74da359fafc19fa9b1d34f32a28adead","signature":false},{"version":"350c353ccf786f2fd1adb5030c82482a3ea7b7bad656251e7e3d6dd562864b09","signature":false},{"version":"c7ed7e384cd74f6d57178d9d507d106f7de95527d1e33edd7426fbb750ad5785","signature":false},{"version":"673e2657645f975cae36e1545bedb74609245bc87704d18656000f29f96a10f3","signature":false}],"root":[[64,71]],"options":{"allowImportingTsExtensions":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"exactOptionalPropertyTypes":true,"module":99,"noEmitOnError":false,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noImplicitReturns":true,"noUncheckedIndexedAccess":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./types","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9,"useDefineForClassFields":true,"verbatimModuleSyntax":true},"referencedMap":[[65,1],[66,1],[68,2],[69,1],[71,3],[70,1]],"changeFileSet":[61,62,12,10,11,16,15,2,17,18,19,20,21,22,23,24,3,25,26,4,27,31,28,29,30,32,33,34,5,35,36,37,38,6,42,39,40,41,43,7,44,49,50,45,46,47,48,8,54,51,52,53,55,9,56,63,57,58,60,59,1,14,13,65,66,68,69,67,71,70,64],"version":"6.0.2"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lyt CLI 生产构建模块
|
|
3
|
+
* 实现 `lyt build` 命令,将项目构建为生产可用的静态文件
|
|
4
|
+
* 使用 esbuild 进行 TypeScript 编译和模块打包
|
|
5
|
+
*
|
|
6
|
+
* 功能:
|
|
7
|
+
* - 读取入口文件
|
|
8
|
+
* - esbuild 打包(编译 TypeScript、模块内联、tree-shaking)
|
|
9
|
+
* - 去除 console.log(生产模式)
|
|
10
|
+
* - 输出到 dist/ 目录
|
|
11
|
+
* - 生成 source map
|
|
12
|
+
* - 可选压缩(esbuild minify)
|
|
13
|
+
*/
|
|
14
|
+
/** 构建选项 */
|
|
15
|
+
export interface BuildOptions {
|
|
16
|
+
/** 输出目录(默认 'dist') */
|
|
17
|
+
outDir?: string;
|
|
18
|
+
/** 是否压缩(默认 false) */
|
|
19
|
+
minify?: boolean;
|
|
20
|
+
/** 项目根目录(默认当前工作目录) */
|
|
21
|
+
root?: string;
|
|
22
|
+
/** 入口文件路径(默认 'index.html') */
|
|
23
|
+
entry?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* 构建项目
|
|
27
|
+
* 使用 esbuild 将源代码编译、打包、压缩后输出到指定目录
|
|
28
|
+
*/
|
|
29
|
+
export declare function buildProject(options?: BuildOptions): Promise<void>;
|
|
30
|
+
//# sourceMappingURL=build.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../src/build.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AA8BH,WAAW;AACX,MAAM,WAAW,YAAY;IAC3B,sBAAsB;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,qBAAqB;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,sBAAsB;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,8BAA8B;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAkBD;;;GAGG;AACH,wBAAsB,YAAY,CAAC,OAAO,GAAE,YAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAiI5E"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lyt CLI 项目脚手架模块(基础版)
|
|
3
|
+
* 实现 `lyt create <name>` 命令,用于创建新的 Lyt 项目
|
|
4
|
+
* 纯 Node.js 原生实现,不依赖任何第三方包
|
|
5
|
+
*/
|
|
6
|
+
/** 脚手架选项 */
|
|
7
|
+
export interface CreateOptions {
|
|
8
|
+
/** 项目模板类型(默认 spa) */
|
|
9
|
+
template?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* 创建新的 Lyt 项目
|
|
13
|
+
*
|
|
14
|
+
* @param name - 项目名称(同时作为目录名)
|
|
15
|
+
* @param options - 脚手架选项
|
|
16
|
+
* @param options.template - 项目模板类型(默认 'spa')
|
|
17
|
+
*/
|
|
18
|
+
export declare function createProject(name: string, options?: CreateOptions): Promise<void>;
|
|
19
|
+
//# sourceMappingURL=create.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../src/create.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AASH,YAAY;AACZ,MAAM,WAAW,aAAa;IAC5B,qBAAqB;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAyfD;;;;;;GAMG;AACH,wBAAsB,aAAa,CACjC,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,aAAkB,GAC1B,OAAO,CAAC,IAAI,CAAC,CAqEf"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lyt CLI 开发服务器模块
|
|
3
|
+
* 实现 `lyt dev` 命令,提供静态文件服务和 HMR 热更新
|
|
4
|
+
* 纯 Node.js 原生实现
|
|
5
|
+
*/
|
|
6
|
+
/** 开发服务器选项 */
|
|
7
|
+
export interface DevServerOptions {
|
|
8
|
+
/** 服务端口(默认 3000) */
|
|
9
|
+
port?: number;
|
|
10
|
+
/** 项目根目录(默认当前工作目录) */
|
|
11
|
+
root?: string;
|
|
12
|
+
/** 是否启用 HMR(默认 true) */
|
|
13
|
+
hmr?: boolean;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* 启动开发服务器
|
|
17
|
+
*
|
|
18
|
+
* @param options - 开发服务器选项
|
|
19
|
+
* @param options.port - 服务端口(默认 3000)
|
|
20
|
+
* @param options.root - 项目根目录(默认当前工作目录)
|
|
21
|
+
* @param options.hmr - 是否启用 HMR(默认 true)
|
|
22
|
+
*/
|
|
23
|
+
export declare function startDevServer(options?: DevServerOptions): void;
|
|
24
|
+
//# sourceMappingURL=dev.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../src/dev.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAgCH,cAAc;AACd,MAAM,WAAW,gBAAgB;IAC/B,oBAAoB;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sBAAsB;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wBAAwB;IACxB,GAAG,CAAC,EAAE,OAAO,CAAC;CACf;AAyLD;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,OAAO,GAAE,gBAAqB,GAAG,IAAI,CAwDnE"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lyt CLI 热模块替换 (HMR) 模块
|
|
3
|
+
* 实现 WebSocket 通信、文件监听和客户端注入
|
|
4
|
+
* 纯 Node.js 原生实现,不依赖任何第三方包
|
|
5
|
+
*/
|
|
6
|
+
import * as http from 'http';
|
|
7
|
+
/** HMR 更新类型 */
|
|
8
|
+
export interface HMRUpdate {
|
|
9
|
+
/** 更新类型 */
|
|
10
|
+
type: 'update' | 'reload' | 'css';
|
|
11
|
+
/** 变更文件路径 */
|
|
12
|
+
path: string;
|
|
13
|
+
/** 更新内容(可选) */
|
|
14
|
+
content?: string;
|
|
15
|
+
}
|
|
16
|
+
/** HMR 服务器接口 */
|
|
17
|
+
export interface HMRServer {
|
|
18
|
+
/** 启动 HMR 服务 */
|
|
19
|
+
start(port: number): void;
|
|
20
|
+
/** 停止 HMR 服务 */
|
|
21
|
+
stop(): void;
|
|
22
|
+
/** 注册文件变更回调 */
|
|
23
|
+
onFileChange(callback: (file: string) => void): void;
|
|
24
|
+
/** 通知客户端更新 */
|
|
25
|
+
notifyClient(update: HMRUpdate): void;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* 创建 HMR 服务器实例
|
|
29
|
+
* 将 WebSocket 服务和文件监听整合在一起
|
|
30
|
+
*
|
|
31
|
+
* @param rootDir - 项目根目录
|
|
32
|
+
* @returns HMRServer 实例
|
|
33
|
+
*/
|
|
34
|
+
export declare function createHMRServer(rootDir: string): HMRServer;
|
|
35
|
+
/**
|
|
36
|
+
* 在现有 HTTP 服务器上创建 HMR WebSocket 端点
|
|
37
|
+
*
|
|
38
|
+
* @param server - 现有的 HTTP 服务器实例
|
|
39
|
+
* @returns 包含 broadcast 和 getClientCount 方法的对象
|
|
40
|
+
*/
|
|
41
|
+
export declare function createHMREndpoint(server: http.Server): {
|
|
42
|
+
broadcast(data: string): void;
|
|
43
|
+
getClientCount(): number;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* 生成注入到页面的客户端 HMR 运行时脚本
|
|
47
|
+
* 该脚本在浏览器中运行,负责:
|
|
48
|
+
* 1. 建立 WebSocket 连接
|
|
49
|
+
* 2. 接收服务端的 HMR 更新通知
|
|
50
|
+
* 3. 根据更新类型执行对应操作
|
|
51
|
+
*
|
|
52
|
+
* @returns 客户端 HMR 脚本字符串
|
|
53
|
+
*/
|
|
54
|
+
export declare function getHMRClientScript(): string;
|
|
55
|
+
//# sourceMappingURL=hmr.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hmr.d.ts","sourceRoot":"","sources":["../../src/hmr.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAS7B,eAAe;AACf,MAAM,WAAW,SAAS;IACxB,WAAW;IACX,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,KAAK,CAAC;IAClC,aAAa;IACb,IAAI,EAAE,MAAM,CAAC;IACb,eAAe;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,gBAAgB;AAChB,MAAM,WAAW,SAAS;IACxB,gBAAgB;IAChB,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,gBAAgB;IAChB,IAAI,IAAI,IAAI,CAAC;IACb,eAAe;IACf,YAAY,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,GAAG,IAAI,CAAC;IACrD,cAAc;IACd,YAAY,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAAC;CACvC;AA4JD;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,CAmK1D;AAMD;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,GAAG;IACtD,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,cAAc,IAAI,MAAM,CAAC;CAC1B,CAeA;AAMD;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,CAoG3C"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Lyt.js CLI 入口文件
|
|
4
|
+
* 命令行工具的主入口,负责解析命令并分发到对应的处理模块
|
|
5
|
+
*
|
|
6
|
+
* 支持的命令:
|
|
7
|
+
* - lytx create <name> [--template spa|ssr|ssg] [--ts] [--router] [--store] 创建新项目
|
|
8
|
+
* - lytx dev [--port <port>] [--hmr] 启动开发服务器
|
|
9
|
+
* - lytx build [--mode spa|ssr|ssg] 构建生产版本
|
|
10
|
+
* - lytx preview [--port <port>] 预览构建结果
|
|
11
|
+
*
|
|
12
|
+
* 全局选项:
|
|
13
|
+
* - --help, -h 显示帮助信息
|
|
14
|
+
* - --version, -v 显示版本号
|
|
15
|
+
*
|
|
16
|
+
* 纯 Node.js 原生实现,不依赖任何第三方包
|
|
17
|
+
*/
|
|
18
|
+
export { createProject, type ScaffoldOptions } from './scaffold';
|
|
19
|
+
export { createHMRServer, createHMREndpoint, getHMRClientScript, type HMRUpdate, type HMRServer } from './hmr';
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAEA;;;;;;;;;;;;;;;GAeG;AA8YH,OAAO,EAAE,aAAa,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAGjE,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lyt CLI 增强版项目脚手架模块
|
|
3
|
+
* 实现 `lytx create <name>` 命令,支持多种模板和功能选项
|
|
4
|
+
* 纯 Node.js 原生实现,不依赖任何第三方包
|
|
5
|
+
*/
|
|
6
|
+
/** 增强版脚手架选项 */
|
|
7
|
+
export interface ScaffoldOptions {
|
|
8
|
+
/** 项目名称 */
|
|
9
|
+
name: string;
|
|
10
|
+
/** 项目模板类型 */
|
|
11
|
+
template: 'spa' | 'ssr' | 'ssg';
|
|
12
|
+
/** 是否使用 TypeScript */
|
|
13
|
+
ts: boolean;
|
|
14
|
+
/** 是否包含路由 */
|
|
15
|
+
router: boolean;
|
|
16
|
+
/** 是否包含状态管理 */
|
|
17
|
+
store: boolean;
|
|
18
|
+
/** 是否包含 ESLint 配置 */
|
|
19
|
+
eslint: boolean;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* 创建新的 Lyt 项目(增强版脚手架)
|
|
23
|
+
*
|
|
24
|
+
* @param options - 脚手架选项
|
|
25
|
+
*
|
|
26
|
+
* 生成的项目结构:
|
|
27
|
+
* ```
|
|
28
|
+
* <name>/
|
|
29
|
+
* ├── package.json
|
|
30
|
+
* ├── tsconfig.json
|
|
31
|
+
* ├── index.html
|
|
32
|
+
* ├── lytx.config.ts
|
|
33
|
+
* ├── src/
|
|
34
|
+
* │ ├── main.ts
|
|
35
|
+
* │ ├── App.lyt
|
|
36
|
+
* │ ├── pages/
|
|
37
|
+
* │ │ ├── index.ts
|
|
38
|
+
* │ │ └── about.ts
|
|
39
|
+
* │ ├── components/
|
|
40
|
+
* │ │ └── Header.ts
|
|
41
|
+
* │ ├── router/
|
|
42
|
+
* │ │ └── index.ts (if router: true)
|
|
43
|
+
* │ ├── store/
|
|
44
|
+
* │ │ └── index.ts (if store: true)
|
|
45
|
+
* │ └── styles/
|
|
46
|
+
* │ └── main.css
|
|
47
|
+
* └── public/
|
|
48
|
+
* └── favicon.svg
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
export declare function createProject(options: ScaffoldOptions): Promise<void>;
|
|
52
|
+
//# sourceMappingURL=scaffold.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scaffold.d.ts","sourceRoot":"","sources":["../../src/scaffold.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AASH,eAAe;AACf,MAAM,WAAW,eAAe;IAC9B,WAAW;IACX,IAAI,EAAE,MAAM,CAAC;IACb,aAAa;IACb,QAAQ,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;IAChC,sBAAsB;IACtB,EAAE,EAAE,OAAO,CAAC;IACZ,aAAa;IACb,MAAM,EAAE,OAAO,CAAC;IAChB,eAAe;IACf,KAAK,EAAE,OAAO,CAAC;IACf,qBAAqB;IACrB,MAAM,EAAE,OAAO,CAAC;CACjB;AAqZD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAsB,aAAa,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CA6G3E"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lyt CLI 工具函数模块
|
|
3
|
+
* 提供彩色输出、参数解析、文件操作、MIME 类型识别、日志等功能
|
|
4
|
+
* 纯 Node.js 原生实现,不依赖任何第三方包
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* 为文本添加 ANSI 颜色
|
|
8
|
+
* @param text - 要着色的文本
|
|
9
|
+
* @param color - 颜色名称(支持 black/red/green/yellow/blue/magenta/cyan/white/brightRed 等)
|
|
10
|
+
* @returns 带有 ANSI 转义码的彩色文本
|
|
11
|
+
*/
|
|
12
|
+
export declare function colorText(text: string, color: string): string;
|
|
13
|
+
/** 解析后的命令行参数结构 */
|
|
14
|
+
export interface ParsedArgs {
|
|
15
|
+
/** 命令名称(如 create、dev、build) */
|
|
16
|
+
command: string;
|
|
17
|
+
/** 命令参数(如项目名称) */
|
|
18
|
+
args: string[];
|
|
19
|
+
/** 选项键值对(如 { port: '3000', template: 'spa' }) */
|
|
20
|
+
options: Record<string, string | boolean>;
|
|
21
|
+
/** 原始 argv 数组 */
|
|
22
|
+
raw: string[];
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* 解析命令行参数(纯手写实现,不依赖任何库)
|
|
26
|
+
* 支持格式:
|
|
27
|
+
* - 命令:lyt create my-app
|
|
28
|
+
* - 短选项:lyt dev -p 3000
|
|
29
|
+
* - 长选项:lyt dev --port 3000
|
|
30
|
+
* - 布尔选项:lyt build --minify
|
|
31
|
+
* - 等号选项:lyt dev --port=3000
|
|
32
|
+
*
|
|
33
|
+
* @param argv - process.argv 数组
|
|
34
|
+
* @returns 解析后的参数对象
|
|
35
|
+
*/
|
|
36
|
+
export declare function parseArgs(argv: string[]): ParsedArgs;
|
|
37
|
+
/**
|
|
38
|
+
* 确保目录存在,不存在则递归创建
|
|
39
|
+
* @param dir - 目录路径
|
|
40
|
+
*/
|
|
41
|
+
export declare function ensureDir(dir: string): void;
|
|
42
|
+
/**
|
|
43
|
+
* 检查文件或目录是否存在
|
|
44
|
+
* @param filePath - 文件路径
|
|
45
|
+
* @returns 是否存在
|
|
46
|
+
*/
|
|
47
|
+
export declare function fileExists(filePath: string): boolean;
|
|
48
|
+
/**
|
|
49
|
+
* 读取文件内容(UTF-8 编码)
|
|
50
|
+
* @param filePath - 文件路径
|
|
51
|
+
* @returns 文件内容字符串
|
|
52
|
+
* @throws 文件不存在时抛出错误
|
|
53
|
+
*/
|
|
54
|
+
export declare function readFile(filePath: string): string;
|
|
55
|
+
/**
|
|
56
|
+
* 写入文件内容(UTF-8 编码)
|
|
57
|
+
* 如果父目录不存在会自动创建
|
|
58
|
+
* @param filePath - 文件路径
|
|
59
|
+
* @param content - 要写入的内容
|
|
60
|
+
*/
|
|
61
|
+
export declare function writeFile(filePath: string, content: string): void;
|
|
62
|
+
/**
|
|
63
|
+
* 根据文件扩展名获取 MIME 类型
|
|
64
|
+
* 手写的 MIME 类型映射表,覆盖常见前端文件类型
|
|
65
|
+
* @param filename - 文件名
|
|
66
|
+
* @returns MIME 类型字符串,未知类型返回 application/octet-stream
|
|
67
|
+
*/
|
|
68
|
+
export declare function getMIMEType(filename: string): string;
|
|
69
|
+
/** 日志工具对象,提供 info/warn/error/success 四种级别 */
|
|
70
|
+
export declare const logger: {
|
|
71
|
+
/**
|
|
72
|
+
* 信息日志(蓝色)
|
|
73
|
+
* @param msg - 日志消息
|
|
74
|
+
*/
|
|
75
|
+
info(msg: string): void;
|
|
76
|
+
/**
|
|
77
|
+
* 警告日志(黄色)
|
|
78
|
+
* @param msg - 日志消息
|
|
79
|
+
*/
|
|
80
|
+
warn(msg: string): void;
|
|
81
|
+
/**
|
|
82
|
+
* 错误日志(红色)
|
|
83
|
+
* @param msg - 日志消息
|
|
84
|
+
*/
|
|
85
|
+
error(msg: string): void;
|
|
86
|
+
/**
|
|
87
|
+
* 成功日志(绿色)
|
|
88
|
+
* @param msg - 日志消息
|
|
89
|
+
*/
|
|
90
|
+
success(msg: string): void;
|
|
91
|
+
};
|
|
92
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAoDH;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAM7D;AAMD,kBAAkB;AAClB,MAAM,WAAW,UAAU;IACzB,+BAA+B;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,kBAAkB;IAClB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,iDAAiD;IACjD,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC;IAC1C,iBAAiB;IACjB,GAAG,EAAE,MAAM,EAAE,CAAC;CACf;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,UAAU,CAoEpD;AAMD;;;GAGG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAI3C;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEpD;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAEjD;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAKjE;AAMD;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAwDpD;AAMD,6CAA6C;AAC7C,eAAO,MAAM,MAAM;IACjB;;;OAGG;cACO,MAAM,GAAG,IAAI;IAIvB;;;OAGG;cACO,MAAM,GAAG,IAAI;IAIvB;;;OAGG;eACQ,MAAM,GAAG,IAAI;IAIxB;;;OAGG;iBACU,MAAM,GAAG,IAAI;CAG3B,CAAC"}
|