sfdx-hardis 5.20.0 → 5.21.1
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/CHANGELOG.md +9 -0
- package/lib/commands/hardis/doc/flow2markdown.d.ts +3 -1
- package/lib/commands/hardis/doc/flow2markdown.js +47 -28
- package/lib/commands/hardis/doc/flow2markdown.js.map +1 -1
- package/lib/commands/hardis/doc/project2markdown.d.ts +1 -0
- package/lib/commands/hardis/doc/project2markdown.js +22 -2
- package/lib/commands/hardis/doc/project2markdown.js.map +1 -1
- package/lib/commands/hardis/org/diagnose/audittrail.js +2 -1
- package/lib/commands/hardis/org/diagnose/audittrail.js.map +1 -1
- package/lib/commands/hardis/org/test/apex.js +3 -2
- package/lib/commands/hardis/org/test/apex.js.map +1 -1
- package/lib/common/metadata-utils/index.d.ts +1 -0
- package/lib/common/metadata-utils/index.js +12 -0
- package/lib/common/metadata-utils/index.js.map +1 -1
- package/lib/common/utils/markdownUtils.d.ts +1 -0
- package/lib/common/utils/markdownUtils.js +25 -0
- package/lib/common/utils/markdownUtils.js.map +1 -0
- package/lib/common/utils/mermaidUtils.d.ts +1 -1
- package/lib/common/utils/mermaidUtils.js +15 -2
- package/lib/common/utils/mermaidUtils.js.map +1 -1
- package/oclif.lock +519 -15
- package/oclif.manifest.json +18 -3
- package/package.json +2 -1
package/oclif.manifest.json
CHANGED
|
@@ -392,7 +392,9 @@
|
|
|
392
392
|
"description": "Generates a markdown documentation from a Flow file\n \nIf [AI integration](https://sfdx-hardis.cloudity.com/salesforce-ai-setup/) is configured, documentation will contain a summary of the Flow. \n ",
|
|
393
393
|
"examples": [
|
|
394
394
|
"$ sf hardis:doc:flow2markdown",
|
|
395
|
-
"$ sf hardis:doc:flow2markdown --inputfile force-app/main/default/flows/MyFlow.flow-meta.xml"
|
|
395
|
+
"$ sf hardis:doc:flow2markdown --inputfile force-app/main/default/flows/MyFlow.flow-meta.xml",
|
|
396
|
+
"$ sf hardis:doc:flow2markdown --pdf",
|
|
397
|
+
"$ sf hardis:doc:flow2markdown --inputfile force-app/main/default/flows/MyFlow.flow-meta.xml --pdf"
|
|
396
398
|
],
|
|
397
399
|
"flags": {
|
|
398
400
|
"json": {
|
|
@@ -432,6 +434,12 @@
|
|
|
432
434
|
"allowNo": false,
|
|
433
435
|
"type": "boolean"
|
|
434
436
|
},
|
|
437
|
+
"pdf": {
|
|
438
|
+
"description": "Also generate the documentation in PDF format",
|
|
439
|
+
"name": "pdf",
|
|
440
|
+
"allowNo": false,
|
|
441
|
+
"type": "boolean"
|
|
442
|
+
},
|
|
435
443
|
"debug": {
|
|
436
444
|
"char": "d",
|
|
437
445
|
"description": "Activate debug mode (more logs)",
|
|
@@ -762,7 +770,8 @@
|
|
|
762
770
|
"description": "Generates a markdown documentation from a SFDX project\n\n- Objects\n- Flows\n- Apex\n- Lightning Pages\n- SFDX-Hardis Config\n- Branches & Orgs\n- Installed Packages\n- Manifests\n\nCan work on any sfdx project, no need for it to be a sfdx-hardis flavored one.\n\nGenerates markdown files will be written in **docs** folder (except README.md where a link to doc index is added)\n\n- You can customize the pages following [mkdocs-material setup documentation](https://squidfunk.github.io/mkdocs-material/setup/)\n- You can manually add new markdown files in the \"docs\" folder to extend this documentation and add references to them in \"mkdocs.yml\"\n- You can also add images in folder \"docs/assets\" and embed them in markdown files.\n\nTo read Flow documentations if your markdown reader doesn't handle MermaidJS syntax, this command could require @mermaid-js/mermaid-cli\n\n- Run `npm install @mermaid-js/mermaid-cli --global` if puppeteer works in your environment\n- It can also be run as a docker image\n\nBoth modes will be tried by default, but you can also force one of them by defining environment variable `MERMAID_MODES=docker` or `MERMAID_MODES=cli`\n\n_sfdx-hardis docker image is alpine-based and does not succeed to run mermaid/puppeteer: if you can help, please submit a PR !_\n\nIf Flow history doc always display a single state, you probably need to update your workflow configuration:\n\n- on Gitlab: Env variable [`GIT_FETCH_EXTRA_FLAGS: --depth 10000`](https://github.com/hardisgroupcom/sfdx-hardis/blob/main/defaults/monitoring/.gitlab-ci.yml#L11)\n- on GitHub: [`fetch-depth: 0`](https://github.com/hardisgroupcom/sfdx-hardis/blob/main/defaults/monitoring/.github/workflows/org-monitoring.yml#L58)\n- on Azure: [`fetchDepth: \"0\"`](https://github.com/hardisgroupcom/sfdx-hardis/blob/main/defaults/monitoring/azure-pipelines.yml#L39)\n- on Bitbucket: [`step: clone: depth: full`](https://github.com/hardisgroupcom/sfdx-hardis/blob/main/defaults/monitoring/bitbucket-pipelines.yml#L18)\n\n\n\n\n\n\n\n\n\n\nIf it is a sfdx-hardis CI/CD project, a diagram of the branches and orgs strategy will be generated.\n\n\n\nIf [AI integration](https://sfdx-hardis.cloudity.com/salesforce-ai-setup/) is configured, documentation will contain a summary of the Flow.\n\nIf you have a complex strategy, you might need to input property **mergeTargets** in branch-scoped sfdx-hardis.yml file to have a correct diagram.\n\n## Doc HTML Pages\n\nTo read the documentation as HTML pages, run the following code (you need [**Python**](https://www.python.org/downloads/) on your computer)\n\n```python\npip install mkdocs-material mkdocs-exclude-search mdx_truly_sane_lists || python -m pip install mkdocs-material mkdocs-exclude-search mdx_truly_sane_lists || py -m pip install mkdocs-material mkdocs-exclude-search mdx_truly_sane_lists\nmkdocs serve -v || python -m mkdocs serve -v || py -m mkdocs serve -v\n```\n\nTo just generate HTML pages that you can host anywhere, run `mkdocs build -v || python -m mkdocs build -v || py -m mkdocs build -v`\n\n",
|
|
763
771
|
"examples": [
|
|
764
772
|
"$ sf hardis:doc:project2markdown",
|
|
765
|
-
"$ sf hardis:doc:project2markdown --with-history"
|
|
773
|
+
"$ sf hardis:doc:project2markdown --with-history",
|
|
774
|
+
"$ sf hardis:doc:project2markdown --with-history --pdf"
|
|
766
775
|
],
|
|
767
776
|
"flags": {
|
|
768
777
|
"json": {
|
|
@@ -792,6 +801,12 @@
|
|
|
792
801
|
"allowNo": false,
|
|
793
802
|
"type": "boolean"
|
|
794
803
|
},
|
|
804
|
+
"pdf": {
|
|
805
|
+
"description": "Also generate the documentation in PDF format",
|
|
806
|
+
"name": "pdf",
|
|
807
|
+
"allowNo": false,
|
|
808
|
+
"type": "boolean"
|
|
809
|
+
},
|
|
795
810
|
"debug": {
|
|
796
811
|
"char": "d",
|
|
797
812
|
"description": "Activate debug mode (more logs)",
|
|
@@ -14488,5 +14503,5 @@
|
|
|
14488
14503
|
]
|
|
14489
14504
|
}
|
|
14490
14505
|
},
|
|
14491
|
-
"version": "5.
|
|
14506
|
+
"version": "5.21.1"
|
|
14492
14507
|
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Swiss-army-knife Toolbox for Salesforce.\n Allows you to define a complete CD/CD Pipeline.\n Orchestrate base commands and assist users with interactive wizards",
|
|
4
4
|
"author": "NicolasVuillamy @nvuillam",
|
|
5
5
|
"bugs": "https://github.com/hardisgroupcom/sfdx-hardis/issues",
|
|
6
|
-
"version": "5.
|
|
6
|
+
"version": "5.21.1",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@actions/github": "^6.0.0",
|
|
9
9
|
"@cparra/apexdocs": "^3.9.0",
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
"make-fetch-happen": "^14.0.3",
|
|
46
46
|
"markdown-toc": "^1.2.0",
|
|
47
47
|
"marked": "^14.1.4",
|
|
48
|
+
"md-to-pdf": "^5.2.4",
|
|
48
49
|
"mega-linter-runner": "^8.4.2",
|
|
49
50
|
"moment": "^2.30.1",
|
|
50
51
|
"open": "^10.1.0",
|