@makechtec/tezcatl-cli
Advanced tools
Comparing version 1.0.3 to 1.0.4
## For development NOT FOR FINAL USERS!! ## | ||
to compile | ||
node dev/index.js | ||
webpack | ||
npm install -g | ||
tezcatl-cli name=jscomponent phcomponent=Test file=Test.mjs import1=react --class | ||
node dev/index.js | ||
then | ||
webpack | ||
agregar la bandera de "g" a los match all |
@@ -1,1 +0,1 @@ | ||
(()=>{"use strict";var e={d:(t,r)=>{for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{ARGUMENT_FLAG:()=>c,Argument:()=>p,CLI:()=>u,Pattern:()=>l,Reader:()=>s,Writter:()=>f,default:()=>a});const r=require("node:process"),n=require("node:fs");function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var u={getArgumentValue:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.argv,n=t.find((function(t){return l.testArg(e,t)})),o=n.split("=")[1];return new p(e,o)},getArgumentsGroup:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.argv;return t.filter((function(t){return l.testArg(e,t)})).map((function(t){return t.replace(e,"")})).map((function(e){var t=e.split("=")[0],r=e.split("=")[1];return new p(t,r)}))},getFlagsGroup:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.argv;return e.filter((function(e){return l.testFlag(e)})).map((function(e){return e.replace(c,"")})).map((function(e){return new p(e,!0)}))},isFlag:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.argv;return t.includes(c+e)},getAllArguments:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.argv,t=e.slice(2);return t.filter((function(e){return l.testIsArg(e)})).map((function(e){var t=e.split("=")[0],r=e.split("=")[1];return new p(t,r)}))}};const a=u;var c="--",l={testStart:function(e,t){return new RegExp("^"+e).test(t)},testArg:function(e,t){return new RegExp("^"+e).test(t)},testIsArg:function(e){return e.includes("=")},testFlag:function(e){return new RegExp("^"+c).test(e)},testHasDirectory:function(e){return new RegExp("/").test(e)},replacePlaceholder:function(e,t){var r=new RegExp("\\$\\{"+t.name+"\\}","g");return e.replace(r,t.value)}},s={readTemplate:function(e){return n.existsSync(e)?n.readFileSync(e,"utf8"):(console.error("Template directory not found for: "+(0,r.cwd)()),"")},changePlaceholders:function(e,t){var r=e;return t.forEach((function(e){r=l.replacePlaceholder(r,e)})),r}},f={writeFile:function(e,t){if(l.testHasDirectory(e)){var r=e.lastIndexOf("/"),o=e.substring(0,r);this.createDirectory(o)}n.writeFileSync(e,t)},createDirectory:function(e){n.mkdirSync(e,{recursive:!0})}},p=i((function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name=t,this.value=r}));exports.ARGUMENT_FLAG=t.ARGUMENT_FLAG,exports.Argument=t.Argument,exports.CLI=t.CLI,exports.Pattern=t.Pattern,exports.Reader=t.Reader,exports.Writter=t.Writter,exports.default=t.default,Object.defineProperty(exports,"__esModule",{value:!0})})(); | ||
(()=>{"use strict";var e={d:(t,r)=>{for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{ARGUMENT_FLAG:()=>c,Argument:()=>p,CLI:()=>i,Pattern:()=>l,Reader:()=>s,Writter:()=>f,default:()=>a});const r=require("node:process"),n=require("node:fs");function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var i={getArgumentValue:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.argv,n=t.find((function(t){return l.testArg(e,t)})),o=n.split("=")[1];return new p(e,o)},getArgumentsGroup:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.argv;return t.filter((function(t){return l.testArg(e,t)})).map((function(t){return t.replace(e,"")})).map((function(e){var t=e.split("=")[0],r=e.split("=")[1];return new p(t,r)}))},getFlagsGroup:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.argv;return e.filter((function(e){return l.testFlag(e)})).map((function(e){return e.replace(c,"")})).map((function(e){return new p(e,!0)}))},isFlag:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.argv;return t.includes(c+e)},getAllArguments:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.argv,t=e.slice(2);return t.filter((function(e){return l.testIsArg(e)})).map((function(e){var t=e.split("=")[0],r=e.split("=")[1];return new p(t,r)}))}};const a=i;var c="--",l={testStart:function(e,t){return new RegExp("^"+e).test(t)},testArg:function(e,t){return new RegExp("^"+e).test(t)},testIsArg:function(e){return e.includes("=")},testFlag:function(e){return new RegExp("^"+c).test(e)},testHasDirectory:function(e){return new RegExp("/").test(e)},replacePlaceholder:function(e,t){var r=new RegExp("\\$\\{"+t.name+"\\}","g");return e.replace(r,t.value)},countMatches:function(e,t){var r=new RegExp(t,"g");return((e||"").match(r)||[]).length}},s={readTemplate:function(e){return n.existsSync(e)?n.readFileSync(e,"utf8"):(console.error("Template directory not found for: "+(0,r.cwd)()),"")},changePlaceholders:function(e,t){var r=e;return t.forEach((function(e){r=l.replacePlaceholder(r,e)})),r}},f={writeFile:function(e,t){if(l.testHasDirectory(e)){var r=e.lastIndexOf("/"),o=e.substring(0,r);this.createDirectory(o)}n.writeFileSync(e,t)},createDirectory:function(e){n.mkdirSync(e,{recursive:!0})}},p=u((function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name=t,this.value=r}));exports.ARGUMENT_FLAG=t.ARGUMENT_FLAG,exports.Argument=t.Argument,exports.CLI=t.CLI,exports.Pattern=t.Pattern,exports.Reader=t.Reader,exports.Writter=t.Writter,exports.default=t.default,Object.defineProperty(exports,"__esModule",{value:!0})})(); |
{ | ||
"name": "@makechtec/tezcatl-cli", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "", | ||
@@ -9,2 +9,5 @@ "main": "index.js", | ||
}, | ||
"bin": { | ||
"tezcatl-cli": "bin/index.mjs" | ||
}, | ||
"repository": { | ||
@@ -27,3 +30,6 @@ "type": "git", | ||
"webpack-cli": "^4.9.2" | ||
}, | ||
"dependencies": { | ||
"@makechtec/pipe": "^1.0.2" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10963
15
171
1
+ Added@makechtec/pipe@^1.0.2
+ Added@makechtec/pipe@1.0.7(transitive)