@mxfb/cli 0.0.16 → 0.0.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/cli/assets/list.txt +1 -0
- package/make-html/assets/list.txt +5 -0
- package/make-html/assets/template/icons/about.txt +6 -0
- package/make-html/assets/template/icons/android-chrome-192x192.png +0 -0
- package/make-html/assets/template/icons/android-chrome-512x512.png +0 -0
- package/make-html/assets/template/icons/apple-touch-icon.png +0 -0
- package/make-html/assets/template/icons/favicon-16x16.png +0 -0
- package/make-html/assets/template/icons/favicon-32x32.png +0 -0
- package/make-html/assets/template/icons/favicon.ico +0 -0
- package/make-html/assets/template/icons/site.webmanifest +1 -0
- package/make-html/assets/template/index.html +20 -0
- package/make-html/index.js +2 -0
- package/package.json +2 -1
- package/some-cli-util/index.js +4 -0
- package/some-other-cli-util/index.js +4 -0
- package/third-cli-util/index.js +4 -0
package/cli/assets/list.txt
CHANGED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
This favicon was generated using the following font:
|
|
2
|
+
|
|
3
|
+
- Font Title: Reddit Mono
|
|
4
|
+
- Font Author: Copyright (c) 2020-2023, Reddit, Inc. (https://github.com/reddit/redditsans)
|
|
5
|
+
- Font Source: https://fonts.gstatic.com/s/redditmono/v1/oPWc_kRmmu4oQ88oo13o48DHbsqn28eR20vUwCYacnnYz7yQYA.ttf
|
|
6
|
+
- Font License: SIL Open Font License, 1.1 (http://scripts.sil.org/OFL))
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self';">
|
|
7
|
+
<meta name="author" content="[AUTHOR]">
|
|
8
|
+
<meta name="description" content="[DESCRIPTION]">
|
|
9
|
+
<meta name="keywords" content="[KEYWORDS]">
|
|
10
|
+
<title>[TITLE]</title>
|
|
11
|
+
<link rel="apple-touch-icon" sizes="180x180" href="./icons/apple-touch-icon.png">
|
|
12
|
+
<link rel="icon" type="image/png" sizes="32x32" href="./icons/favicon-32x32.png">
|
|
13
|
+
<link rel="icon" type="image/png" sizes="16x16" href="./icons/favicon-16x16.png">
|
|
14
|
+
<link rel="manifest" href="./icons/site.webmanifest">
|
|
15
|
+
<link rel="stylesheet" href="./styles/index.css">
|
|
16
|
+
<script type="module" src="./scripts/index.js"></script>
|
|
17
|
+
</head>
|
|
18
|
+
<body>
|
|
19
|
+
</body>
|
|
20
|
+
</html>
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import o from"node:process";import{promises as r,existsSync as i}from"node:fs";import m from"node:url";import e from"node:path";var s=o.cwd(),a=m.fileURLToPath(import.meta.url),p=e.dirname(a),t=e.join(p,"assets/template");i(t)||(console.error(`Could not find the template to copy at ${t}`),o.exit(1));await r.cp(t,e.join(s,"template"),{recursive:!0});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mxfb/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.17",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "Maxime Fabas",
|
|
6
6
|
"license": "ISC",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"module": "index.js",
|
|
14
14
|
"bin": {
|
|
15
15
|
"cli": "./cli/index.js",
|
|
16
|
+
"make-html": "./make-html/index.js",
|
|
16
17
|
"some-cli-util": "./some-cli-util/index.js",
|
|
17
18
|
"some-other-cli-util": "./some-other-cli-util/index.js",
|
|
18
19
|
"third-cli-util": "./third-cli-util/index.js"
|
package/some-cli-util/index.js
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
#!/usr/bin/env node
|
|
3
|
+
#!/usr/bin/env node
|
|
4
|
+
#!/usr/bin/env node
|
|
5
|
+
#!/usr/bin/env node
|
|
2
6
|
var mn=Object.create;var Fe=Object.defineProperty;var bn=Object.getOwnPropertyDescriptor;var vn=Object.getOwnPropertyNames;var wn=Object.getPrototypeOf,yn=Object.prototype.hasOwnProperty;var lt=(i=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(i,{get:(t,e)=>(typeof require<"u"?require:t)[e]}):i)(function(i){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+i+'" is not supported')});var u=(i,t)=>()=>(t||i((t={exports:{}}).exports,t),t.exports);var xn=(i,t,e,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of vn(t))!yn.call(i,r)&&r!==e&&Fe(i,r,{get:()=>t[r],enumerable:!(s=bn(t,r))||s.enumerable});return i};var Sn=(i,t,e)=>(e=i!=null?mn(wn(i)):{},xn(t||!i||!i.__esModule?Fe(e,"default",{value:i,enumerable:!0}):e,i));var f=u((Il,Ye)=>{"use strict";var{FORCE_COLOR:qn,NODE_DISABLE_COLORS:On,TERM:Mn}=process.env,c={enabled:!On&&Mn!=="dumb"&&qn!=="0",reset:d(0,0),bold:d(1,22),dim:d(2,22),italic:d(3,23),underline:d(4,24),inverse:d(7,27),hidden:d(8,28),strikethrough:d(9,29),black:d(30,39),red:d(31,39),green:d(32,39),yellow:d(33,39),blue:d(34,39),magenta:d(35,39),cyan:d(36,39),white:d(37,39),gray:d(90,39),grey:d(90,39),bgBlack:d(40,49),bgRed:d(41,49),bgGreen:d(42,49),bgYellow:d(43,49),bgBlue:d(44,49),bgMagenta:d(45,49),bgCyan:d(46,49),bgWhite:d(47,49)};function He(i,t){let e=0,s,r="",o="";for(;e<i.length;e++)s=i[e],r+=s.open,o+=s.close,t.includes(s.close)&&(t=t.replace(s.rgx,s.close+s.open));return r+t+o}function Tn(i,t){let e={has:i,keys:t};return e.reset=c.reset.bind(e),e.bold=c.bold.bind(e),e.dim=c.dim.bind(e),e.italic=c.italic.bind(e),e.underline=c.underline.bind(e),e.inverse=c.inverse.bind(e),e.hidden=c.hidden.bind(e),e.strikethrough=c.strikethrough.bind(e),e.black=c.black.bind(e),e.red=c.red.bind(e),e.green=c.green.bind(e),e.yellow=c.yellow.bind(e),e.blue=c.blue.bind(e),e.magenta=c.magenta.bind(e),e.cyan=c.cyan.bind(e),e.white=c.white.bind(e),e.gray=c.gray.bind(e),e.grey=c.grey.bind(e),e.bgBlack=c.bgBlack.bind(e),e.bgRed=c.bgRed.bind(e),e.bgGreen=c.bgGreen.bind(e),e.bgYellow=c.bgYellow.bind(e),e.bgBlue=c.bgBlue.bind(e),e.bgMagenta=c.bgMagenta.bind(e),e.bgCyan=c.bgCyan.bind(e),e.bgWhite=c.bgWhite.bind(e),e}function d(i,t){let e={open:`\x1B[${i}m`,close:`\x1B[${t}m`,rgx:new RegExp(`\\x1b\\[${t}m`,"g")};return function(s){return this!==void 0&&this.has!==void 0?(this.has.includes(i)||(this.has.push(i),this.keys.push(e)),s===void 0?this:c.enabled?He(this.keys,s+""):s+""):s===void 0?Tn([i],[e]):c.enabled?He([e],s+""):s+""}}Ye.exports=c});var Le=u((Dl,Ve)=>{"use strict";Ve.exports=(i,t)=>{if(!(i.meta&&i.name!=="escape")){if(i.ctrl){if(i.name==="a")return"first";if(i.name==="c"||i.name==="d")return"abort";if(i.name==="e")return"last";if(i.name==="g")return"reset"}if(t){if(i.name==="j")return"down";if(i.name==="k")return"up"}return i.name==="return"||i.name==="enter"?"submit":i.name==="backspace"?"delete":i.name==="delete"?"deleteForward":i.name==="abort"?"abort":i.name==="escape"?"exit":i.name==="tab"?"next":i.name==="pagedown"?"nextPage":i.name==="pageup"?"prevPage":i.name==="home"?"home":i.name==="end"?"end":i.name==="up"?"up":i.name==="down"?"down":i.name==="right"?"right":i.name==="left"?"left":!1}}});var ut=u((Cl,Ne)=>{"use strict";Ne.exports=i=>{let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),e=new RegExp(t,"g");return typeof i=="string"?i.replace(e,""):i}});var g=u((El,Ue)=>{"use strict";var Mt="\x1B",p=`${Mt}[`,$n="\x07",Tt={to(i,t){return t?`${p}${t+1};${i+1}H`:`${p}${i+1}G`},move(i,t){let e="";return i<0?e+=`${p}${-i}D`:i>0&&(e+=`${p}${i}C`),t<0?e+=`${p}${-t}A`:t>0&&(e+=`${p}${t}B`),e},up:(i=1)=>`${p}${i}A`,down:(i=1)=>`${p}${i}B`,forward:(i=1)=>`${p}${i}C`,backward:(i=1)=>`${p}${i}D`,nextLine:(i=1)=>`${p}E`.repeat(i),prevLine:(i=1)=>`${p}F`.repeat(i),left:`${p}G`,hide:`${p}?25l`,show:`${p}?25h`,save:`${Mt}7`,restore:`${Mt}8`},Pn={up:(i=1)=>`${p}S`.repeat(i),down:(i=1)=>`${p}T`.repeat(i)},_n={screen:`${p}2J`,up:(i=1)=>`${p}1J`.repeat(i),down:(i=1)=>`${p}J`.repeat(i),line:`${p}2K`,lineEnd:`${p}K`,lineStart:`${p}1K`,lines(i){let t="";for(let e=0;e<i;e++)t+=this.line+(e<i-1?Tt.up():"");return i&&(t+=Tt.left),t}};Ue.exports={cursor:Tt,scroll:Pn,erase:_n,beep:$n}});var Ze=u((Al,ze)=>{"use strict";function In(i,t){var e=typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(!e){if(Array.isArray(i)||(e=Dn(i))||t&&i&&typeof i.length=="number"){e&&(i=e);var s=0,r=function(){};return{s:r,n:function(){return s>=i.length?{done:!0}:{done:!1,value:i[s++]}},e:function(a){throw a},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
3
7
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,n=!1,h;return{s:function(){e=e.call(i)},n:function(){var a=e.next();return o=a.done,a},e:function(a){n=!0,h=a},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(n)throw h}}}}function Dn(i,t){if(i){if(typeof i=="string")return Ge(i,t);var e=Object.prototype.toString.call(i).slice(8,-1);if(e==="Object"&&i.constructor&&(e=i.constructor.name),e==="Map"||e==="Set")return Array.from(i);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return Ge(i,t)}}function Ge(i,t){(t==null||t>i.length)&&(t=i.length);for(var e=0,s=new Array(t);e<t;e++)s[e]=i[e];return s}var Cn=ut(),Be=g(),Je=Be.erase,En=Be.cursor,An=i=>[...Cn(i)].length;ze.exports=function(i,t){if(!t)return Je.line+En.to(0);let e=0,s=i.split(/\r?\n/);var r=In(s),o;try{for(r.s();!(o=r.n()).done;){let n=o.value;e+=1+Math.floor(Math.max(An(n)-1,0)/t)}}catch(n){r.e(n)}finally{r.f()}return Je.lines(e)}});var $t=u((jl,We)=>{"use strict";var Z={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203A",line:"\u2500",pointer:"\u276F"},jn={arrowUp:Z.arrowUp,arrowDown:Z.arrowDown,arrowLeft:Z.arrowLeft,arrowRight:Z.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221A",cross:"\xD7",ellipsis:"...",pointerSmall:"\xBB",line:"\u2500",pointer:">"},Rn=process.platform==="win32"?jn:Z;We.exports=Rn});var Xe=u((Rl,Ke)=>{"use strict";var N=f(),V=$t(),Pt=Object.freeze({password:{scale:1,render:i=>"*".repeat(i.length)},emoji:{scale:2,render:i=>"\u{1F603}".repeat(i.length)},invisible:{scale:0,render:i=>""},default:{scale:1,render:i=>`${i}`}}),kn=i=>Pt[i]||Pt.default,W=Object.freeze({aborted:N.red(V.cross),done:N.green(V.tick),exited:N.yellow(V.cross),default:N.cyan("?")}),Fn=(i,t,e)=>t?W.aborted:e?W.exited:i?W.done:W.default,Hn=i=>N.gray(i?V.ellipsis:V.pointerSmall),Yn=(i,t)=>N.gray(i?t?V.pointerSmall:"+":V.line);Ke.exports={styles:Pt,render:kn,symbols:W,symbol:Fn,delimiter:Hn,item:Yn}});var ti=u((kl,Qe)=>{"use strict";var Vn=ut();Qe.exports=function(i,t){let e=String(Vn(i)||"").split(/\r?\n/);return t?e.map(s=>Math.ceil(s.length/t)).reduce((s,r)=>s+r):e.length}});var ii=u((Fl,ei)=>{"use strict";ei.exports=(i,t={})=>{let e=Number.isSafeInteger(parseInt(t.margin))?new Array(parseInt(t.margin)).fill(" ").join(""):t.margin||"",s=t.width;return(i||"").split(/\r?\n/g).map(r=>r.split(/\s+/g).reduce((o,n)=>(n.length+e.length>=s||o[o.length-1].length+n.length+1<s?o[o.length-1]+=` ${n}`:o.push(`${e}${n}`),o),[e]).join(`
|
|
4
8
|
`)).join(`
|