create-qwik 2.0.0-beta.15 → 2.0.0-beta.17
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.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* create-qwik 2.0.0-beta.
|
|
3
|
+
* create-qwik 2.0.0-beta.17-dev+c34c237
|
|
4
4
|
* Copyright QwikDev. All Rights Reserved.
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
|
|
@@ -167,7 +167,7 @@ ${w.join(`
|
|
|
167
167
|
`;m.forEach(w=>{C+=w}),e.fail(C)}};let h={};o.conflicts=function(l,m){$("<string|object> [array|string]",[l,m],arguments.length),typeof l=="object"?Object.keys(l).forEach(C=>{o.conflicts(C,l[C])}):(s.global(l),h[l]||(h[l]=[]),Array.isArray(m)?m.forEach(C=>o.conflicts(l,C)):h[l].push(m))},o.getConflicting=()=>h,o.conflicting=function(l){Object.keys(l).forEach(m=>{h[m]&&h[m].forEach(C=>{C&&l[m]!==void 0&&l[C]!==void 0&&e.fail(n("Arguments %s and %s are mutually exclusive",m,C))})}),s.getInternalMethods().getParserConfiguration()["strip-dashed"]&&Object.keys(h).forEach(m=>{h[m].forEach(C=>{C&&l[t.Parser.camelCase(m)]!==void 0&&l[t.Parser.camelCase(C)]!==void 0&&e.fail(n("Arguments %s and %s are mutually exclusive",m,C))})})},o.recommendCommands=function(l,m){m=m.sort((D,I)=>I.length-D.length);let w=null,y=1/0;for(let D=0,I;(I=m[D])!==void 0;D++){let A=zo(l,I);A<=3&&A<y&&(y=A,w=I)}w&&e.fail(n("Did you mean %s?",w))},o.reset=function(l){return i=dt(i,m=>!l[m]),h=dt(h,m=>!l[m]),o};let f=[];return o.freeze=function(){f.push({implied:i,conflicting:h})},o.unfreeze=function(){let l=f.pop();xe(l,void 0,t),{implied:i,conflicting:h}=l},o}var Ri=[],En;function ws(s,e,t,n){En=n;let r={};if(Object.prototype.hasOwnProperty.call(s,"extends")){if(typeof s.extends!="string")return r;let o=/\.json|\..*rc$/.test(s.extends),i=null;if(o)i=Fl(e,s.extends);else try{i=Qe.resolve(s.extends)}catch{return s}yl(i),Ri.push(i),r=o?JSON.parse(En.readFileSync(i,"utf8")):Qe(s.extends),delete s.extends,r=ws(r,En.path.dirname(i),t,En)}return Ri=[],t?Qo(r,s):Object.assign({},r,s)}function yl(s){if(Ri.indexOf(s)>-1)throw new K(`Circular extended configurations: '${s}'.`)}function Fl(s,e){return En.path.resolve(s,e)}function Qo(s,e){let t={};function n(r){return r&&typeof r=="object"&&!Array.isArray(r)}Object.assign(t,s);for(let r of Object.keys(e))n(e[r])&&n(t[r])?t[r]=Qo(s[r],e[r]):t[r]=e[r];return t}var T=function(s,e,t,n,r){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?s!==e||!r:!e.has(s))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?r.call(s,t):r?r.value=t:e.set(s,t),t},a=function(s,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?s!==e||!n:!e.has(s))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(s):n?n.value:e.get(s)},fe,It,yn,Me,Be,As,gt,Bt,vs,Pe,xs,Je,Xe,Ne,Re,Os,rn,ge,S,$s,Ts,Se,Nt,on,St,Ct,_s,J,kt,jt,Mt,L,Is,et,ce;function gu(s){return(e=[],t=s.process.cwd(),n)=>{let r=new Qi(e,t,n,s);return Object.defineProperty(r,"argv",{get:()=>r.parse(),enumerable:!0}),r.help(),r.version(),r}}var Zo=Symbol("copyDoubleDash"),Xo=Symbol("copyDoubleDash"),Li=Symbol("deleteFromParserHintObject"),eu=Symbol("emitWarning"),tu=Symbol("freeze"),nu=Symbol("getDollarZero"),Pt=Symbol("getParserConfiguration"),su=Symbol("getUsageConfiguration"),Wi=Symbol("guessLocale"),iu=Symbol("guessVersion"),ru=Symbol("parsePositionalNumbers"),qi=Symbol("pkgUp"),Et=Symbol("populateParserHintArray"),un=Symbol("populateParserHintSingleValueDictionary"),Gi=Symbol("populateParserHintArrayDictionary"),Ui=Symbol("populateParserHintDictionary"),Vi=Symbol("sanitizeKey"),Hi=Symbol("setKey"),zi=Symbol("unfreeze"),ou=Symbol("validateAsync"),uu=Symbol("getCommandInstance"),au=Symbol("getContext"),cu=Symbol("getHasOutput"),lu=Symbol("getLoggerInstance"),hu=Symbol("getParseContext"),fu=Symbol("getUsageInstance"),Du=Symbol("getValidationInstance"),Bs=Symbol("hasParseCallback"),pu=Symbol("isGlobalContext"),Jt=Symbol("postProcess"),du=Symbol("rebase"),Yi=Symbol("reset"),Fn=Symbol("runYargsParserAndExecuteCommands"),Ki=Symbol("runValidation"),mu=Symbol("setHasOutput"),Rt=Symbol("kTrackManuallySetKeys"),Qi=class{constructor(e=[],t,n,r){this.customScriptName=!1,this.parsed=!1,fe.set(this,void 0),It.set(this,void 0),yn.set(this,{commands:[],fullCommands:[]}),Me.set(this,null),Be.set(this,null),As.set(this,"show-hidden"),gt.set(this,null),Bt.set(this,!0),vs.set(this,{}),Pe.set(this,!0),xs.set(this,[]),Je.set(this,void 0),Xe.set(this,{}),Ne.set(this,!1),Re.set(this,null),Os.set(this,!0),rn.set(this,void 0),ge.set(this,""),S.set(this,void 0),$s.set(this,void 0),Ts.set(this,{}),Se.set(this,null),Nt.set(this,null),on.set(this,{}),St.set(this,{}),Ct.set(this,void 0),_s.set(this,!1),J.set(this,void 0),kt.set(this,!1),jt.set(this,!1),Mt.set(this,!1),L.set(this,void 0),Is.set(this,{}),et.set(this,null),ce.set(this,void 0),T(this,J,r,"f"),T(this,Ct,e,"f"),T(this,It,t,"f"),T(this,$s,n,"f"),T(this,Je,new ys(this),"f"),this.$0=this[nu](),this[Yi](),T(this,fe,a(this,fe,"f"),"f"),T(this,L,a(this,L,"f"),"f"),T(this,ce,a(this,ce,"f"),"f"),T(this,S,a(this,S,"f"),"f"),a(this,S,"f").showHiddenOpt=a(this,As,"f"),T(this,rn,this[Xo](),"f")}addHelpOpt(e,t){let n="help";return $("[string|boolean] [string]",[e,t],arguments.length),a(this,Re,"f")&&(this[Li](a(this,Re,"f")),T(this,Re,null,"f")),e===!1&&t===void 0?this:(T(this,Re,typeof e=="string"?e:n,"f"),this.boolean(a(this,Re,"f")),this.describe(a(this,Re,"f"),t||a(this,L,"f").deferY18nLookup("Show help")),this)}help(e,t){return this.addHelpOpt(e,t)}addShowHiddenOpt(e,t){if($("[string|boolean] [string]",[e,t],arguments.length),e===!1&&t===void 0)return this;let n=typeof e=="string"?e:a(this,As,"f");return this.boolean(n),this.describe(n,t||a(this,L,"f").deferY18nLookup("Show hidden options")),a(this,S,"f").showHiddenOpt=n,this}showHidden(e,t){return this.addShowHiddenOpt(e,t)}alias(e,t){return $("<object|string|array> [string|array]",[e,t],arguments.length),this[Gi](this.alias.bind(this),"alias",e,t),this}array(e){return $("<array|string>",[e],arguments.length),this[Et]("array",e),this[Rt](e),this}boolean(e){return $("<array|string>",[e],arguments.length),this[Et]("boolean",e),this[Rt](e),this}check(e,t){return $("<function> [boolean]",[e,t],arguments.length),this.middleware((n,r)=>_t(()=>e(n,r.getOptions()),o=>(o?(typeof o=="string"||o instanceof Error)&&a(this,L,"f").fail(o.toString(),o):a(this,L,"f").fail(a(this,J,"f").y18n.__("Argument check failed: %s",e.toString())),n),o=>(a(this,L,"f").fail(o.message?o.message:o.toString(),o),n)),!1,t),this}choices(e,t){return $("<object|string|array> [string|array]",[e,t],arguments.length),this[Gi](this.choices.bind(this),"choices",e,t),this}coerce(e,t){if($("<object|string|array> [function]",[e,t],arguments.length),Array.isArray(e)){if(!t)throw new K("coerce callback must be provided");for(let n of e)this.coerce(n,t);return this}else if(typeof e=="object"){for(let n of Object.keys(e))this.coerce(n,e[n]);return this}if(!t)throw new K("coerce callback must be provided");return a(this,S,"f").key[e]=!0,a(this,Je,"f").addCoerceMiddleware((n,r)=>{let o;return Object.prototype.hasOwnProperty.call(n,e)?_t(()=>(o=r.getAliases(),t(n[e])),u=>{n[e]=u;let h=r.getInternalMethods().getParserConfiguration()["strip-aliased"];if(o[e]&&h!==!0)for(let f of o[e])n[f]=u;return n},u=>{throw new K(u.message)}):n},e),this}conflicts(e,t){return $("<string|object> [string|array]",[e,t],arguments.length),a(this,ce,"f").conflicts(e,t),this}config(e="config",t,n){return $("[object|string] [string|function] [function]",[e,t,n],arguments.length),typeof e=="object"&&!Array.isArray(e)?(e=ws(e,a(this,It,"f"),this[Pt]()["deep-merge-config"]||!1,a(this,J,"f")),a(this,S,"f").configObjects=(a(this,S,"f").configObjects||[]).concat(e),this):(typeof t=="function"&&(n=t,t=void 0),this.describe(e,t||a(this,L,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(e)?e:[e]).forEach(r=>{a(this,S,"f").config[r]=n||!0}),this)}completion(e,t,n){return $("[string] [string|boolean|function] [function]",[e,t,n],arguments.length),typeof t=="function"&&(n=t,t=void 0),T(this,Be,e||a(this,Be,"f")||"completion","f"),!t&&t!==!1&&(t="generate completion script"),this.command(a(this,Be,"f"),t),n&&a(this,Me,"f").registerFunction(n),this}command(e,t,n,r,o,i){return $("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[e,t,n,r,o,i],arguments.length),a(this,fe,"f").addHandler(e,t,n,r,o,i),this}commands(e,t,n,r,o,i){return this.command(e,t,n,r,o,i)}commandDir(e,t){$("<string> [object]",[e,t],arguments.length);let n=a(this,$s,"f")||a(this,J,"f").require;return a(this,fe,"f").addDirectory(e,n,a(this,J,"f").getCallerFile(),t),this}count(e){return $("<array|string>",[e],arguments.length),this[Et]("count",e),this[Rt](e),this}default(e,t,n){return $("<object|string|array> [*] [string]",[e,t,n],arguments.length),n&&(ki(e,a(this,J,"f")),a(this,S,"f").defaultDescription[e]=n),typeof t=="function"&&(ki(e,a(this,J,"f")),a(this,S,"f").defaultDescription[e]||(a(this,S,"f").defaultDescription[e]=a(this,L,"f").functionDescription(t)),t=t.call()),this[un](this.default.bind(this),"default",e,t),this}defaults(e,t,n){return this.default(e,t,n)}demandCommand(e=1,t,n,r){return $("[number] [number|string] [string|null|undefined] [string|null|undefined]",[e,t,n,r],arguments.length),typeof t!="number"&&(n=t,t=1/0),this.global("_",!1),a(this,S,"f").demandedCommands._={min:e,max:t,minMsg:n,maxMsg:r},this}demand(e,t,n){return Array.isArray(t)?(t.forEach(r=>{xe(n,!0,a(this,J,"f")),this.demandOption(r,n)}),t=1/0):typeof t!="number"&&(n=t,t=1/0),typeof e=="number"?(xe(n,!0,a(this,J,"f")),this.demandCommand(e,t,n,n)):Array.isArray(e)?e.forEach(r=>{xe(n,!0,a(this,J,"f")),this.demandOption(r,n)}):typeof n=="string"?this.demandOption(e,n):(n===!0||typeof n>"u")&&this.demandOption(e),this}demandOption(e,t){return $("<object|string|array> [string]",[e,t],arguments.length),this[un](this.demandOption.bind(this),"demandedOptions",e,t),this}deprecateOption(e,t){return $("<string> [string|boolean]",[e,t],arguments.length),a(this,S,"f").deprecatedOptions[e]=t,this}describe(e,t){return $("<object|string|array> [string]",[e,t],arguments.length),this[Hi](e,!0),a(this,L,"f").describe(e,t),this}detectLocale(e){return $("<boolean>",[e],arguments.length),T(this,Bt,e,"f"),this}env(e){return $("[string|boolean]",[e],arguments.length),e===!1?delete a(this,S,"f").envPrefix:a(this,S,"f").envPrefix=e||"",this}epilogue(e){return $("<string>",[e],arguments.length),a(this,L,"f").epilog(e),this}epilog(e){return this.epilogue(e)}example(e,t){return $("<string|array> [string]",[e,t],arguments.length),Array.isArray(e)?e.forEach(n=>this.example(...n)):a(this,L,"f").example(e,t),this}exit(e,t){T(this,Ne,!0,"f"),T(this,gt,t,"f"),a(this,Pe,"f")&&a(this,J,"f").process.exit(e)}exitProcess(e=!0){return $("[boolean]",[e],arguments.length),T(this,Pe,e,"f"),this}fail(e){if($("<function|boolean>",[e],arguments.length),typeof e=="boolean"&&e!==!1)throw new K("Invalid first argument. Expected function or boolean 'false'");return a(this,L,"f").failFn(e),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(e,t){return $("<array> [function]",[e,t],arguments.length),t?a(this,Me,"f").getCompletion(e,t):new Promise((n,r)=>{a(this,Me,"f").getCompletion(e,(o,i)=>{o?r(o):n(i)})})}getDemandedOptions(){return $([],0),a(this,S,"f").demandedOptions}getDemandedCommands(){return $([],0),a(this,S,"f").demandedCommands}getDeprecatedOptions(){return $([],0),a(this,S,"f").deprecatedOptions}getDetectLocale(){return a(this,Bt,"f")}getExitProcess(){return a(this,Pe,"f")}getGroups(){return Object.assign({},a(this,Xe,"f"),a(this,St,"f"))}getHelp(){if(T(this,Ne,!0,"f"),!a(this,L,"f").hasCachedHelpMessage()){if(!this.parsed){let t=this[Fn](a(this,Ct,"f"),void 0,void 0,0,!0);if(Q(t))return t.then(()=>a(this,L,"f").help())}let e=a(this,fe,"f").runDefaultBuilderOn(this);if(Q(e))return e.then(()=>a(this,L,"f").help())}return Promise.resolve(a(this,L,"f").help())}getOptions(){return a(this,S,"f")}getStrict(){return a(this,kt,"f")}getStrictCommands(){return a(this,jt,"f")}getStrictOptions(){return a(this,Mt,"f")}global(e,t){return $("<string|array> [boolean]",[e,t],arguments.length),e=[].concat(e),t!==!1?a(this,S,"f").local=a(this,S,"f").local.filter(n=>e.indexOf(n)===-1):e.forEach(n=>{a(this,S,"f").local.includes(n)||a(this,S,"f").local.push(n)}),this}group(e,t){$("<string|array> <string>",[e,t],arguments.length);let n=a(this,St,"f")[t]||a(this,Xe,"f")[t];a(this,St,"f")[t]&&delete a(this,St,"f")[t];let r={};return a(this,Xe,"f")[t]=(n||[]).concat(e).filter(o=>r[o]?!1:r[o]=!0),this}hide(e){return $("<string>",[e],arguments.length),a(this,S,"f").hiddenOptions.push(e),this}implies(e,t){return $("<string|object> [number|string|array]",[e,t],arguments.length),a(this,ce,"f").implies(e,t),this}locale(e){return $("[string]",[e],arguments.length),e===void 0?(this[Wi](),a(this,J,"f").y18n.getLocale()):(T(this,Bt,!1,"f"),a(this,J,"f").y18n.setLocale(e),this)}middleware(e,t,n){return a(this,Je,"f").addMiddleware(e,!!t,n)}nargs(e,t){return $("<string|object|array> [number]",[e,t],arguments.length),this[un](this.nargs.bind(this),"narg",e,t),this}normalize(e){return $("<array|string>",[e],arguments.length),this[Et]("normalize",e),this}number(e){return $("<array|string>",[e],arguments.length),this[Et]("number",e),this[Rt](e),this}option(e,t){if($("<string|object> [object]",[e,t],arguments.length),typeof e=="object")Object.keys(e).forEach(n=>{this.options(n,e[n])});else{typeof t!="object"&&(t={}),this[Rt](e),a(this,et,"f")&&(e==="version"||t?.alias==="version")&&this[eu](['"version" is a reserved word.',"Please do one of the following:",'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)","- Use a different option key","https://yargs.js.org/docs/#api-reference-version"].join(`
|
|
168
168
|
`),void 0,"versionWarning"),a(this,S,"f").key[e]=!0,t.alias&&this.alias(e,t.alias);let n=t.deprecate||t.deprecated;n&&this.deprecateOption(e,n);let r=t.demand||t.required||t.require;r&&this.demand(e,r),t.demandOption&&this.demandOption(e,typeof t.demandOption=="string"?t.demandOption:void 0),t.conflicts&&this.conflicts(e,t.conflicts),"default"in t&&this.default(e,t.default),t.implies!==void 0&&this.implies(e,t.implies),t.nargs!==void 0&&this.nargs(e,t.nargs),t.config&&this.config(e,t.configParser),t.normalize&&this.normalize(e),t.choices&&this.choices(e,t.choices),t.coerce&&this.coerce(e,t.coerce),t.group&&this.group(e,t.group),(t.boolean||t.type==="boolean")&&(this.boolean(e),t.alias&&this.boolean(t.alias)),(t.array||t.type==="array")&&(this.array(e),t.alias&&this.array(t.alias)),(t.number||t.type==="number")&&(this.number(e),t.alias&&this.number(t.alias)),(t.string||t.type==="string")&&(this.string(e),t.alias&&this.string(t.alias)),(t.count||t.type==="count")&&this.count(e),typeof t.global=="boolean"&&this.global(e,t.global),t.defaultDescription&&(a(this,S,"f").defaultDescription[e]=t.defaultDescription),t.skipValidation&&this.skipValidation(e);let o=t.describe||t.description||t.desc,i=a(this,L,"f").getDescriptions();(!Object.prototype.hasOwnProperty.call(i,e)||typeof o=="string")&&this.describe(e,o),t.hidden&&this.hide(e),t.requiresArg&&this.requiresArg(e)}return this}options(e,t){return this.option(e,t)}parse(e,t,n){$("[string|array] [function|boolean|object] [function]",[e,t,n],arguments.length),this[tu](),typeof e>"u"&&(e=a(this,Ct,"f")),typeof t=="object"&&(T(this,Nt,t,"f"),t=n),typeof t=="function"&&(T(this,Se,t,"f"),t=!1),t||T(this,Ct,e,"f"),a(this,Se,"f")&&T(this,Pe,!1,"f");let r=this[Fn](e,!!t),o=this.parsed;return a(this,Me,"f").setParsed(this.parsed),Q(r)?r.then(i=>(a(this,Se,"f")&&a(this,Se,"f").call(this,a(this,gt,"f"),i,a(this,ge,"f")),i)).catch(i=>{throw a(this,Se,"f")&&a(this,Se,"f")(i,this.parsed.argv,a(this,ge,"f")),i}).finally(()=>{this[zi](),this.parsed=o}):(a(this,Se,"f")&&a(this,Se,"f").call(this,a(this,gt,"f"),r,a(this,ge,"f")),this[zi](),this.parsed=o,r)}parseAsync(e,t,n){let r=this.parse(e,t,n);return Q(r)?r:Promise.resolve(r)}parseSync(e,t,n){let r=this.parse(e,t,n);if(Q(r))throw new K(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return r}parserConfiguration(e){return $("<object>",[e],arguments.length),T(this,Ts,e,"f"),this}pkgConf(e,t){$("<string> [string]",[e,t],arguments.length);let n=null,r=this[qi](t||a(this,It,"f"));return r[e]&&typeof r[e]=="object"&&(n=ws(r[e],t||a(this,It,"f"),this[Pt]()["deep-merge-config"]||!1,a(this,J,"f")),a(this,S,"f").configObjects=(a(this,S,"f").configObjects||[]).concat(n)),this}positional(e,t){$("<string> <object>",[e,t],arguments.length);let n=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];t=dt(t,(i,u)=>i==="type"&&!["string","number","boolean"].includes(u)?!1:n.includes(i));let r=a(this,yn,"f").fullCommands[a(this,yn,"f").fullCommands.length-1],o=r?a(this,fe,"f").cmdToParseOptions(r):{array:[],alias:{},default:{},demand:{}};return nn(o).forEach(i=>{let u=o[i];Array.isArray(u)?u.indexOf(e)!==-1&&(t[i]=!0):u[e]&&!(i in t)&&(t[i]=u[e])}),this.group(e,a(this,L,"f").getPositionalGroupName()),this.option(e,t)}recommendCommands(e=!0){return $("[boolean]",[e],arguments.length),T(this,_s,e,"f"),this}required(e,t,n){return this.demand(e,t,n)}require(e,t,n){return this.demand(e,t,n)}requiresArg(e){return $("<array|string|object> [number]",[e],arguments.length),typeof e=="string"&&a(this,S,"f").narg[e]?this:(this[un](this.requiresArg.bind(this),"narg",e,NaN),this)}showCompletionScript(e,t){return $("[string] [string]",[e,t],arguments.length),e=e||this.$0,a(this,rn,"f").log(a(this,Me,"f").generateCompletionScript(e,t||a(this,Be,"f")||"completion")),this}showHelp(e){if($("[string|function]",[e],arguments.length),T(this,Ne,!0,"f"),!a(this,L,"f").hasCachedHelpMessage()){if(!this.parsed){let n=this[Fn](a(this,Ct,"f"),void 0,void 0,0,!0);if(Q(n))return n.then(()=>{a(this,L,"f").showHelp(e)}),this}let t=a(this,fe,"f").runDefaultBuilderOn(this);if(Q(t))return t.then(()=>{a(this,L,"f").showHelp(e)}),this}return a(this,L,"f").showHelp(e),this}scriptName(e){return this.customScriptName=!0,this.$0=e,this}showHelpOnFail(e,t){return $("[boolean|string] [string]",[e,t],arguments.length),a(this,L,"f").showHelpOnFail(e,t),this}showVersion(e){return $("[string|function]",[e],arguments.length),a(this,L,"f").showVersion(e),this}skipValidation(e){return $("<array|string>",[e],arguments.length),this[Et]("skipValidation",e),this}strict(e){return $("[boolean]",[e],arguments.length),T(this,kt,e!==!1,"f"),this}strictCommands(e){return $("[boolean]",[e],arguments.length),T(this,jt,e!==!1,"f"),this}strictOptions(e){return $("[boolean]",[e],arguments.length),T(this,Mt,e!==!1,"f"),this}string(e){return $("<array|string>",[e],arguments.length),this[Et]("string",e),this[Rt](e),this}terminalWidth(){return $([],0),a(this,J,"f").process.stdColumns}updateLocale(e){return this.updateStrings(e)}updateStrings(e){return $("<object>",[e],arguments.length),T(this,Bt,!1,"f"),a(this,J,"f").y18n.updateLocale(e),this}usage(e,t,n,r){if($("<string|null|undefined> [string|boolean] [function|object] [function]",[e,t,n,r],arguments.length),t!==void 0){if(xe(e,null,a(this,J,"f")),(e||"").match(/^\$0( |$)/))return this.command(e,t,n,r);throw new K(".usage() description must start with $0 if being used as alias for .command()")}else return a(this,L,"f").usage(e),this}usageConfiguration(e){return $("<object>",[e],arguments.length),T(this,Is,e,"f"),this}version(e,t,n){let r="version";if($("[boolean|string] [string] [string]",[e,t,n],arguments.length),a(this,et,"f")&&(this[Li](a(this,et,"f")),a(this,L,"f").version(void 0),T(this,et,null,"f")),arguments.length===0)n=this[iu](),e=r;else if(arguments.length===1){if(e===!1)return this;n=e,e=r}else arguments.length===2&&(n=t,t=void 0);return T(this,et,typeof e=="string"?e:r,"f"),t=t||a(this,L,"f").deferY18nLookup("Show version number"),a(this,L,"f").version(n||void 0),this.boolean(a(this,et,"f")),this.describe(a(this,et,"f"),t),this}wrap(e){return $("<number|null|undefined>",[e],arguments.length),a(this,L,"f").wrap(e),this}[(fe=new WeakMap,It=new WeakMap,yn=new WeakMap,Me=new WeakMap,Be=new WeakMap,As=new WeakMap,gt=new WeakMap,Bt=new WeakMap,vs=new WeakMap,Pe=new WeakMap,xs=new WeakMap,Je=new WeakMap,Xe=new WeakMap,Ne=new WeakMap,Re=new WeakMap,Os=new WeakMap,rn=new WeakMap,ge=new WeakMap,S=new WeakMap,$s=new WeakMap,Ts=new WeakMap,Se=new WeakMap,Nt=new WeakMap,on=new WeakMap,St=new WeakMap,Ct=new WeakMap,_s=new WeakMap,J=new WeakMap,kt=new WeakMap,jt=new WeakMap,Mt=new WeakMap,L=new WeakMap,Is=new WeakMap,et=new WeakMap,ce=new WeakMap,Zo)](e){if(!e._||!e["--"])return e;e._.push.apply(e._,e["--"]);try{delete e["--"]}catch{}return e}[Xo](){return{log:(...e)=>{this[Bs]()||console.log(...e),T(this,Ne,!0,"f"),a(this,ge,"f").length&&T(this,ge,a(this,ge,"f")+`
|
|
169
169
|
`,"f"),T(this,ge,a(this,ge,"f")+e.join(" "),"f")},error:(...e)=>{this[Bs]()||console.error(...e),T(this,Ne,!0,"f"),a(this,ge,"f").length&&T(this,ge,a(this,ge,"f")+`
|
|
170
|
-
`,"f"),T(this,ge,a(this,ge,"f")+e.join(" "),"f")}}}[Li](e){nn(a(this,S,"f")).forEach(t=>{if((r=>r==="configObjects")(t))return;let n=a(this,S,"f")[t];Array.isArray(n)?n.includes(e)&&n.splice(n.indexOf(e),1):typeof n=="object"&&delete n[e]}),delete a(this,L,"f").getDescriptions()[e]}[eu](e,t,n){a(this,vs,"f")[n]||(a(this,J,"f").process.emitWarning(e,t),a(this,vs,"f")[n]=!0)}[tu](){a(this,xs,"f").push({options:a(this,S,"f"),configObjects:a(this,S,"f").configObjects.slice(0),exitProcess:a(this,Pe,"f"),groups:a(this,Xe,"f"),strict:a(this,kt,"f"),strictCommands:a(this,jt,"f"),strictOptions:a(this,Mt,"f"),completionCommand:a(this,Be,"f"),output:a(this,ge,"f"),exitError:a(this,gt,"f"),hasOutput:a(this,Ne,"f"),parsed:this.parsed,parseFn:a(this,Se,"f"),parseContext:a(this,Nt,"f")}),a(this,L,"f").freeze(),a(this,ce,"f").freeze(),a(this,fe,"f").freeze(),a(this,Je,"f").freeze()}[nu](){let e="",t;return/\b(node|iojs|electron)(\.exe)?$/.test(a(this,J,"f").process.argv()[0])?t=a(this,J,"f").process.argv().slice(1,2):t=a(this,J,"f").process.argv().slice(0,1),e=t.map(n=>{let r=this[du](a(this,It,"f"),n);return n.match(/^(\/|([a-zA-Z]:)?\\)/)&&r.length<n.length?r:n}).join(" ").trim(),a(this,J,"f").getEnv("_")&&a(this,J,"f").getProcessArgvBin()===a(this,J,"f").getEnv("_")&&(e=a(this,J,"f").getEnv("_").replace(`${a(this,J,"f").path.dirname(a(this,J,"f").process.execPath())}/`,"")),e}[Pt](){return a(this,Ts,"f")}[su](){return a(this,Is,"f")}[Wi](){if(!a(this,Bt,"f"))return;let e=a(this,J,"f").getEnv("LC_ALL")||a(this,J,"f").getEnv("LC_MESSAGES")||a(this,J,"f").getEnv("LANG")||a(this,J,"f").getEnv("LANGUAGE")||"en_US";this.locale(e.replace(/[.:].*/,""))}[iu](){return this[qi]().version||"unknown"}[ru](e){let t=e["--"]?e["--"]:e._;for(let n=0,r;(r=t[n])!==void 0;n++)a(this,J,"f").Parser.looksLikeNumber(r)&&Number.isSafeInteger(Math.floor(parseFloat(`${r}`)))&&(t[n]=Number(r));return e}[qi](e){let t=e||"*";if(a(this,on,"f")[t])return a(this,on,"f")[t];let n={};try{let r=e||a(this,J,"f").mainFilename;!e&&a(this,J,"f").path.extname(r)&&(r=a(this,J,"f").path.dirname(r));let o=a(this,J,"f").findUp(r,(i,u)=>{if(u.includes("package.json"))return"package.json"});xe(o,void 0,a(this,J,"f")),n=JSON.parse(a(this,J,"f").readFileSync(o,"utf8"))}catch{}return a(this,on,"f")[t]=n||{},a(this,on,"f")[t]}[Et](e,t){t=[].concat(t),t.forEach(n=>{n=this[Vi](n),a(this,S,"f")[e].push(n)})}[un](e,t,n,r){this[Ui](e,t,n,r,(o,i,u)=>{a(this,S,"f")[o][i]=u})}[Gi](e,t,n,r){this[Ui](e,t,n,r,(o,i,u)=>{a(this,S,"f")[o][i]=(a(this,S,"f")[o][i]||[]).concat(u)})}[Ui](e,t,n,r,o){if(Array.isArray(n))n.forEach(i=>{e(i,r)});else if((i=>typeof i=="object")(n))for(let i of nn(n))e(i,n[i]);else o(t,this[Vi](n),r)}[Vi](e){return e==="__proto__"?"___proto___":e}[Hi](e,t){return this[un](this[Hi].bind(this),"key",e,t),this}[zi](){var e,t,n,r,o,i,u,h,f,p,l,m;let C=a(this,xs,"f").pop();xe(C,void 0,a(this,J,"f"));let w;e=this,t=this,n=this,r=this,o=this,i=this,u=this,h=this,f=this,p=this,l=this,m=this,{options:{set value(y){T(e,S,y,"f")}}.value,configObjects:w,exitProcess:{set value(y){T(t,Pe,y,"f")}}.value,groups:{set value(y){T(n,Xe,y,"f")}}.value,output:{set value(y){T(r,ge,y,"f")}}.value,exitError:{set value(y){T(o,gt,y,"f")}}.value,hasOutput:{set value(y){T(i,Ne,y,"f")}}.value,parsed:this.parsed,strict:{set value(y){T(u,kt,y,"f")}}.value,strictCommands:{set value(y){T(h,jt,y,"f")}}.value,strictOptions:{set value(y){T(f,Mt,y,"f")}}.value,completionCommand:{set value(y){T(p,Be,y,"f")}}.value,parseFn:{set value(y){T(l,Se,y,"f")}}.value,parseContext:{set value(y){T(m,Nt,y,"f")}}.value}=C,a(this,S,"f").configObjects=w,a(this,L,"f").unfreeze(),a(this,ce,"f").unfreeze(),a(this,fe,"f").unfreeze(),a(this,Je,"f").unfreeze()}[ou](e,t){return _t(t,n=>(e(n),n))}getInternalMethods(){return{getCommandInstance:this[uu].bind(this),getContext:this[au].bind(this),getHasOutput:this[cu].bind(this),getLoggerInstance:this[lu].bind(this),getParseContext:this[hu].bind(this),getParserConfiguration:this[Pt].bind(this),getUsageConfiguration:this[su].bind(this),getUsageInstance:this[fu].bind(this),getValidationInstance:this[Du].bind(this),hasParseCallback:this[Bs].bind(this),isGlobalContext:this[pu].bind(this),postProcess:this[Jt].bind(this),reset:this[Yi].bind(this),runValidation:this[Ki].bind(this),runYargsParserAndExecuteCommands:this[Fn].bind(this),setHasOutput:this[mu].bind(this)}}[uu](){return a(this,fe,"f")}[au](){return a(this,yn,"f")}[cu](){return a(this,Ne,"f")}[lu](){return a(this,rn,"f")}[hu](){return a(this,Nt,"f")||{}}[fu](){return a(this,L,"f")}[Du](){return a(this,ce,"f")}[Bs](){return!!a(this,Se,"f")}[pu](){return a(this,Os,"f")}[Jt](e,t,n,r){return n||Q(e)||(t||(e=this[Zo](e)),(this[Pt]()["parse-positional-numbers"]||this[Pt]()["parse-positional-numbers"]===void 0)&&(e=this[ru](e)),r&&(e=Tt(e,this,a(this,Je,"f").getMiddleware(),!1))),e}[Yi](e={}){T(this,S,a(this,S,"f")||{},"f");let t={};t.local=a(this,S,"f").local||[],t.configObjects=a(this,S,"f").configObjects||[];let n={};t.local.forEach(i=>{n[i]=!0,(e[i]||[]).forEach(u=>{n[u]=!0})}),Object.assign(a(this,St,"f"),Object.keys(a(this,Xe,"f")).reduce((i,u)=>{let h=a(this,Xe,"f")[u].filter(f=>!(f in n));return h.length>0&&(i[u]=h),i},{})),T(this,Xe,{},"f");let r=["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"],o=["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"];return r.forEach(i=>{t[i]=(a(this,S,"f")[i]||[]).filter(u=>!n[u])}),o.forEach(i=>{t[i]=dt(a(this,S,"f")[i],u=>!n[u])}),t.envPrefix=a(this,S,"f").envPrefix,T(this,S,t,"f"),T(this,L,a(this,L,"f")?a(this,L,"f").reset(n):Go(this,a(this,J,"f")),"f"),T(this,ce,a(this,ce,"f")?a(this,ce,"f").reset(n):Ko(this,a(this,L,"f"),a(this,J,"f")),"f"),T(this,fe,a(this,fe,"f")?a(this,fe,"f").reset():Lo(a(this,L,"f"),a(this,ce,"f"),a(this,Je,"f"),a(this,J,"f")),"f"),a(this,Me,"f")||T(this,Me,Ho(this,a(this,L,"f"),a(this,fe,"f"),a(this,J,"f")),"f"),a(this,Je,"f").reset(),T(this,Be,null,"f"),T(this,ge,"","f"),T(this,gt,null,"f"),T(this,Ne,!1,"f"),this.parsed=!1,this}[du](e,t){return a(this,J,"f").path.relative(e,t)}[Fn](e,t,n,r=0,o=!1){let i=!!n||o;e=e||a(this,Ct,"f"),a(this,S,"f").__=a(this,J,"f").y18n.__,a(this,S,"f").configuration=this[Pt]();let u=!!a(this,S,"f").configuration["populate--"],h=Object.assign({},a(this,S,"f").configuration,{"populate--":!0}),f=a(this,J,"f").Parser.detailed(e,Object.assign({},a(this,S,"f"),{configuration:{"parse-positional-numbers":!1,...h}})),p=Object.assign(f.argv,a(this,Nt,"f")),l,m=f.aliases,C=!1,w=!1;Object.keys(p).forEach(y=>{y===a(this,Re,"f")&&p[y]?C=!0:y===a(this,et,"f")&&p[y]&&(w=!0)}),p.$0=this.$0,this.parsed=f,r===0&&a(this,L,"f").clearCachedHelpMessage();try{if(this[Wi](),t)return this[Jt](p,u,!!n,!1);a(this,Re,"f")&&[a(this,Re,"f")].concat(m[a(this,Re,"f")]||[]).filter(k=>k.length>1).includes(""+p._[p._.length-1])&&(p._.pop(),C=!0),T(this,Os,!1,"f");let y=a(this,fe,"f").getCommands(),D=a(this,Me,"f").completionKey in p,I=C||D||o;if(p._.length){if(y.length){let A;for(let k=r||0,b;p._[k]!==void 0;k++)if(b=String(p._[k]),y.includes(b)&&b!==a(this,Be,"f")){let R=a(this,fe,"f").runCommand(b,this,f,k+1,o,C||w||o);return this[Jt](R,u,!!n,!1)}else if(!A&&b!==a(this,Be,"f")){A=b;break}!a(this,fe,"f").hasDefaultCommand()&&a(this,_s,"f")&&A&&!I&&a(this,ce,"f").recommendCommands(A,y)}a(this,Be,"f")&&p._.includes(a(this,Be,"f"))&&!D&&(a(this,Pe,"f")&&mt(!0),this.showCompletionScript(),this.exit(0))}if(a(this,fe,"f").hasDefaultCommand()&&!I){let A=a(this,fe,"f").runCommand(null,this,f,0,o,C||w||o);return this[Jt](A,u,!!n,!1)}if(D){a(this,Pe,"f")&&mt(!0),e=[].concat(e);let A=e.slice(e.indexOf(`--${a(this,Me,"f").completionKey}`)+1);return a(this,Me,"f").getCompletion(A,(k,b)=>{if(k)throw new K(k.message);(b||[]).forEach(R=>{a(this,rn,"f").log(R)}),this.exit(0)}),this[Jt](p,!u,!!n,!1)}if(a(this,Ne,"f")||(C?(a(this,Pe,"f")&&mt(!0),i=!0,this.showHelp("log"),this.exit(0)):w&&(a(this,Pe,"f")&&mt(!0),i=!0,a(this,L,"f").showVersion("log"),this.exit(0))),!i&&a(this,S,"f").skipValidation.length>0&&(i=Object.keys(p).some(A=>a(this,S,"f").skipValidation.indexOf(A)>=0&&p[A]===!0)),!i){if(f.error)throw new K(f.error.message);if(!D){let A=this[Ki](m,{},f.error);n||(l=Tt(p,this,a(this,Je,"f").getMiddleware(),!0)),l=this[ou](A,l??p),Q(l)&&!n&&(l=l.then(()=>Tt(p,this,a(this,Je,"f").getMiddleware(),!1)))}}}catch(y){if(y instanceof K)a(this,L,"f").fail(y.message,y);else throw y}return this[Jt](l??p,u,!!n,!0)}[Ki](e,t,n,r){let o={...this.getDemandedOptions()};return i=>{if(n)throw new K(n.message);a(this,ce,"f").nonOptionCount(i),a(this,ce,"f").requiredArguments(i,o);let u=!1;a(this,jt,"f")&&(u=a(this,ce,"f").unknownCommands(i)),a(this,kt,"f")&&!u?a(this,ce,"f").unknownArguments(i,e,t,!!r):a(this,Mt,"f")&&a(this,ce,"f").unknownArguments(i,e,{},!1,!1),a(this,ce,"f").limitedChoices(i),a(this,ce,"f").implications(i),a(this,ce,"f").conflicting(i)}}[mu](){T(this,Ne,!0,"f")}[Rt](e){if(typeof e=="string")a(this,S,"f").key[e]=!0;else for(let t of e)a(this,S,"f").key[t]=!0}};function Wo(s){return!!s&&typeof s.getInternalMethods=="function"}var bl=gu(jo),Cu=bl;function wl(s,e){return Cu(s).strict().command("* <template> <outDir>","Create a new project powered by qwik",n=>n.positional("template",{type:"string",desc:"Starter template",choices:e}).positional("outDir",{type:"string",desc:"Directory of the project"}).option("force",{alias:"f",type:"boolean",default:!1,desc:"Overwrite target directory if it exists"}).option("installDeps",{alias:"i",default:!1,type:"boolean",desc:"Install dependencies"}).usage("npm create qwik@latest base ./my-project <options>")).argv}async function yu(...s){let e=ut(),t=await tn("app"),n=t.standaloneTemplates.map(({id:m})=>m),r=wl(s,n),{force:o,installDeps:i,template:u}=r,h=r.outDir;Nn(`Let's create a ${hn(" Qwik App ")} \u2728 (v2.0.0-beta.15-dev+920f1a4)`),Al()?h=process.cwd():(h=ps(h),Eu.existsSync(h)&&Eu.readdirSync(h).length>0&&(o?await kn(h):(ie.error(`Directory "${h}" already exists.`),ie.info("Please either remove this directory, choose another location or run the command again with '--force | -f' flag."),ln(),process.exit(1))));let f=await en({outDir:h,appId:u,pkgManager:e,templateManager:t}),p=qt(),l=!1;return i&&(l=await hs(async()=>await bt(e,h).install,{pkgManager:e,spinner:p})),fs(e,f,l),f}function Al(){return vl()}function vl(){try{return process.cwd().startsWith("/home/projects/")}catch{}return!1}import{join as Ol,relative as $l}from"node:path";import Xi from"node:fs";var Zi=[["What's the best thing about a Boolean?","Even if you're wrong, you're only off by a bit."],["Why did the developer stay at home?","Because he couldn't find his keys."],["How many programmers does it take to change a lightbulb?","None that's a hardware problem"],["A user interface is like a joke.","If you have to explain it then it is not that good."],["['hip', 'hip']","(hip hip array)"],["A SQL query goes into a bar, walks up to two tables and asks:","'Can I JOIN you?'"],["Why did the developer go to therapy?","He had too many unresolved issues."],["Why do C# and Java developers keep breaking their keyboards?","Because they use a strongly typed language."],["What's the object-oriented way to become wealthy?","Inheritance"],["Where do programmers like to hangout?","The Foo Bar."],["Why do Java programmers wear glasses?","Because they don't C#"],["To understand what recursion is...","You must first understand what recursion is"],["The punchline often arrives before the set-up.","Do you know the problem with UDP jokes?"],["Why did the programmer quit his job?","Because he didn't get arrays."],["Why was the computer tired when it got home?","It had a hard drive."],["There are 10 types of people in this world...","Those who understand binary and those who don't"],["Why do programmers always mix up Halloween and Christmas?","Because Oct 31 == Dec 25"],["I was gonna tell you a joke about UDP...","...but you might not get it."],["Normal People: give me just a second","Developers: give me 1000 milliseconds!"],["Why do programmers prefer dark mode?","Because light attracts bugs."],["Why don't programmers like nature?","It has too many bugs."],["Why was the computer freezing?","It left its Windows open!"],["What did the Java code say to the C code?","You've got no class."],["Why do programmers prefer the outdoors?","Because it's free of bugs."],["Why do programmers love movies?","Because they can 'script' the ending."],["why do desert animals hate Qwik?","Because there's no hydration...."],["What can you do if you cannot push your git changes?","Use the --force, Luke"],["How did the developer announce he's getting married?","'She returned true!'"],["How many Prolog programmers does it take to change a lightbulb?","Yes."],["Why did the developer ground their kid?","They weren't telling the truthy"],["!false","It's funny 'cause it's true."],["Where did the parallel function wash its hands?","Async"],["How do functions break up?","They stop calling each other"],["Why did the functions stop calling each other?","Because they had constant arguments."],["What's the second movie about a database engineer called?","The SQL."],["What did the computer do at lunchtime?","NoSQL."],["Why doesn't Hollywood make more Big Data movies?","Had a byte!"],["What does a baby computer call his father?","Data!"],["I never tell the same joke twice","I have a DRY sense of humor."],["How do programming pirates pass method parameters?","ARRRRRGS."],["Why don't bachelors like Git?","Because they are afraid to commit."],["Why do astronauts use Linux?","They can't open Windows in space!"],["How do front end devs like their brownies?","GUI"],["What do hackers do on a boat?","Phishing."],["Why couldn't the HTML list be trusted?","There were LI's everywhere"],["To the person who invented zero:","Thank's for nothing!"],["What do you call a bee that lives in America?","A USB"],["want about to a race conditions hear joke?",""],["What is a Package Managers favorite holiday?","Dependency Day"],["Where do we get all of these dad jokes from?","A dad-a-base!"],["What advice do you give to a JS developer who has never played baseball?","Try catch."],["We don't have any DNS jokes, know why?","Because it may take 24 hours to get them"],["Why do Front-End Developers eat lunch alone?","Because they don't know how to join tables."],["How do you help JS errors?","You `console` them!"],["When do front end developers go out to eat?","On their lunch <br>."],["What do you call optimistic front-end developers?","Stack half-full developers."]];function Fu(){let s=Math.floor(Math.random()*Zi.length);return Zi[s]}async function bu(){let s=ut(),e=await tn("app"),t="./qwik-app";Nn(`Let's create a ${hn(" Qwik App ")} \u2728 (v2.0.0-beta.15-dev+920f1a4)`),await qr(500);let n=await wr({message:`Where would you like to create your new project? ${ot("(Use '.' or './' for current directory)")}`,placeholder:t})||t;rt(n)&&(ln("Operation cancelled."),process.exit(0));let r=e.getBaseApp();if(!r)throw new Error("Base app not found");let o=e.templates.filter(A=>A.id!==r.id).sort((A,k)=>A.name.localeCompare(k.name)),i=ps(n.trim());r.target=i;let u=zr(s,r),h=async()=>{await u.abort(),ln("Operation cancelled."),process.exit(0)};ie.info(`Creating new project in ${hn(" "+i+" ")} ... \u{1F407}`);let f=null;if(Xi.existsSync(i)&&Xi.readdirSync(i).length>0){let A=await Ys({message:`Directory "./${$l(process.cwd(),i)}" already exists and is not empty. What would you like to do?`,options:[{value:"exit",label:"Do not overwrite this directory and exit"},{value:"replace",label:"Remove contents of this directory"}]});if(rt(A)||A==="exit")return await h();A==="replace"&&(f=kn(i))}let p=await Ys({message:"Select a starter",options:o.map(A=>({label:A.name,value:A.id,hint:A.pkgJson?.description}))});if(rt(p))return await h();let l=p,m=await Bn({message:`Would you like to install ${s} dependencies?`,initialValue:!0});if(rt(m))return await h();let C=await Bn({message:"Initialize a new git repository?",initialValue:!0});f&&await f;let w=m;if(!w)u.abort();else if(typeof u.success>"u")try{let A=await Bn({message:"Finishing the install. Wanna hear a joke?",initialValue:!0});if(!rt(A)&&A){let[k,b]=Fu();Mn(be(`${k.trim()}
|
|
170
|
+
`,"f"),T(this,ge,a(this,ge,"f")+e.join(" "),"f")}}}[Li](e){nn(a(this,S,"f")).forEach(t=>{if((r=>r==="configObjects")(t))return;let n=a(this,S,"f")[t];Array.isArray(n)?n.includes(e)&&n.splice(n.indexOf(e),1):typeof n=="object"&&delete n[e]}),delete a(this,L,"f").getDescriptions()[e]}[eu](e,t,n){a(this,vs,"f")[n]||(a(this,J,"f").process.emitWarning(e,t),a(this,vs,"f")[n]=!0)}[tu](){a(this,xs,"f").push({options:a(this,S,"f"),configObjects:a(this,S,"f").configObjects.slice(0),exitProcess:a(this,Pe,"f"),groups:a(this,Xe,"f"),strict:a(this,kt,"f"),strictCommands:a(this,jt,"f"),strictOptions:a(this,Mt,"f"),completionCommand:a(this,Be,"f"),output:a(this,ge,"f"),exitError:a(this,gt,"f"),hasOutput:a(this,Ne,"f"),parsed:this.parsed,parseFn:a(this,Se,"f"),parseContext:a(this,Nt,"f")}),a(this,L,"f").freeze(),a(this,ce,"f").freeze(),a(this,fe,"f").freeze(),a(this,Je,"f").freeze()}[nu](){let e="",t;return/\b(node|iojs|electron)(\.exe)?$/.test(a(this,J,"f").process.argv()[0])?t=a(this,J,"f").process.argv().slice(1,2):t=a(this,J,"f").process.argv().slice(0,1),e=t.map(n=>{let r=this[du](a(this,It,"f"),n);return n.match(/^(\/|([a-zA-Z]:)?\\)/)&&r.length<n.length?r:n}).join(" ").trim(),a(this,J,"f").getEnv("_")&&a(this,J,"f").getProcessArgvBin()===a(this,J,"f").getEnv("_")&&(e=a(this,J,"f").getEnv("_").replace(`${a(this,J,"f").path.dirname(a(this,J,"f").process.execPath())}/`,"")),e}[Pt](){return a(this,Ts,"f")}[su](){return a(this,Is,"f")}[Wi](){if(!a(this,Bt,"f"))return;let e=a(this,J,"f").getEnv("LC_ALL")||a(this,J,"f").getEnv("LC_MESSAGES")||a(this,J,"f").getEnv("LANG")||a(this,J,"f").getEnv("LANGUAGE")||"en_US";this.locale(e.replace(/[.:].*/,""))}[iu](){return this[qi]().version||"unknown"}[ru](e){let t=e["--"]?e["--"]:e._;for(let n=0,r;(r=t[n])!==void 0;n++)a(this,J,"f").Parser.looksLikeNumber(r)&&Number.isSafeInteger(Math.floor(parseFloat(`${r}`)))&&(t[n]=Number(r));return e}[qi](e){let t=e||"*";if(a(this,on,"f")[t])return a(this,on,"f")[t];let n={};try{let r=e||a(this,J,"f").mainFilename;!e&&a(this,J,"f").path.extname(r)&&(r=a(this,J,"f").path.dirname(r));let o=a(this,J,"f").findUp(r,(i,u)=>{if(u.includes("package.json"))return"package.json"});xe(o,void 0,a(this,J,"f")),n=JSON.parse(a(this,J,"f").readFileSync(o,"utf8"))}catch{}return a(this,on,"f")[t]=n||{},a(this,on,"f")[t]}[Et](e,t){t=[].concat(t),t.forEach(n=>{n=this[Vi](n),a(this,S,"f")[e].push(n)})}[un](e,t,n,r){this[Ui](e,t,n,r,(o,i,u)=>{a(this,S,"f")[o][i]=u})}[Gi](e,t,n,r){this[Ui](e,t,n,r,(o,i,u)=>{a(this,S,"f")[o][i]=(a(this,S,"f")[o][i]||[]).concat(u)})}[Ui](e,t,n,r,o){if(Array.isArray(n))n.forEach(i=>{e(i,r)});else if((i=>typeof i=="object")(n))for(let i of nn(n))e(i,n[i]);else o(t,this[Vi](n),r)}[Vi](e){return e==="__proto__"?"___proto___":e}[Hi](e,t){return this[un](this[Hi].bind(this),"key",e,t),this}[zi](){var e,t,n,r,o,i,u,h,f,p,l,m;let C=a(this,xs,"f").pop();xe(C,void 0,a(this,J,"f"));let w;e=this,t=this,n=this,r=this,o=this,i=this,u=this,h=this,f=this,p=this,l=this,m=this,{options:{set value(y){T(e,S,y,"f")}}.value,configObjects:w,exitProcess:{set value(y){T(t,Pe,y,"f")}}.value,groups:{set value(y){T(n,Xe,y,"f")}}.value,output:{set value(y){T(r,ge,y,"f")}}.value,exitError:{set value(y){T(o,gt,y,"f")}}.value,hasOutput:{set value(y){T(i,Ne,y,"f")}}.value,parsed:this.parsed,strict:{set value(y){T(u,kt,y,"f")}}.value,strictCommands:{set value(y){T(h,jt,y,"f")}}.value,strictOptions:{set value(y){T(f,Mt,y,"f")}}.value,completionCommand:{set value(y){T(p,Be,y,"f")}}.value,parseFn:{set value(y){T(l,Se,y,"f")}}.value,parseContext:{set value(y){T(m,Nt,y,"f")}}.value}=C,a(this,S,"f").configObjects=w,a(this,L,"f").unfreeze(),a(this,ce,"f").unfreeze(),a(this,fe,"f").unfreeze(),a(this,Je,"f").unfreeze()}[ou](e,t){return _t(t,n=>(e(n),n))}getInternalMethods(){return{getCommandInstance:this[uu].bind(this),getContext:this[au].bind(this),getHasOutput:this[cu].bind(this),getLoggerInstance:this[lu].bind(this),getParseContext:this[hu].bind(this),getParserConfiguration:this[Pt].bind(this),getUsageConfiguration:this[su].bind(this),getUsageInstance:this[fu].bind(this),getValidationInstance:this[Du].bind(this),hasParseCallback:this[Bs].bind(this),isGlobalContext:this[pu].bind(this),postProcess:this[Jt].bind(this),reset:this[Yi].bind(this),runValidation:this[Ki].bind(this),runYargsParserAndExecuteCommands:this[Fn].bind(this),setHasOutput:this[mu].bind(this)}}[uu](){return a(this,fe,"f")}[au](){return a(this,yn,"f")}[cu](){return a(this,Ne,"f")}[lu](){return a(this,rn,"f")}[hu](){return a(this,Nt,"f")||{}}[fu](){return a(this,L,"f")}[Du](){return a(this,ce,"f")}[Bs](){return!!a(this,Se,"f")}[pu](){return a(this,Os,"f")}[Jt](e,t,n,r){return n||Q(e)||(t||(e=this[Zo](e)),(this[Pt]()["parse-positional-numbers"]||this[Pt]()["parse-positional-numbers"]===void 0)&&(e=this[ru](e)),r&&(e=Tt(e,this,a(this,Je,"f").getMiddleware(),!1))),e}[Yi](e={}){T(this,S,a(this,S,"f")||{},"f");let t={};t.local=a(this,S,"f").local||[],t.configObjects=a(this,S,"f").configObjects||[];let n={};t.local.forEach(i=>{n[i]=!0,(e[i]||[]).forEach(u=>{n[u]=!0})}),Object.assign(a(this,St,"f"),Object.keys(a(this,Xe,"f")).reduce((i,u)=>{let h=a(this,Xe,"f")[u].filter(f=>!(f in n));return h.length>0&&(i[u]=h),i},{})),T(this,Xe,{},"f");let r=["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"],o=["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"];return r.forEach(i=>{t[i]=(a(this,S,"f")[i]||[]).filter(u=>!n[u])}),o.forEach(i=>{t[i]=dt(a(this,S,"f")[i],u=>!n[u])}),t.envPrefix=a(this,S,"f").envPrefix,T(this,S,t,"f"),T(this,L,a(this,L,"f")?a(this,L,"f").reset(n):Go(this,a(this,J,"f")),"f"),T(this,ce,a(this,ce,"f")?a(this,ce,"f").reset(n):Ko(this,a(this,L,"f"),a(this,J,"f")),"f"),T(this,fe,a(this,fe,"f")?a(this,fe,"f").reset():Lo(a(this,L,"f"),a(this,ce,"f"),a(this,Je,"f"),a(this,J,"f")),"f"),a(this,Me,"f")||T(this,Me,Ho(this,a(this,L,"f"),a(this,fe,"f"),a(this,J,"f")),"f"),a(this,Je,"f").reset(),T(this,Be,null,"f"),T(this,ge,"","f"),T(this,gt,null,"f"),T(this,Ne,!1,"f"),this.parsed=!1,this}[du](e,t){return a(this,J,"f").path.relative(e,t)}[Fn](e,t,n,r=0,o=!1){let i=!!n||o;e=e||a(this,Ct,"f"),a(this,S,"f").__=a(this,J,"f").y18n.__,a(this,S,"f").configuration=this[Pt]();let u=!!a(this,S,"f").configuration["populate--"],h=Object.assign({},a(this,S,"f").configuration,{"populate--":!0}),f=a(this,J,"f").Parser.detailed(e,Object.assign({},a(this,S,"f"),{configuration:{"parse-positional-numbers":!1,...h}})),p=Object.assign(f.argv,a(this,Nt,"f")),l,m=f.aliases,C=!1,w=!1;Object.keys(p).forEach(y=>{y===a(this,Re,"f")&&p[y]?C=!0:y===a(this,et,"f")&&p[y]&&(w=!0)}),p.$0=this.$0,this.parsed=f,r===0&&a(this,L,"f").clearCachedHelpMessage();try{if(this[Wi](),t)return this[Jt](p,u,!!n,!1);a(this,Re,"f")&&[a(this,Re,"f")].concat(m[a(this,Re,"f")]||[]).filter(k=>k.length>1).includes(""+p._[p._.length-1])&&(p._.pop(),C=!0),T(this,Os,!1,"f");let y=a(this,fe,"f").getCommands(),D=a(this,Me,"f").completionKey in p,I=C||D||o;if(p._.length){if(y.length){let A;for(let k=r||0,b;p._[k]!==void 0;k++)if(b=String(p._[k]),y.includes(b)&&b!==a(this,Be,"f")){let R=a(this,fe,"f").runCommand(b,this,f,k+1,o,C||w||o);return this[Jt](R,u,!!n,!1)}else if(!A&&b!==a(this,Be,"f")){A=b;break}!a(this,fe,"f").hasDefaultCommand()&&a(this,_s,"f")&&A&&!I&&a(this,ce,"f").recommendCommands(A,y)}a(this,Be,"f")&&p._.includes(a(this,Be,"f"))&&!D&&(a(this,Pe,"f")&&mt(!0),this.showCompletionScript(),this.exit(0))}if(a(this,fe,"f").hasDefaultCommand()&&!I){let A=a(this,fe,"f").runCommand(null,this,f,0,o,C||w||o);return this[Jt](A,u,!!n,!1)}if(D){a(this,Pe,"f")&&mt(!0),e=[].concat(e);let A=e.slice(e.indexOf(`--${a(this,Me,"f").completionKey}`)+1);return a(this,Me,"f").getCompletion(A,(k,b)=>{if(k)throw new K(k.message);(b||[]).forEach(R=>{a(this,rn,"f").log(R)}),this.exit(0)}),this[Jt](p,!u,!!n,!1)}if(a(this,Ne,"f")||(C?(a(this,Pe,"f")&&mt(!0),i=!0,this.showHelp("log"),this.exit(0)):w&&(a(this,Pe,"f")&&mt(!0),i=!0,a(this,L,"f").showVersion("log"),this.exit(0))),!i&&a(this,S,"f").skipValidation.length>0&&(i=Object.keys(p).some(A=>a(this,S,"f").skipValidation.indexOf(A)>=0&&p[A]===!0)),!i){if(f.error)throw new K(f.error.message);if(!D){let A=this[Ki](m,{},f.error);n||(l=Tt(p,this,a(this,Je,"f").getMiddleware(),!0)),l=this[ou](A,l??p),Q(l)&&!n&&(l=l.then(()=>Tt(p,this,a(this,Je,"f").getMiddleware(),!1)))}}}catch(y){if(y instanceof K)a(this,L,"f").fail(y.message,y);else throw y}return this[Jt](l??p,u,!!n,!0)}[Ki](e,t,n,r){let o={...this.getDemandedOptions()};return i=>{if(n)throw new K(n.message);a(this,ce,"f").nonOptionCount(i),a(this,ce,"f").requiredArguments(i,o);let u=!1;a(this,jt,"f")&&(u=a(this,ce,"f").unknownCommands(i)),a(this,kt,"f")&&!u?a(this,ce,"f").unknownArguments(i,e,t,!!r):a(this,Mt,"f")&&a(this,ce,"f").unknownArguments(i,e,{},!1,!1),a(this,ce,"f").limitedChoices(i),a(this,ce,"f").implications(i),a(this,ce,"f").conflicting(i)}}[mu](){T(this,Ne,!0,"f")}[Rt](e){if(typeof e=="string")a(this,S,"f").key[e]=!0;else for(let t of e)a(this,S,"f").key[t]=!0}};function Wo(s){return!!s&&typeof s.getInternalMethods=="function"}var bl=gu(jo),Cu=bl;function wl(s,e){return Cu(s).strict().command("* <template> <outDir>","Create a new project powered by qwik",n=>n.positional("template",{type:"string",desc:"Starter template",choices:e}).positional("outDir",{type:"string",desc:"Directory of the project"}).option("force",{alias:"f",type:"boolean",default:!1,desc:"Overwrite target directory if it exists"}).option("installDeps",{alias:"i",default:!1,type:"boolean",desc:"Install dependencies"}).usage("npm create qwik@latest base ./my-project <options>")).argv}async function yu(...s){let e=ut(),t=await tn("app"),n=t.standaloneTemplates.map(({id:m})=>m),r=wl(s,n),{force:o,installDeps:i,template:u}=r,h=r.outDir;Nn(`Let's create a ${hn(" Qwik App ")} \u2728 (v2.0.0-beta.17-dev+c34c237)`),Al()?h=process.cwd():(h=ps(h),Eu.existsSync(h)&&Eu.readdirSync(h).length>0&&(o?await kn(h):(ie.error(`Directory "${h}" already exists.`),ie.info("Please either remove this directory, choose another location or run the command again with '--force | -f' flag."),ln(),process.exit(1))));let f=await en({outDir:h,appId:u,pkgManager:e,templateManager:t}),p=qt(),l=!1;return i&&(l=await hs(async()=>await bt(e,h).install,{pkgManager:e,spinner:p})),fs(e,f,l),f}function Al(){return vl()}function vl(){try{return process.cwd().startsWith("/home/projects/")}catch{}return!1}import{join as Ol,relative as $l}from"node:path";import Xi from"node:fs";var Zi=[["What's the best thing about a Boolean?","Even if you're wrong, you're only off by a bit."],["Why did the developer stay at home?","Because he couldn't find his keys."],["How many programmers does it take to change a lightbulb?","None that's a hardware problem"],["A user interface is like a joke.","If you have to explain it then it is not that good."],["['hip', 'hip']","(hip hip array)"],["A SQL query goes into a bar, walks up to two tables and asks:","'Can I JOIN you?'"],["Why did the developer go to therapy?","He had too many unresolved issues."],["Why do C# and Java developers keep breaking their keyboards?","Because they use a strongly typed language."],["What's the object-oriented way to become wealthy?","Inheritance"],["Where do programmers like to hangout?","The Foo Bar."],["Why do Java programmers wear glasses?","Because they don't C#"],["To understand what recursion is...","You must first understand what recursion is"],["The punchline often arrives before the set-up.","Do you know the problem with UDP jokes?"],["Why did the programmer quit his job?","Because he didn't get arrays."],["Why was the computer tired when it got home?","It had a hard drive."],["There are 10 types of people in this world...","Those who understand binary and those who don't"],["Why do programmers always mix up Halloween and Christmas?","Because Oct 31 == Dec 25"],["I was gonna tell you a joke about UDP...","...but you might not get it."],["Normal People: give me just a second","Developers: give me 1000 milliseconds!"],["Why do programmers prefer dark mode?","Because light attracts bugs."],["Why don't programmers like nature?","It has too many bugs."],["Why was the computer freezing?","It left its Windows open!"],["What did the Java code say to the C code?","You've got no class."],["Why do programmers prefer the outdoors?","Because it's free of bugs."],["Why do programmers love movies?","Because they can 'script' the ending."],["why do desert animals hate Qwik?","Because there's no hydration...."],["What can you do if you cannot push your git changes?","Use the --force, Luke"],["How did the developer announce he's getting married?","'She returned true!'"],["How many Prolog programmers does it take to change a lightbulb?","Yes."],["Why did the developer ground their kid?","They weren't telling the truthy"],["!false","It's funny 'cause it's true."],["Where did the parallel function wash its hands?","Async"],["How do functions break up?","They stop calling each other"],["Why did the functions stop calling each other?","Because they had constant arguments."],["What's the second movie about a database engineer called?","The SQL."],["What did the computer do at lunchtime?","NoSQL."],["Why doesn't Hollywood make more Big Data movies?","Had a byte!"],["What does a baby computer call his father?","Data!"],["I never tell the same joke twice","I have a DRY sense of humor."],["How do programming pirates pass method parameters?","ARRRRRGS."],["Why don't bachelors like Git?","Because they are afraid to commit."],["Why do astronauts use Linux?","They can't open Windows in space!"],["How do front end devs like their brownies?","GUI"],["What do hackers do on a boat?","Phishing."],["Why couldn't the HTML list be trusted?","There were LI's everywhere"],["To the person who invented zero:","Thank's for nothing!"],["What do you call a bee that lives in America?","A USB"],["want about to a race conditions hear joke?",""],["What is a Package Managers favorite holiday?","Dependency Day"],["Where do we get all of these dad jokes from?","A dad-a-base!"],["What advice do you give to a JS developer who has never played baseball?","Try catch."],["We don't have any DNS jokes, know why?","Because it may take 24 hours to get them"],["Why do Front-End Developers eat lunch alone?","Because they don't know how to join tables."],["How do you help JS errors?","You `console` them!"],["When do front end developers go out to eat?","On their lunch <br>."],["What do you call optimistic front-end developers?","Stack half-full developers."]];function Fu(){let s=Math.floor(Math.random()*Zi.length);return Zi[s]}async function bu(){let s=ut(),e=await tn("app"),t="./qwik-app";Nn(`Let's create a ${hn(" Qwik App ")} \u2728 (v2.0.0-beta.17-dev+c34c237)`),await qr(500);let n=await wr({message:`Where would you like to create your new project? ${ot("(Use '.' or './' for current directory)")}`,placeholder:t})||t;rt(n)&&(ln("Operation cancelled."),process.exit(0));let r=e.getBaseApp();if(!r)throw new Error("Base app not found");let o=e.templates.filter(A=>A.id!==r.id).sort((A,k)=>A.name.localeCompare(k.name)),i=ps(n.trim());r.target=i;let u=zr(s,r),h=async()=>{await u.abort(),ln("Operation cancelled."),process.exit(0)};ie.info(`Creating new project in ${hn(" "+i+" ")} ... \u{1F407}`);let f=null;if(Xi.existsSync(i)&&Xi.readdirSync(i).length>0){let A=await Ys({message:`Directory "./${$l(process.cwd(),i)}" already exists and is not empty. What would you like to do?`,options:[{value:"exit",label:"Do not overwrite this directory and exit"},{value:"replace",label:"Remove contents of this directory"}]});if(rt(A)||A==="exit")return await h();A==="replace"&&(f=kn(i))}let p=await Ys({message:"Select a starter",options:o.map(A=>({label:A.name,value:A.id,hint:A.pkgJson?.description}))});if(rt(p))return await h();let l=p,m=await Bn({message:`Would you like to install ${s} dependencies?`,initialValue:!0});if(rt(m))return await h();let C=await Bn({message:"Initialize a new git repository?",initialValue:!0});f&&await f;let w=m;if(!w)u.abort();else if(typeof u.success>"u")try{let A=await Bn({message:"Finishing the install. Wanna hear a joke?",initialValue:!0});if(!rt(A)&&A){let[k,b]=Fu();Mn(be(`${k.trim()}
|
|
171
171
|
${b.trim()}`),"\u{1F648}")}}catch{}let y=qt();y.start("Creating App...");let D=await en({appId:l,outDir:i,pkgManager:s,templateManager:e});if(y.stop("App Created \u{1F430}"),C)if(Xi.existsSync(Ol(i,".git")))ie.info("Git has already been initialized before. Skipping...");else{y.start("Git initializing...");try{let A=[];if(A.push(await Gt("git",["init"],i).install),A.push(await Gt("git",["add","-A"],i).install),A.push(await Gt("git",["commit","-m","Initial commit \u26A1\uFE0F"],i).install),A.some(k=>k===!1))throw"";y.stop("Git initialized \u{1F3B2}")}catch{y.stop("Git failed to initialize"),ie.error(Te("Git failed to initialize. You can do this manually by running: git init"))}}let I=!1;return w&&(I=await hs(async()=>{let A=await u.complete(D.outDir);return A&&await bt(s,D.outDir).install},{pkgManager:s,spinner:y})),fs(s,D,I),D}async function Tl(s){let e=ut(),t=await tn("app");return await en({appId:s.starterId,templateManager:t,outDir:s.outDir,pkgManager:e})}async function Cd(){Vr(),_l();try{let s=process.argv.slice(2);s.length>0?await yu(...s):await bu()}catch(s){jn(s.message||s)}}function _l(){let s=process.version,[e,t]=s.replace("v","").split(".");Number(e)<16?(console.error(Te(`Qwik requires Node.js 16.8 or higher. You are currently running Node.js ${s}.`)),process.exit(1)):Number(e)===16?Number(t)<8&&console.warn(Ir(`Node.js 16.8 or higher is recommended. You are currently running Node.js ${s}.`)):Number(e)===18&&Number(t)<11&&console.error(Te(`Node.js 18.11 or higher is REQUIRED. From Node 18.0.0 to 18.11.0, there is a bug preventing correct behaviour of Qwik. You are currently running Node.js ${s}. https://github.com/QwikDev/qwik/issues/3035`))}export{Tl as createApp,Cd as runCli,yu as runCreateCli,bu as runCreateInteractiveCli};
|
|
172
172
|
/*! Bundled license information:
|
|
173
173
|
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
"qwik": "qwik"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@qwik.dev/core": "^2.0.0-beta.
|
|
20
|
-
"@qwik.dev/router": "^2.0.0-beta.
|
|
19
|
+
"@qwik.dev/core": "^2.0.0-beta.17",
|
|
20
|
+
"@qwik.dev/router": "^2.0.0-beta.17",
|
|
21
21
|
"@eslint/js": "latest",
|
|
22
22
|
"@types/node": "24.3.0",
|
|
23
23
|
"typescript-eslint": "8.45.0",
|
|
24
24
|
"eslint": "9.33.0",
|
|
25
|
-
"eslint-plugin-qwik": "^2.0.0-beta.
|
|
25
|
+
"eslint-plugin-qwik": "^2.0.0-beta.17",
|
|
26
26
|
"globals": "16.4.0",
|
|
27
27
|
"prettier": "3.6.2",
|
|
28
28
|
"typescript": "5.9.3",
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
"release": "np"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@qwik.dev/core": "2.0.0-beta.
|
|
35
|
+
"@qwik.dev/core": "2.0.0-beta.17",
|
|
36
36
|
"@qwik.dev/router": "latest",
|
|
37
37
|
"@eslint/js": "latest",
|
|
38
38
|
"@types/node": "24.3.0",
|
|
39
39
|
"typescript-eslint": "8.45.0",
|
|
40
40
|
"eslint": "9.33.0",
|
|
41
|
-
"eslint-plugin-qwik": "2.0.0-beta.
|
|
41
|
+
"eslint-plugin-qwik": "2.0.0-beta.17",
|
|
42
42
|
"globals": "16.4.0",
|
|
43
43
|
"np": "^8.0.4",
|
|
44
44
|
"prettier": "3.6.2",
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WHAT IS THIS FILE?
|
|
3
|
+
*
|
|
4
|
+
* Globally applied styles. No matter which components are in the page or matching route,
|
|
5
|
+
* the styles in here will be applied to the Document, without any sort of CSS scoping.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
html {
|
|
9
|
+
-webkit-text-size-adjust: 100%;
|
|
10
|
+
-moz-tab-size: 4;
|
|
11
|
+
-o-tab-size: 4;
|
|
12
|
+
tab-size: 4;
|
|
13
|
+
font-family:
|
|
14
|
+
ui-sans-serif,
|
|
15
|
+
system-ui,
|
|
16
|
+
-apple-system,
|
|
17
|
+
BlinkMacSystemFont,
|
|
18
|
+
"Segoe UI",
|
|
19
|
+
Roboto,
|
|
20
|
+
"Helvetica Neue",
|
|
21
|
+
Arial,
|
|
22
|
+
"Noto Sans",
|
|
23
|
+
sans-serif,
|
|
24
|
+
"Apple Color Emoji",
|
|
25
|
+
"Segoe UI Emoji",
|
|
26
|
+
"Segoe UI Symbol",
|
|
27
|
+
"Noto Color Emoji";
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
body {
|
|
31
|
+
padding: 0;
|
|
32
|
+
line-height: inherit;
|
|
33
|
+
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-qwik",
|
|
3
3
|
"description": "Interactive CLI for create Qwik projects and adding features.",
|
|
4
|
-
"version": "2.0.0-beta.
|
|
4
|
+
"version": "2.0.0-beta.17",
|
|
5
5
|
"author": "Qwik Team",
|
|
6
6
|
"bin": "./create-qwik.mjs",
|
|
7
7
|
"bugs": "https://github.com/QwikDev/qwik/issues",
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"execa": "9.6.0"
|
|
10
|
+
},
|
|
8
11
|
"devDependencies": {
|
|
9
12
|
"@clack/prompts": "0.11.0",
|
|
10
13
|
"@types/yargs": "17.0.33",
|