@junobuild/cli 0.0.56 → 0.0.57
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
CHANGED
|
@@ -2214,7 +2214,7 @@ Are you sure the folder containing your built app (the "source" tag in the confi
|
|
|
2214
2214
|
${r}`,"utf-8")},lOe=async()=>{await iOe(Ez,{recursive:!0}),await Tu({command:"ic-wasm",args:[Fd(bz,"satellite.wasm"),"-o",$o,"shrink"]}),await Tu({command:"ic-wasm",args:[$o,"-o",$o,"metadata","candid:service","-f",xz,"-v","public"]}),await Tu({command:"ic-wasm",args:[$o,"-o",$o,"metadata","juno:build","-d","extended","-v","public"]}),await Tu({command:"ic-wasm",args:[$o,"-o",$o,"metadata","supported_certificate_versions","-d",'"1,2"',"-v","public"]})},cOe=async e=>{let t=`${$o}.gz`,{size:r}=await nOe(t),n=i=>Intl.NumberFormat("en-US",{maximumSignificantDigits:2}).format(i/(1024*1024));e.succeed(`${(0,Al.green)("Success!")}
|
|
2215
2215
|
|
|
2216
2216
|
The satellite has been compiled.
|
|
2217
|
-
Output file: ${(0,Al.yellow)(`${aOe(process.cwd(),t)}`)} ${(0,Al.grey)(`(${n(r)}MB)`)}`)},pOe=async()=>{let{valid:e}=await Az();return e===!1?{valid:e}:(e==="error"&&(await Yi(`The ${(0,Al.magenta)("ic-wasm")} ${(0,Al.yellow)(`v${qh}`)} tool is required to build a satellite but appears to be not available. Would you like to install it on your machine?`),await uc({command:"cargo",args:["install",`ic-wasm@${qh}`]})),{valid:!0})},dOe=async()=>{let{valid:e}=await yz();return e===!1?{valid:e}:(e==="error"&&(await Yi(`The ${(0,Al.magenta)("candid-extractor")} tool is required to generate the API ("did file") of your custom satellite but appears to be not available. Would you like to install it on your machine?`),await uc({command:"cargo",args:["install","candid-extractor"]})),{valid:!0})};var Tz=Bt(zt(),1);import{existsSync as fOe}from"node:fs";import{writeFile as hOe}from"node:fs/promises";import{join as mOe}from"node:path";var Cz={filename:F0},Iz=async()=>await lE(Cz),Sz=()=>Uf(Cz);var Bz="../templates/docker",_z=process.cwd(),Dz=async()=>{let{valid:e}=await TP();e==="error"||!e||(await BP(),await AOe(),await yOe(),await uc({command:"docker",args:["compose","up"]}))},Pz=async()=>{let{valid:e}=await TP();e==="error"||!e||(await BP(),await uc({command:"docker",args:["compose","stop"]}))},AOe=async()=>{if(await Iz())return;await Yi("A config file is required for development. Would you like the CLI to create one for you?");let e=await dE();await ip({template:`${F0}.${e}`,sourceFolder:Bz,destinationFolder:_z})},yOe=async()=>{if(fOe("docker-compose.yml"))return;await Yi(`The CLI utilizes Docker Compose, which is handy for customizing configurations. Would you like the CLI to generate a default ${(0,Tz.magenta)("docker-compose.yml")} file for you?`);let{configType:e}=Sz(),t=await qf({template:"docker-compose.yml",sourceFolder:Bz}),r=`${F0}.${e}`,n=t.replaceAll("<JUNO_DEV_CONFIG>",r);await hOe(mOe(_z,"docker-compose.yml"),n,"utf-8")};var vp=Bt(zt(),1);import{mkdir as EOe}from"node:fs/promises";import{join as Uz}from"node:path";var Tt=Bt(zt(),1);var Av="0.0.
|
|
2217
|
+
Output file: ${(0,Al.yellow)(`${aOe(process.cwd(),t)}`)} ${(0,Al.grey)(`(${n(r)}MB)`)}`)},pOe=async()=>{let{valid:e}=await Az();return e===!1?{valid:e}:(e==="error"&&(await Yi(`The ${(0,Al.magenta)("ic-wasm")} ${(0,Al.yellow)(`v${qh}`)} tool is required to build a satellite but appears to be not available. Would you like to install it on your machine?`),await uc({command:"cargo",args:["install",`ic-wasm@${qh}`]})),{valid:!0})},dOe=async()=>{let{valid:e}=await yz();return e===!1?{valid:e}:(e==="error"&&(await Yi(`The ${(0,Al.magenta)("candid-extractor")} tool is required to generate the API ("did file") of your custom satellite but appears to be not available. Would you like to install it on your machine?`),await uc({command:"cargo",args:["install","candid-extractor"]})),{valid:!0})};var Tz=Bt(zt(),1);import{existsSync as fOe}from"node:fs";import{writeFile as hOe}from"node:fs/promises";import{join as mOe}from"node:path";var Cz={filename:F0},Iz=async()=>await lE(Cz),Sz=()=>Uf(Cz);var Bz="../templates/docker",_z=process.cwd(),Dz=async()=>{let{valid:e}=await TP();e==="error"||!e||(await BP(),await AOe(),await yOe(),await uc({command:"docker",args:["compose","up"]}))},Pz=async()=>{let{valid:e}=await TP();e==="error"||!e||(await BP(),await uc({command:"docker",args:["compose","stop"]}))},AOe=async()=>{if(await Iz())return;await Yi("A config file is required for development. Would you like the CLI to create one for you?");let e=await dE();await ip({template:`${F0}.${e}`,sourceFolder:Bz,destinationFolder:_z})},yOe=async()=>{if(fOe("docker-compose.yml"))return;await Yi(`The CLI utilizes Docker Compose, which is handy for customizing configurations. Would you like the CLI to generate a default ${(0,Tz.magenta)("docker-compose.yml")} file for you?`);let{configType:e}=Sz(),t=await qf({template:"docker-compose.yml",sourceFolder:Bz}),r=`${F0}.${e}`,n=t.replaceAll("<JUNO_DEV_CONFIG>",r);await hOe(mOe(_z,"docker-compose.yml"),n,"utf-8")};var vp=Bt(zt(),1);import{mkdir as EOe}from"node:fs/promises";import{join as Uz}from"node:path";var Tt=Bt(zt(),1);var Av="0.0.57";var bOe=` __ __ __ __ _ ____
|
|
2218
2218
|
__) || | || \\| |/ \\
|
|
2219
2219
|
\\___/ \\___/ |_|\\__|\\____/`,yl=`${bOe} CLI ${(0,Tt.grey)(`v${Av}`)}`,yv=`
|
|
2220
2220
|
${yl}
|
package/package.json
CHANGED