qcobjects-cli 2.5.143-beta → 2.5.145-beta
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/.cursor/rules/collaboration-features.mdc +25 -0
- package/.cursor/rules/development-guidelines.mdc +37 -0
- package/.cursor/rules/project-structure.mdc +36 -0
- package/.dockerignore +0 -0
- package/.github/FUNDING.yml +0 -0
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- package/.github/ISSUE_TEMPLATE/custom.md +0 -0
- package/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- package/.github/ISSUE_TEMPLATE/issue-template.md +0 -0
- package/.github/workflows/ci.yml +26 -0
- package/.github/workflows/codeql-analysis.yml +0 -0
- package/.github/workflows/main-pr-source.yml +26 -0
- package/.github/workflows/npmpublish-beta.yml +18 -14
- package/.github/workflows/npmpublish-lts.yml +18 -14
- package/.github/workflows/npmpublish-main.yml +17 -13
- package/.github/workflows/open-pr-to-development.yml +70 -0
- package/.opencode/instructions/git-workflow.md +46 -0
- package/.pre-commit-config.yaml +9 -0
- package/AGENTS.md +59 -0
- package/CHANGELOG.md +0 -0
- package/README.md +75 -0
- package/VERSION +1 -1
- package/build-esbuild-esm.js +180 -0
- package/build-esbuild.js +182 -208
- package/deno.json +0 -0
- package/dev-requirements.txt +5 -0
- package/eslint.config.mjs +0 -0
- package/mod.ts +0 -0
- package/package.json +45 -44
- package/public/browser/api-client_services.js.map +1 -1
- package/public/browser/backend/backend-microservice-static.js +211 -219
- package/public/browser/backend/backend-microservice-static.js.map +2 -2
- package/public/browser/backend/backend-php.js +227 -231
- package/public/browser/backend/backend-php.js.map +3 -3
- package/public/browser/cli-commands-build-esbuild.js +326 -0
- package/public/browser/cli-commands-build-esbuild.js.map +7 -0
- package/public/browser/cli-commands-build-typescript.js +114 -0
- package/public/browser/cli-commands-build-typescript.js.map +7 -0
- package/public/browser/cli-commands-jira.js.map +1 -1
- package/public/browser/cli-commands-version.js.map +1 -1
- package/public/browser/cli-commands.js +4 -0
- package/public/browser/cli-commands.js.map +2 -2
- package/public/browser/cli-main.js.map +1 -1
- package/public/browser/client_services.js.map +1 -1
- package/public/browser/collab-server.js.map +1 -1
- package/public/browser/common-pipelog.js.map +1 -1
- package/public/browser/defaultsettings.js +68 -27
- package/public/browser/defaultsettings.js.map +3 -3
- package/public/browser/enterprise-commands.js.map +1 -1
- package/public/browser/main-file.js.map +1 -1
- package/public/browser/main-http-gae-server.js.map +1 -1
- package/public/browser/main-http-server.js.map +1 -1
- package/public/browser/main-http2-server.js.map +1 -1
- package/public/browser/qcobjects-cli.js.map +1 -1
- package/public/browser/qcobjects-collab.js +16 -24
- package/public/browser/qcobjects-collab.js.map +2 -2
- package/public/browser/qcobjects-createcert.js +46 -54
- package/public/browser/qcobjects-createcert.js.map +2 -2
- package/public/browser/qcobjects-gae-http-server.js +16 -24
- package/public/browser/qcobjects-gae-http-server.js.map +2 -2
- package/public/browser/qcobjects-http-server.js +16 -24
- package/public/browser/qcobjects-http-server.js.map +2 -2
- package/public/browser/qcobjects-http2-server.js +21 -30
- package/public/browser/qcobjects-http2-server.js.map +2 -2
- package/public/browser/qcobjects-shell.js.map +1 -1
- package/public/browser/templates/apps/spa-local.html +0 -0
- package/public/browser/templates/apps/spa-local.js +0 -0
- package/public/browser/templates/pwa/sw.js +0 -0
- package/public/browser/types/global/index.d.js +0 -9
- package/public/browser/types/global/index.d.js.map +3 -3
- package/public/cjs/api-client_services.js +74 -0
- package/public/cjs/api-client_services.js.map +1 -0
- package/public/cjs/backend/backend-microservice-static.js +255 -0
- package/public/cjs/backend/backend-microservice-static.js.map +1 -0
- package/public/cjs/backend/backend-php.js +317 -0
- package/public/cjs/backend/backend-php.js.map +1 -0
- package/public/cjs/cli-commands-build-esbuild.js +341 -0
- package/public/cjs/cli-commands-build-esbuild.js.map +1 -0
- package/public/cjs/cli-commands-build-typescript.js +127 -0
- package/public/cjs/cli-commands-build-typescript.js.map +1 -0
- package/public/cjs/cli-commands-jira.js +115 -0
- package/public/cjs/cli-commands-jira.js.map +1 -0
- package/public/cjs/cli-commands-publish-static.js +108 -0
- package/public/cjs/cli-commands-publish-static.js.map +1 -0
- package/public/cjs/cli-commands-version.js +250 -0
- package/public/cjs/cli-commands-version.js.map +1 -0
- package/public/cjs/cli-commands.js +73 -0
- package/public/cjs/cli-commands.js.map +1 -0
- package/public/cjs/cli-main.js +487 -0
- package/public/cjs/cli-main.js.map +1 -0
- package/public/cjs/client_services.js +80 -0
- package/public/cjs/client_services.js.map +1 -0
- package/public/cjs/collab-server.js +404 -0
- package/public/cjs/collab-server.js.map +1 -0
- package/public/cjs/common-pipelog.js +57 -0
- package/public/cjs/common-pipelog.js.map +1 -0
- package/public/cjs/defaultsettings.js +496 -0
- package/public/cjs/defaultsettings.js.map +1 -0
- package/public/cjs/enterprise-commands.js +173 -0
- package/public/cjs/enterprise-commands.js.map +1 -0
- package/public/cjs/index.js +38 -0
- package/public/cjs/index.js.map +1 -0
- package/public/cjs/main-file.js +161 -0
- package/public/cjs/main-file.js.map +1 -0
- package/public/cjs/main-http-gae-server.js +498 -0
- package/public/cjs/main-http-gae-server.js.map +1 -0
- package/public/cjs/main-http-server.js +540 -0
- package/public/cjs/main-http-server.js.map +1 -0
- package/public/cjs/main-http2-server.js +398 -0
- package/public/cjs/main-http2-server.js.map +1 -0
- package/public/cjs/qcobjects-cli.js +105 -0
- package/public/cjs/qcobjects-cli.js.map +1 -0
- package/public/cjs/qcobjects-collab.js +51 -0
- package/public/cjs/qcobjects-collab.js.map +1 -0
- package/public/cjs/qcobjects-createcert.js +89 -0
- package/public/cjs/qcobjects-createcert.js.map +1 -0
- package/public/cjs/qcobjects-gae-http-server.js +51 -0
- package/public/cjs/qcobjects-gae-http-server.js.map +1 -0
- package/public/cjs/qcobjects-http-server.js +51 -0
- package/public/cjs/qcobjects-http-server.js.map +1 -0
- package/public/cjs/qcobjects-http2-server.js +54 -0
- package/public/cjs/qcobjects-http2-server.js.map +1 -0
- package/public/cjs/qcobjects-shell.js +145 -0
- package/public/cjs/qcobjects-shell.js.map +1 -0
- package/public/cjs/templates/apps/spa-local.html +0 -0
- package/public/cjs/templates/apps/spa-local.js +0 -0
- package/public/cjs/templates/pwa/sw.js +0 -0
- package/public/esm/api-client_services.mjs.map +1 -1
- package/public/esm/backend/backend-microservice-static.mjs +207 -216
- package/public/esm/backend/backend-microservice-static.mjs.map +2 -2
- package/public/esm/backend/backend-php.mjs +228 -232
- package/public/esm/backend/backend-php.mjs.map +2 -2
- package/public/esm/cli-commands-build-esbuild.mjs +295 -0
- package/public/esm/cli-commands-build-esbuild.mjs.map +7 -0
- package/public/esm/cli-commands-build-typescript.mjs +83 -0
- package/public/esm/cli-commands-build-typescript.mjs.map +7 -0
- package/public/esm/cli-commands-jira.mjs +1 -1
- package/public/esm/cli-commands-jira.mjs.map +1 -1
- package/public/esm/cli-commands-version.mjs.map +1 -1
- package/public/esm/cli-commands.mjs +7 -3
- package/public/esm/cli-commands.mjs.map +2 -2
- package/public/esm/cli-main.mjs +6 -6
- package/public/esm/cli-main.mjs.map +1 -1
- package/public/esm/client_services.mjs.map +1 -1
- package/public/esm/collab-server.mjs.map +1 -1
- package/public/esm/common-pipelog.mjs.map +1 -1
- package/public/esm/defaultsettings.mjs +68 -27
- package/public/esm/defaultsettings.mjs.map +3 -3
- package/public/esm/enterprise-commands.mjs.map +1 -1
- package/public/esm/index.mjs +1 -1
- package/public/esm/main-file.mjs.map +1 -1
- package/public/esm/main-http-gae-server.mjs +2 -2
- package/public/esm/main-http-gae-server.mjs.map +1 -1
- package/public/esm/main-http-server.mjs +2 -2
- package/public/esm/main-http-server.mjs.map +1 -1
- package/public/esm/main-http2-server.mjs +2 -2
- package/public/esm/main-http2-server.mjs.map +1 -1
- package/public/esm/qcobjects-cli.mjs +2 -2
- package/public/esm/qcobjects-cli.mjs.map +1 -1
- package/public/esm/qcobjects-collab.mjs +14 -23
- package/public/esm/qcobjects-collab.mjs.map +2 -2
- package/public/esm/qcobjects-createcert.mjs +43 -52
- package/public/esm/qcobjects-createcert.mjs.map +2 -2
- package/public/esm/qcobjects-gae-http-server.mjs +14 -23
- package/public/esm/qcobjects-gae-http-server.mjs.map +2 -2
- package/public/esm/qcobjects-http-server.mjs +14 -23
- package/public/esm/qcobjects-http-server.mjs.map +2 -2
- package/public/esm/qcobjects-http2-server.mjs +21 -31
- package/public/esm/qcobjects-http2-server.mjs.map +2 -2
- package/public/esm/qcobjects-shell.mjs +1 -1
- package/public/esm/qcobjects-shell.mjs.map +1 -1
- package/public/esm/templates/apps/spa-local.html +0 -0
- package/public/esm/templates/apps/spa-local.js +0 -0
- package/public/esm/templates/pwa/sw.js +0 -0
- package/public/esm/types/global/index.d.mjs +0 -9
- package/public/esm/types/global/index.d.mjs.map +3 -3
- package/public/types/index.d.ts +29 -3
- package/spec/support/jasmine.json +0 -0
- package/spec/testsSpec.ts +0 -0
- package/src/api-client_services.ts +1 -1
- package/src/backend/backend-microservice-static.ts +196 -196
- package/src/backend/backend-php.ts +240 -245
- package/src/cli-commands-build-esbuild.ts +375 -0
- package/src/cli-commands-build-typescript.ts +139 -0
- package/src/cli-commands-jira.ts +1 -1
- package/src/cli-commands-publish-static.ts +0 -0
- package/src/cli-commands-version.ts +1 -1
- package/src/cli-commands.ts +3 -1
- package/src/cli-main.ts +1 -1
- package/src/client_services.ts +1 -1
- package/src/collab-server.ts +1 -1
- package/src/common-pipelog.ts +1 -1
- package/src/defaultsettings.ts +65 -19
- package/src/enterprise-commands.ts +1 -1
- package/src/index.ts +0 -0
- package/src/main-file.ts +1 -1
- package/src/main-http-gae-server.ts +1 -1
- package/src/main-http-server.ts +1 -1
- package/src/main-http2-server.ts +1 -1
- package/src/qcobjects-cli.ts +1 -1
- package/src/qcobjects-collab.ts +1 -1
- package/src/qcobjects-createcert.ts +1 -1
- package/src/qcobjects-gae-http-server.ts +1 -1
- package/src/qcobjects-http-server.ts +1 -1
- package/src/qcobjects-http2-server.ts +4 -5
- package/src/qcobjects-shell.ts +1 -1
- package/src/templates/apps/spa-local.html +0 -0
- package/src/templates/apps/spa-local.js +0 -0
- package/src/templates/pwa/sw.js +0 -0
- package/src/types/global/index.d.ts +0 -0
- package/transpile.js +0 -0
- package/tsconfig.d.json +0 -0
- package/tsconfig.jasmine.json +0 -0
- package/tsconfig.json +3 -3
- package/.gitlab-ci.yml +0 -16
- package/public/cjs/api-client_services.cjs +0 -79
- package/public/cjs/api-client_services.cjs.map +0 -7
- package/public/cjs/backend/backend-microservice-static.cjs +0 -245
- package/public/cjs/backend/backend-microservice-static.cjs.map +0 -7
- package/public/cjs/backend/backend-php.cjs +0 -301
- package/public/cjs/backend/backend-php.cjs.map +0 -7
- package/public/cjs/cli-commands-jira.cjs +0 -112
- package/public/cjs/cli-commands-jira.cjs.map +0 -7
- package/public/cjs/cli-commands-publish-static.cjs +0 -109
- package/public/cjs/cli-commands-publish-static.cjs.map +0 -7
- package/public/cjs/cli-commands-version.cjs +0 -252
- package/public/cjs/cli-commands-version.cjs.map +0 -7
- package/public/cjs/cli-commands.cjs +0 -45
- package/public/cjs/cli-commands.cjs.map +0 -7
- package/public/cjs/cli-main.cjs +0 -417
- package/public/cjs/cli-main.cjs.map +0 -7
- package/public/cjs/client_services.cjs +0 -86
- package/public/cjs/client_services.cjs.map +0 -7
- package/public/cjs/collab-server.cjs +0 -444
- package/public/cjs/collab-server.cjs.map +0 -7
- package/public/cjs/common-pipelog.cjs +0 -50
- package/public/cjs/common-pipelog.cjs.map +0 -7
- package/public/cjs/defaultsettings.cjs +0 -432
- package/public/cjs/defaultsettings.cjs.map +0 -7
- package/public/cjs/enterprise-commands.cjs +0 -175
- package/public/cjs/enterprise-commands.cjs.map +0 -7
- package/public/cjs/index.cjs +0 -36
- package/public/cjs/index.cjs.map +0 -7
- package/public/cjs/main-file.cjs +0 -194
- package/public/cjs/main-file.cjs.map +0 -7
- package/public/cjs/main-http-gae-server.cjs +0 -522
- package/public/cjs/main-http-gae-server.cjs.map +0 -7
- package/public/cjs/main-http-server.cjs +0 -588
- package/public/cjs/main-http-server.cjs.map +0 -7
- package/public/cjs/main-http2-server.cjs +0 -431
- package/public/cjs/main-http2-server.cjs.map +0 -7
- package/public/cjs/qcobjects-cli.cjs +0 -92
- package/public/cjs/qcobjects-cli.cjs.map +0 -7
- package/public/cjs/qcobjects-collab.cjs +0 -43
- package/public/cjs/qcobjects-collab.cjs.map +0 -7
- package/public/cjs/qcobjects-createcert.cjs +0 -75
- package/public/cjs/qcobjects-createcert.cjs.map +0 -7
- package/public/cjs/qcobjects-gae-http-server.cjs +0 -43
- package/public/cjs/qcobjects-gae-http-server.cjs.map +0 -7
- package/public/cjs/qcobjects-http-server.cjs +0 -43
- package/public/cjs/qcobjects-http-server.cjs.map +0 -7
- package/public/cjs/qcobjects-http2-server.cjs +0 -49
- package/public/cjs/qcobjects-http2-server.cjs.map +0 -7
- package/public/cjs/qcobjects-shell.cjs +0 -185
- package/public/cjs/qcobjects-shell.cjs.map +0 -7
- package/public/cjs/types/global/index.d.cjs +0 -2
- package/public/cjs/types/global/index.d.cjs.map +0 -7
- package/public/types/index.d.ts.map +0 -1
- package/src/index.cts +0 -2
- package/src/index.mts +0 -2
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/cli-commands-publish-static.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * QCObjects CLI 2.5\n * ________________\n *\n * Author: Jean Machuca <correojean@gmail.com>\n *\n * Cross Browser Javascript Framework for MVC Patterns\n * QuickCorp/QCObjects is licensed under the\n * GNU Lesser General Public License v3.0\n * [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)\n *\n * Permissions of this copyleft license are conditioned on making available\n * complete source code of licensed works and modifications under the same\n * license or the GNU GPLv3. Copyright and license notices must be preserved.\n * Contributors provide an express grant of patent rights. However, a larger\n * work using the licensed work through interfaces provided by the licensed\n * work may be distributed under different terms and without source code for\n * the larger work.\n *\n * Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>\n *\n * Everyone is permitted to copy and distribute verbatim copies of this\n * license document, but changing it is not allowed.\n*/\n/*eslint no-unused-vars: \"off\"*/\n/*eslint no-redeclare: \"off\"*/\n/*eslint no-empty: \"off\"*/\n/*eslint strict: \"off\"*/\n/*eslint no-mixed-operators: \"off\"*/\n/*eslint no-undef: \"off\"*/\n\"use strict\";\nimport path from \"node:path\";\nimport fs from \"node:fs\";\n\nimport { Package, InheritClass, _DataStringify, New, CONFIG, logger } from \"qcobjects\";\nconst absolutePath = path.resolve(__dirname, \"./\");\n\nexport class CommandHandler extends InheritClass {\n choiceOption: {\n [x: string]: any; publish_static: (source:string, dest:string, options:any) => void;\n };\n\n constructor({\n switchCommander\n }: { switchCommander: any }) {\n super({ switchCommander });\n this.choiceOption = {\n publish_static(source, dest, options) {\n\n const copyDir = (source:string, dest:string, exclude:string) => {\n source = path.resolve(source);\n dest = path.resolve(dest);\n const dname = path.basename(source);\n const dirExcluded = (exclude.includes(dname));\n \n const isDir = (d:string) => {\n return (fs.existsSync(d) && fs.statSync(d).isDirectory())?(true):(false);\n };\n \n const isFile = (d:string) => {\n return (fs.existsSync(d) && fs.statSync(d).isFile())?(true):(false);\n };\n \n if (isDir(source) && !dirExcluded){\n fs.mkdirSync(dest, {recursive:true});\n const paths = fs.readdirSync(source, {withFileTypes:true});\n const dirs = paths.filter(d=>d.isDirectory());\n const files = paths.filter(f=>f.isFile());\n void ((paths, dirs, files, exclude) => {\n files.forEach((f) => {\n const sourceFile = path.resolve(source, f.name);\n const destFile = path.resolve(dest, f.name);\n const fileExcluded = exclude.includes(f.name);\n if (isFile(sourceFile) && !fileExcluded) {\n logger.debug(`[publish:static] Copying files from ${sourceFile} to ${destFile} excluding ${exclude}...`);\n fs.copyFileSync(sourceFile, destFile);\n logger.debug(`[publish:static] Copying files from ${sourceFile} to ${destFile} excluding ${exclude}...DONE!`);\n }\n });\n dirs.forEach((d) => {\n const sourceDir = path.resolve(source, d.name);\n const destDir = path.resolve(dest, d.name);\n copyDir(sourceDir, destDir, exclude);\n });\n })(paths, dirs, files, exclude);\n }\n \n };\n \n try {\n logger.info(`[publish:static] Copying files from ${source} to ${dest} excluding ${options.exclude}...`);\n copyDir(source, dest, (typeof options.exclude !== \"undefined\") ? (options.exclude) : ([]));\n } catch (e:any) {\n logger.warn(`Something went wrong trying to publish static files: ${e.message}`);\n process.exit(1);\n }\n }\n \n };\n\n const commandHandler = this;\n logger.debug(\"Loading command publish-static...\");\n\n switchCommander.program.command(\"publish:static <source> <dest>\")\n .allowExcessArguments(false)\n .option(\"-e, --exclude <excludePaths...>\", \"Exclude some paths or files\")\n .description(\"Publishes (copy) all files and directories from source to dest\")\n .action(function (source:string, dest:string, options:any) {\n commandHandler.choiceOption.publish_static.call(commandHandler, source, dest, options);\n });\n\n logger.debug(\"Loading command publish-static... DONE.\");\n }\n\n\n}\n\n\nPackage(\"com.qcobjects.cli.commands.jira\", [\n CommandHandler\n]);\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA+BA,uBAAiB;AACjB,qBAAe;AAEf,uBAA2E;AAC3E,MAAM,eAAe,iBAAAA,QAAK,QAAQ,WAAW,IAAI;AAE1C,MAAM,uBAAuB,8BAAa;AAAA,EArCjD,OAqCiD;AAAA;AAAA;AAAA,EAC/C;AAAA,EAIA,YAAY;AAAA,IACV;AAAA,EACF,GAA6B;AAC3B,UAAM,EAAE,gBAAgB,CAAC;AACzB,SAAK,eAAe;AAAA,MAClB,eAAe,QAAQ,MAAM,SAAS;AAEpC,cAAM,UAAU,wBAACC,SAAeC,OAAa,YAAmB;AAC9D,UAAAD,UAAS,iBAAAD,QAAK,QAAQC,OAAM;AAC5B,UAAAC,QAAO,iBAAAF,QAAK,QAAQE,KAAI;AACxB,gBAAM,QAAQ,iBAAAF,QAAK,SAASC,OAAM;AAClC,gBAAM,cAAe,QAAQ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AAQE,OAAM,EAAE,IAAI;AACzC,wBAAQ,WAAW,SAASK,QAAO;AAAA,cACrC,CAAC;AAAA,YACH,GAAG,OAAO,MAAM,OAAO,OAAO;AAAA,UAChC;AAAA,QAEF,GAtCgB;AAwChB,YAAI;AACF,kCAAO,KAAK,uCAAuC,MAAM,OAAO,IAAI,cAAc,QAAQ,OAAO,KAAK;AACtG,kBAAQ,QAAQ,MAAO,OAAO,QAAQ,YAAY,cAAgB,QAAQ,UAAY,CAAC,CAAE;AAAA,QAC3F,SAAS,GAAO;AACd,kCAAO,KAAK,wDAAwD,EAAE,OAAO,EAAE;AAC/E,kBAAQ,KAAK,CAAC;AAAA,QAChB;AAAA,MACF;AAAA,IAEF;AAEA,UAAM,iBAAiB;AACvB,4BAAO,MAAM,mCAAmC;AAEhD,oBAAgB,QAAQ,QAAQ,gCAAgC,EAC7D,qBAAqB,KAAK,EAC1B,OAAO,mCAAmC,6BAA6B,EACvE,YAAY,gEAAgE,EAC5E,OAAO,SAAU,QAAe,MAAa,SAAa;AACzD,qBAAe,aAAa,eAAe,KAAK,gBAAgB,QAAQ,MAAM,OAAO;AAAA,IACvF,CAAC;AAEH,4BAAO,MAAM,yCAAyC;AAAA,EACxD;AAGF;AAAA,IAGA,0BAAQ,mCAAmC;AAAA,EACzC;AACF,CAAC;",
|
|
6
|
-
"names": ["path", "source", "dest", "fs", "paths", "dirs", "files", "exclude"]
|
|
7
|
-
}
|
|
@@ -1,252 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
9
|
-
var __export = (target, all) => {
|
|
10
|
-
for (var name in all)
|
|
11
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
-
};
|
|
13
|
-
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(from))
|
|
16
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
-
}
|
|
19
|
-
return to;
|
|
20
|
-
};
|
|
21
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
-
mod
|
|
28
|
-
));
|
|
29
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
-
var cli_commands_version_exports = {};
|
|
31
|
-
__export(cli_commands_version_exports, {
|
|
32
|
-
CommandHandler: () => CommandHandler
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(cli_commands_version_exports);
|
|
35
|
-
var import_node_fs = __toESM(require("node:fs"));
|
|
36
|
-
var import_qcobjects = require("qcobjects");
|
|
37
|
-
class CommandHandler extends import_qcobjects.InheritClass {
|
|
38
|
-
static {
|
|
39
|
-
__name(this, "CommandHandler");
|
|
40
|
-
}
|
|
41
|
-
choiceOption;
|
|
42
|
-
switchCommander;
|
|
43
|
-
constructor({ switchCommander }) {
|
|
44
|
-
super({ switchCommander });
|
|
45
|
-
this.switchCommander = switchCommander;
|
|
46
|
-
const commandHandler = this;
|
|
47
|
-
this.choiceOption = {
|
|
48
|
-
v_major(filename, options) {
|
|
49
|
-
filename = typeof filename === "undefined" ? "VERSION" : filename;
|
|
50
|
-
const versionString = this.getVersionStringFromFile(filename);
|
|
51
|
-
const versionSuffix = this.parseVersionSuffix(versionString);
|
|
52
|
-
const versionObject = this.parseVersionString(versionString);
|
|
53
|
-
const major = parseInt(versionObject.major);
|
|
54
|
-
const minor = parseInt(versionObject.minor);
|
|
55
|
-
const patch = parseInt(versionObject.patch);
|
|
56
|
-
const newVersion = this.buildNewVersionString({ major: major + 1, minor, patch }, versionSuffix);
|
|
57
|
-
this.saveNewVersionFile(filename, newVersion);
|
|
58
|
-
if (options.syncGit) {
|
|
59
|
-
var commitMsg = options.commitMsg || `New Version v${newVersion}`;
|
|
60
|
-
this.syncGit(newVersion, commitMsg, options.syncNpm);
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
v_minor(filename, options) {
|
|
64
|
-
filename = typeof filename === "undefined" ? "VERSION" : filename;
|
|
65
|
-
const versionString = this.getVersionStringFromFile(filename);
|
|
66
|
-
const versionSuffix = this.parseVersionSuffix(versionString);
|
|
67
|
-
const versionObject = this.parseVersionString(versionString);
|
|
68
|
-
const major = parseInt(versionObject.major);
|
|
69
|
-
const minor = parseInt(versionObject.minor);
|
|
70
|
-
const patch = parseInt(versionObject.patch);
|
|
71
|
-
const newVersion = this.buildNewVersionString({ major, minor: minor + 1, patch }, versionSuffix);
|
|
72
|
-
this.saveNewVersionFile(filename, newVersion);
|
|
73
|
-
if (options.syncGit) {
|
|
74
|
-
var commitMsg = options.commitMsg || `New Version v${newVersion}`;
|
|
75
|
-
this.syncGit(newVersion, commitMsg, options.syncNpm);
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
v_patch(filename, options) {
|
|
79
|
-
filename = typeof filename === "undefined" ? "VERSION" : filename;
|
|
80
|
-
const versionString = this.getVersionStringFromFile(filename);
|
|
81
|
-
const versionSuffix = this.parseVersionSuffix(versionString);
|
|
82
|
-
const versionObject = this.parseVersionString(versionString);
|
|
83
|
-
const major = parseInt(versionObject.major);
|
|
84
|
-
const minor = parseInt(versionObject.minor);
|
|
85
|
-
const patch = parseInt(versionObject.patch);
|
|
86
|
-
const newVersion = this.buildNewVersionString({ major, minor, patch: patch + 1 }, versionSuffix);
|
|
87
|
-
this.saveNewVersionFile(filename, newVersion);
|
|
88
|
-
if (options.syncGit) {
|
|
89
|
-
var commitMsg = options.commitMsg || `New Version v${newVersion}`;
|
|
90
|
-
this.syncGit(newVersion, commitMsg, options.syncNpm);
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
v_sync(filename, options) {
|
|
94
|
-
filename = typeof filename === "undefined" ? "VERSION" : filename;
|
|
95
|
-
var commandHandler2 = this;
|
|
96
|
-
commandHandler2.switchCommander.shellCommands([
|
|
97
|
-
"echo $(git describe)"
|
|
98
|
-
]).then(function(response) {
|
|
99
|
-
const versionString = response[0].split("-")[0].slice(1).replace("\n", "");
|
|
100
|
-
console.log(versionString);
|
|
101
|
-
const versionSuffix = commandHandler2.parseVersionSuffix(versionString);
|
|
102
|
-
const versionObject = commandHandler2.parseVersionString(versionString);
|
|
103
|
-
const major = parseInt(versionObject.major);
|
|
104
|
-
const minor = parseInt(versionObject.minor);
|
|
105
|
-
const patch = parseInt(versionObject.patch);
|
|
106
|
-
const newVersion = commandHandler2.buildNewVersionString({ major, minor, patch }, versionSuffix);
|
|
107
|
-
commandHandler2.saveNewVersionFile(filename, newVersion);
|
|
108
|
-
var commitMsg = options.commitMsg || `Synced Version v${newVersion}`;
|
|
109
|
-
commandHandler2.switchCommander.shellCommands(
|
|
110
|
-
[
|
|
111
|
-
"git fetch --tags -f",
|
|
112
|
-
`git add . && git commit -am "${commitMsg}"`,
|
|
113
|
-
"git fetch origin --tags",
|
|
114
|
-
"git tag -ln",
|
|
115
|
-
`npm version "${newVersion}" --allow-same-version -m "${commitMsg}"`,
|
|
116
|
-
"git push && git push --tags"
|
|
117
|
-
]
|
|
118
|
-
).then(function(response2) {
|
|
119
|
-
console.log(response2);
|
|
120
|
-
});
|
|
121
|
-
});
|
|
122
|
-
},
|
|
123
|
-
v_changelog() {
|
|
124
|
-
const commandHandler2 = this;
|
|
125
|
-
commandHandler2.switchCommander.shellCommands(
|
|
126
|
-
[
|
|
127
|
-
"git tag -ln"
|
|
128
|
-
]
|
|
129
|
-
).then(function(response) {
|
|
130
|
-
var versionTags = response[0].split("\n").map((tag) => tag.split(" ").unique()).unique().map(
|
|
131
|
-
(tag) => {
|
|
132
|
-
return {
|
|
133
|
-
"version": tag[0],
|
|
134
|
-
"major": tag[0].split(".")[0],
|
|
135
|
-
"minor": tag[0].split(".")[0] + "." + tag[0].split(".")[1],
|
|
136
|
-
"description": tag.slice(1).join(" ").trim()
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
);
|
|
140
|
-
var minorVersionTags = versionTags.filter((tag) => tag.version !== "").map((tag) => tag.version.split(".")[0] + "." + tag.version.split(".")[1]).unique();
|
|
141
|
-
var history = minorVersionTags.map((minor) => {
|
|
142
|
-
return {
|
|
143
|
-
"major": minor.split(".")[0],
|
|
144
|
-
"minor": minor,
|
|
145
|
-
"history": "\n - " + versionTags.filter((tag) => tag.minor === minor).map(
|
|
146
|
-
function(tag) {
|
|
147
|
-
return tag.description;
|
|
148
|
-
}
|
|
149
|
-
).filter((desc) => !desc.startsWith(minor.slice(1))).sort().unique().join("\n - ")
|
|
150
|
-
};
|
|
151
|
-
}).map((hist) => {
|
|
152
|
-
return `## ${hist.major} -> ${hist.minor}
|
|
153
|
-
` + hist.history;
|
|
154
|
-
}).join("\n");
|
|
155
|
-
const subtitle = "This is an automatic Changelog history of versions generated using the command: **qcobjects v-changelog > CHANGELOG.md**";
|
|
156
|
-
console.log("# Changelog \n\n" + subtitle + "\n\n" + history);
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
};
|
|
160
|
-
switchCommander.program.command("v-major [filename]").option("--git, --sync-git", "Sync with Git").option("--npm, --sync-npm", "Sync with NPM").option("-m, --commit-msg [message]", "Commit Message").description("Semantic Versioning: Upgrade to a new major version").action(function(args, options) {
|
|
161
|
-
commandHandler.choiceOption.v_major.call(commandHandler, args, options);
|
|
162
|
-
});
|
|
163
|
-
switchCommander.program.command("v-minor [filename]").option("--git, --sync-git", "Sync with Git").option("--npm, --sync-npm", "Sync with NPM").option("-m, --commit-msg [message]", "Commit Message").description("Semantic Versioning: Upgrade to a new minor version").action(function(args, options) {
|
|
164
|
-
commandHandler.choiceOption.v_minor.call(commandHandler, args, options);
|
|
165
|
-
});
|
|
166
|
-
switchCommander.program.command("v-patch [filename]").option("--git, --sync-git", "Sync with Git").option("--npm, --sync-npm", "Sync with NPM").option("-m, --commit-msg [message]", "Commit Message").description("Semantic Versioning: Upgrade to a new patch version").action(function(args, options) {
|
|
167
|
-
commandHandler.choiceOption.v_patch.call(commandHandler, args, options);
|
|
168
|
-
});
|
|
169
|
-
switchCommander.program.command("v-sync [filename]").option("-m, --commit-msg [message]", "Commit Message").description("Semantic Versioning: Sync the version of NPM with version of GIT").action(function(args, options) {
|
|
170
|
-
commandHandler.choiceOption.v_sync.call(commandHandler, args, options);
|
|
171
|
-
});
|
|
172
|
-
switchCommander.program.command("v-changelog").description("Semantic Versioning: Shows a changelog using Semantic Versioning").action(function(args, options) {
|
|
173
|
-
commandHandler.choiceOption.v_changelog.call(commandHandler);
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
syncGit(versionString, commitMsg, syncNpm = false) {
|
|
177
|
-
let _commands_ = [];
|
|
178
|
-
if (syncNpm) {
|
|
179
|
-
_commands_ = _commands_.concat(
|
|
180
|
-
[
|
|
181
|
-
"git fetch --tags -f",
|
|
182
|
-
`npm version "${versionString}" -m "${commitMsg}"`
|
|
183
|
-
]
|
|
184
|
-
);
|
|
185
|
-
}
|
|
186
|
-
_commands_ = _commands_.concat(
|
|
187
|
-
[
|
|
188
|
-
`git add . && git commit -am "${commitMsg}"`,
|
|
189
|
-
"git fetch origin --tags",
|
|
190
|
-
"git tag -ln"
|
|
191
|
-
]
|
|
192
|
-
);
|
|
193
|
-
if (!syncNpm) {
|
|
194
|
-
_commands_ = _commands_.concat(
|
|
195
|
-
[
|
|
196
|
-
`git tag -a "v${versionString}" -m "${commitMsg}"`
|
|
197
|
-
]
|
|
198
|
-
);
|
|
199
|
-
}
|
|
200
|
-
_commands_ = _commands_.concat(
|
|
201
|
-
[
|
|
202
|
-
"git push && git push --tags"
|
|
203
|
-
]
|
|
204
|
-
);
|
|
205
|
-
this.switchCommander.shellCommands(_commands_).then(function(response) {
|
|
206
|
-
import_qcobjects.logger.info("Synced to Git");
|
|
207
|
-
import_qcobjects.logger.debug(response);
|
|
208
|
-
}).catch(function(e) {
|
|
209
|
-
import_qcobjects.logger.info("Something went wrong trying to sync to git");
|
|
210
|
-
import_qcobjects.logger.debug(e);
|
|
211
|
-
});
|
|
212
|
-
}
|
|
213
|
-
parseVersionString(versionString) {
|
|
214
|
-
versionString = versionString.replace("\n", "");
|
|
215
|
-
const regexpVer = /^(?<major>0|[1-9]\d*)\.(?<minor>0|[1-9]\d*)\.(?<patch>0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;
|
|
216
|
-
const versionObject = { ...versionString.match(regexpVer)?.groups };
|
|
217
|
-
return versionObject;
|
|
218
|
-
}
|
|
219
|
-
getVersionStringFromFile(filename) {
|
|
220
|
-
let versionString;
|
|
221
|
-
try {
|
|
222
|
-
versionString = import_node_fs.default.readFileSync(filename).toString().replace("\n", "");
|
|
223
|
-
} catch (e) {
|
|
224
|
-
versionString = "0.0.1";
|
|
225
|
-
}
|
|
226
|
-
return versionString;
|
|
227
|
-
}
|
|
228
|
-
buildNewSemVersionString({ major, minor, patch }) {
|
|
229
|
-
return `${major}.${minor}.${patch}`;
|
|
230
|
-
}
|
|
231
|
-
parseVersionSuffix(versionString) {
|
|
232
|
-
versionString = versionString.replace("\n", "");
|
|
233
|
-
const versionObject = this.parseVersionString(versionString);
|
|
234
|
-
const semVersionString = this.buildNewSemVersionString(versionObject);
|
|
235
|
-
return versionString.replace(semVersionString, "");
|
|
236
|
-
}
|
|
237
|
-
buildNewVersionString({ major, minor, patch }, suffix) {
|
|
238
|
-
const semVersionString = this.buildNewSemVersionString({ major, minor, patch });
|
|
239
|
-
return `${semVersionString}${suffix}`;
|
|
240
|
-
}
|
|
241
|
-
saveNewVersionFile(filename, versionString) {
|
|
242
|
-
import_node_fs.default.writeFileSync(filename, versionString);
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
(0, import_qcobjects.Package)("com.qcobjects.cli.commands.version", [
|
|
246
|
-
CommandHandler
|
|
247
|
-
]);
|
|
248
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
249
|
-
0 && (module.exports = {
|
|
250
|
-
CommandHandler
|
|
251
|
-
});
|
|
252
|
-
//# sourceMappingURL=cli-commands-version.cjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/cli-commands-version.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * QCObjects CLI 2.4.x\n * ________________\n *\n * Author: Jean Machuca <correojean@gmail.com>\n *\n * Cross Browser Javascript Framework for MVC Patterns\n * QuickCorp/QCObjects is licensed under the\n * GNU Lesser General Public License v3.0\n * [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)\n *\n * Permissions of this copyleft license are conditioned on making available\n * complete source code of licensed works and modifications under the same\n * license or the GNU GPLv3. Copyright and license notices must be preserved.\n * Contributors provide an express grant of patent rights. However, a larger\n * work using the licensed work through interfaces provided by the licensed\n * work may be distributed under different terms and without source code for\n * the larger work.\n *\n * Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>\n *\n * Everyone is permitted to copy and distribute verbatim copies of this\n * license document, but changing it is not allowed.\n*/\n/*eslint no-unused-vars: \"off\"*/\n/*eslint no-redeclare: \"off\"*/\n/*eslint no-empty: \"off\"*/\n/*eslint strict: \"off\"*/\n/*eslint no-mixed-operators: \"off\"*/\n/*eslint no-undef: \"off\"*/\n\"use strict\";\nimport fs from \"node:fs\";\nimport path from \"node:path\";\nimport { exec, execSync } from \"node:child_process\";\n\nimport { Package, InheritClass, logger } from \"qcobjects\";\nimport { SwitchCommander } from \"./cli-main\";\n\nexport class CommandHandler extends InheritClass {\n choiceOption: {\n getVersionStringFromFile(filename: string): string;\n parseVersionSuffix(versionString: any): string;\n parseVersionString(versionString: any): string;\n buildNewVersionString(arg0: { major: number; minor: number; patch: number; }, versionSuffix: any): string;\n saveNewVersionFile(filename: string, newVersion: any): string;\n syncGit(newVersion: any, commitMsg: any, syncNpm: any): string;\n switchCommander: any; v_major(filename: string, options: any): void; v_minor(filename: string, options: any): void; v_patch(filename: string, options: any): void; v_sync(filename: string, options: any): void; v_changelog(): void;\n };\n switchCommander: SwitchCommander;\n\n constructor({ switchCommander }:{switchCommander:SwitchCommander}) {\n super({ switchCommander });\n this.switchCommander = switchCommander;\n\n const commandHandler = this;\n\n this.choiceOption = {\n v_major(filename: string, options: any) {\n filename = (typeof filename === \"undefined\") ? (\"VERSION\") : (filename);\n const versionString = this.getVersionStringFromFile(filename);\n const versionSuffix = this.parseVersionSuffix(versionString);\n const versionObject = this.parseVersionString(versionString);\n const major = parseInt(versionObject.major);\n const minor = parseInt(versionObject.minor);\n const patch = parseInt(versionObject.patch);\n const newVersion = this.buildNewVersionString({ major: major + 1, minor: minor, patch: patch }, versionSuffix);\n this.saveNewVersionFile(filename, newVersion);\n if (options.syncGit) {\n var commitMsg = options.commitMsg || `New Version v${newVersion}`;\n this.syncGit(newVersion, commitMsg, options.syncNpm);\n }\n },\n v_minor(filename: string, options: any) {\n filename = (typeof filename === \"undefined\") ? (\"VERSION\") : (filename);\n const versionString = this.getVersionStringFromFile(filename);\n const versionSuffix = this.parseVersionSuffix(versionString);\n const versionObject = this.parseVersionString(versionString);\n const major = parseInt(versionObject.major);\n const minor = parseInt(versionObject.minor);\n const patch = parseInt(versionObject.patch);\n const newVersion = this.buildNewVersionString({ major: major, minor: minor + 1, patch: patch }, versionSuffix);\n this.saveNewVersionFile(filename, newVersion);\n if (options.syncGit) {\n var commitMsg = options.commitMsg || `New Version v${newVersion}`;\n this.syncGit(newVersion, commitMsg, options.syncNpm);\n }\n },\n v_patch(filename: string, options: any) {\n filename = (typeof filename === \"undefined\") ? (\"VERSION\") : (filename);\n const versionString = this.getVersionStringFromFile(filename);\n const versionSuffix = this.parseVersionSuffix(versionString);\n const versionObject = this.parseVersionString(versionString);\n const major = parseInt(versionObject.major);\n const minor = parseInt(versionObject.minor);\n const patch = parseInt(versionObject.patch);\n const newVersion = this.buildNewVersionString({ major: major, minor: minor, patch: patch + 1 }, versionSuffix);\n this.saveNewVersionFile(filename, newVersion);\n if (options.syncGit) {\n var commitMsg = options.commitMsg || `New Version v${newVersion}`;\n this.syncGit(newVersion, commitMsg, options.syncNpm);\n }\n },\n v_sync(filename: string, options: any) {\n filename = (typeof filename === \"undefined\") ? (\"VERSION\") : (filename);\n var commandHandler = this;\n commandHandler.switchCommander.shellCommands([\n \"echo $(git describe)\"\n ]).then(function (response: any) {\n const versionString = response[0].split(\"-\")[0].slice(1).replace(\"\\n\", \"\");\n console.log(versionString);\n const versionSuffix = commandHandler.parseVersionSuffix(versionString);\n const versionObject = commandHandler.parseVersionString(versionString);\n const major = parseInt(versionObject.major);\n const minor = parseInt(versionObject.minor);\n const patch = parseInt(versionObject.patch);\n const newVersion = commandHandler.buildNewVersionString({ major: major, minor: minor, patch: patch }, versionSuffix);\n commandHandler.saveNewVersionFile(filename, newVersion);\n var commitMsg = options.commitMsg || `Synced Version v${newVersion}`;\n commandHandler.switchCommander.shellCommands(\n [\n \"git fetch --tags -f\",\n `git add . && git commit -am \"${commitMsg}\"`,\n \"git fetch origin --tags\",\n \"git tag -ln\",\n `npm version \"${newVersion}\" --allow-same-version -m \"${commitMsg}\"`,\n \"git push && git push --tags\"\n ]\n ).then(function (response: any) {\n console.log(response);\n });\n });\n },\n v_changelog() {\n const commandHandler = this;\n commandHandler.switchCommander.shellCommands(\n [\n \"git tag -ln\"\n ]\n ).then(function (response: any) {\n var versionTags = response[0].split(\"\\n\").map((tag: any) => tag.split(\" \").unique()).unique().map(\n (tag: any) => {\n return {\n \"version\": tag[0],\n \"major\": tag[0].split(\".\")[0],\n \"minor\": tag[0].split(\".\")[0] + \".\" + tag[0].split(\".\")[1],\n \"description\": tag.slice(1).join(\" \").trim()\n };\n }\n );\n var minorVersionTags = versionTags.filter((tag: { version: string; }) => tag.version !== \"\").map((tag: { version: string; }) => tag.version.split(\".\")[0] + \".\" + tag.version.split(\".\")[1]).unique();\n var history = minorVersionTags.map((minor: string) => {\n return {\n \"major\": minor.split(\".\")[0],\n \"minor\": minor,\n \"history\": \"\\n\\t- \" + versionTags.filter((tag: { minor: any; }) => tag.minor === minor).map(\n function (tag: { description: any; }) {\n return tag.description;\n }\n ).filter((desc: string) => !desc.startsWith(minor.slice(1))).sort().unique().join(\"\\n\\t- \")\n };\n }).map((hist: { major: any; minor: any; history: string; }) => { return `## ${hist.major} -> ${hist.minor}` + \"\\n\" + hist.history; }).join(\"\\n\");\n const subtitle = \"This is an automatic Changelog history of versions generated using the command: **qcobjects v-changelog > CHANGELOG.md**\";\n console.log(\"# Changelog \\n\\n\" + subtitle + \"\\n\\n\" + history);\n\n });\n }\n } as any;\n\n switchCommander.program.command(\"v-major [filename]\")\n .option(\"--git, --sync-git\", \"Sync with Git\")\n .option(\"--npm, --sync-npm\", \"Sync with NPM\")\n .option(\"-m, --commit-msg [message]\", \"Commit Message\")\n .description(\"Semantic Versioning: Upgrade to a new major version\")\n .action(function (args: any, options: any) {\n commandHandler.choiceOption.v_major.call(commandHandler, args, options);\n });\n switchCommander.program.command(\"v-minor [filename]\")\n .option(\"--git, --sync-git\", \"Sync with Git\")\n .option(\"--npm, --sync-npm\", \"Sync with NPM\")\n .option(\"-m, --commit-msg [message]\", \"Commit Message\")\n .description(\"Semantic Versioning: Upgrade to a new minor version\")\n .action(function (args: any, options: any) {\n commandHandler.choiceOption.v_minor.call(commandHandler, args, options);\n });\n\n switchCommander.program.command(\"v-patch [filename]\")\n .option(\"--git, --sync-git\", \"Sync with Git\")\n .option(\"--npm, --sync-npm\", \"Sync with NPM\")\n .option(\"-m, --commit-msg [message]\", \"Commit Message\")\n .description(\"Semantic Versioning: Upgrade to a new patch version\")\n .action(function (args: any, options: any) {\n commandHandler.choiceOption.v_patch.call(commandHandler, args, options);\n });\n\n switchCommander.program.command(\"v-sync [filename]\")\n .option(\"-m, --commit-msg [message]\", \"Commit Message\")\n .description(\"Semantic Versioning: Sync the version of NPM with version of GIT\")\n .action(function (args: any, options: any) {\n commandHandler.choiceOption.v_sync.call(commandHandler, args, options);\n });\n\n switchCommander.program.command(\"v-changelog\")\n .description(\"Semantic Versioning: Shows a changelog using Semantic Versioning\")\n .action(function (args: any, options: any) {\n commandHandler.choiceOption.v_changelog.call(commandHandler);\n });\n\n\n }\n\n\n syncGit(versionString: any, commitMsg: any, syncNpm = false) {\n let _commands_: any[] = [];\n if (syncNpm) {\n _commands_ = _commands_.concat(\n [\n \"git fetch --tags -f\",\n `npm version \"${versionString}\" -m \"${commitMsg}\"`\n ]\n );\n }\n _commands_ = _commands_.concat(\n [\n `git add . && git commit -am \"${commitMsg}\"`,\n \"git fetch origin --tags\",\n \"git tag -ln\"\n ]);\n\n if (!syncNpm) {\n _commands_ = _commands_.concat(\n [\n `git tag -a \"v${versionString}\" -m \"${commitMsg}\"`,\n ]\n );\n }\n\n _commands_ = _commands_.concat([\n \"git push && git push --tags\"\n ]\n );\n\n this.switchCommander.shellCommands(_commands_).then(function (response: any) {\n logger.info(\"Synced to Git\");\n logger.debug(response);\n }).catch(function (e: any) {\n logger.info(\"Something went wrong trying to sync to git\");\n logger.debug(e);\n });\n }\n\n parseVersionString(versionString: string): { major: string, minor: string, patch: string } {\n versionString = versionString.replace(\"\\n\", \"\");\n const regexpVer = /^(?<major>0|[1-9]\\d*)\\.(?<minor>0|[1-9]\\d*)\\.(?<patch>0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$/;\n const versionObject = { ...versionString.match(regexpVer)?.groups };\n return versionObject as { major: string, minor: string, patch: string };\n }\n\n getVersionStringFromFile(filename: any) {\n let versionString;\n try {\n versionString = fs.readFileSync(filename).toString().replace(\"\\n\", \"\");\n } catch (e) {\n versionString = \"0.0.1\";\n }\n return versionString;\n }\n\n buildNewSemVersionString({ major, minor, patch }: { major: string, minor: string, patch: string }) {\n return `${major}.${minor}.${patch}`;\n }\n\n parseVersionSuffix(versionString: string) {\n versionString = versionString.replace(\"\\n\", \"\");\n const versionObject = this.parseVersionString(versionString);\n const semVersionString = this.buildNewSemVersionString(versionObject);\n return versionString.replace(semVersionString, \"\");\n }\n\n buildNewVersionString({ major, minor, patch }: any, suffix: any) {\n const semVersionString = this.buildNewSemVersionString({ major, minor, patch });\n return `${semVersionString}${suffix}`;\n }\n\n saveNewVersionFile(filename: any, versionString: any) {\n fs.writeFileSync(filename, versionString);\n }\n\n\n\n\n\n}\n\n\nPackage(\"com.qcobjects.cli.commands.version\", [\n CommandHandler\n]);\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA+BA,qBAAe;AAIf,uBAA8C;AAGvC,MAAM,uBAAuB,8BAAa;AAAA,EAtCjD,OAsCiD;AAAA;AAAA;AAAA,EAC/C;AAAA,EASA;AAAA,EAEA,YAA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GAAG,cAAc,MAAM,SAAS,GAAG,OAAO;AAClE,WAAO;AAAA,EACT;AAAA,EAEA,yBAAyB,UAAe;AACtC,QAAI;AACJ,QAAI;AACF,sBAAgB,eAAAE,QAAG,aAAa,QAAQ,EAAE,SAAS,EAAE,QAAQ,MAAM,EAAE;AAAA,IACvE,SAAS,GAAG;AACV,sBAAgB;AAAA,IAClB;AACA,WAAO;AAAA,EACT;AAAA,EAEA,yBAAyB,EAAE,OAAO,OAAO,MAAM,GAAoD;AACjG,WAAO,GAAG,KAAK,IAAI,KAAK,IAAI,KAAK;AAAA,EACnC;AAAA,EAEA,mBAAmB,eAAuB;AACxC,oBAAgB,cAAc,QAAQ,MAAM,EAAE;AAC9C,UAAM,gBAAgB,KAAK,mBAAmB,aAAa;AAC3D,UAAM,mBAAmB,KAAK,yBAAyB,aAAa;AACpE,WAAO,cAAc,QAAQ,kBAAkB,EAAE;AAAA,EACnD;AAAA,EAEA,sBAAsB,EAAE,OAAO,OAAO,MAAM,GAAQ,QAAa;AAC/D,UAAM,mBAAmB,KAAK,yBAAyB,EAAE,OAAO,OAAO,MAAM,CAAC;AAC9E,WAAO,GAAG,gBAAgB,GAAG,MAAM;AAAA,EACrC;AAAA,EAEA,mBAAmB,UAAe,eAAoB;AACpD,mBAAAA,QAAG,cAAc,UAAU,aAAa;AAAA,EAC1C;AAMF;AAAA,IAGA,0BAAQ,sCAAsC;AAAA,EAC5C;AACF,CAAC;",
|
|
6
|
-
"names": ["commandHandler", "response", "fs"]
|
|
7
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var cli_commands_exports = {};
|
|
30
|
-
__export(cli_commands_exports, {
|
|
31
|
-
jiraCommand: () => jiraCommand,
|
|
32
|
-
publishStatic: () => publishStatic,
|
|
33
|
-
versionCommand: () => versionCommand
|
|
34
|
-
});
|
|
35
|
-
module.exports = __toCommonJS(cli_commands_exports);
|
|
36
|
-
var versionCommand = __toESM(require("./cli-commands-version.cjs"));
|
|
37
|
-
var jiraCommand = __toESM(require("./cli-commands-jira.cjs"));
|
|
38
|
-
var publishStatic = __toESM(require("./cli-commands-publish-static.cjs"));
|
|
39
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
40
|
-
0 && (module.exports = {
|
|
41
|
-
jiraCommand,
|
|
42
|
-
publishStatic,
|
|
43
|
-
versionCommand
|
|
44
|
-
});
|
|
45
|
-
//# sourceMappingURL=cli-commands.cjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/cli-commands.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * QCObjects CLI 2.4.x\n * ________________\n *\n * Author: Jean Machuca <correojean@gmail.com>\n *\n * Cross Browser Javascript Framework for MVC Patterns\n * QuickCorp/QCObjects is licensed under the\n * GNU Lesser General Public License v3.0\n * [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)\n *\n * Permissions of this copyleft license are conditioned on making available\n * complete source code of licensed works and modifications under the same\n * license or the GNU GPLv3. Copyright and license notices must be preserved.\n * Contributors provide an express grant of patent rights. However, a larger\n * work using the licensed work through interfaces provided by the licensed\n * work may be distributed under different terms and without source code for\n * the larger work.\n *\n * Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>\n *\n * Everyone is permitted to copy and distribute verbatim copies of this\n * license document, but changing it is not allowed.\n*/\n/*eslint no-unused-vars: \"off\"*/\n/*eslint no-redeclare: \"off\"*/\n/*eslint no-empty: \"off\"*/\n/*eslint strict: \"off\"*/\n/*eslint no-mixed-operators: \"off\"*/\n/*eslint no-undef: \"off\"*/\n\"use strict\";\n\n// plugin commands here\n\nexport * as versionCommand from \"./cli-commands-version\";\nexport * as jiraCommand from \"./cli-commands-jira\";\nexport * as publishStatic from \"./cli-commands-publish-static\";\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAkCA,qBAAgC;AAChC,kBAA6B;AAC7B,oBAA+B;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|