Skip to content

Commit

Permalink
Merge pull request #5 from salesforcecli/td/docgen
Browse files Browse the repository at this point in the history
fix: add topics for docgen
  • Loading branch information
amphro authored Aug 3, 2020
2 parents 72f893f + 39dce1a commit 8e0b3c8
Show file tree
Hide file tree
Showing 3 changed files with 288 additions and 36 deletions.
98 changes: 98 additions & 0 deletions command-snapshot.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
[
{
"command": "commandreference:generate",
"flags": [
"json",
"loglevel",
"outputdir",
"plugins",
"hidden",
"erroronwarnings"
]
},
{
"command": "force:cmdt:create",
"flags": [
"json",
"loglevel",
"typename",
"label",
"plurallabel",
"visibility",
"outputdir"
]
},
{
"command": "force:cmdt:field:create",
"flags": [
"json",
"loglevel",
"fieldname",
"fieldtype",
"picklistvalues",
"decimalplaces",
"label",
"outputdir"
]
},
{
"command": "force:cmdt:generate",
"flags": [
"json",
"loglevel",
"targetusername",
"apiversion",
"devname",
"label",
"plurallabel",
"visibility",
"sobjectname",
"ignoreunsupported",
"typeoutputdir",
"recordsoutputdir"
]
},
{
"command": "force:cmdt:record:create",
"flags": [
"json",
"loglevel",
"typename",
"recordname",
"label",
"protected",
"inputdir",
"outputdir"
]
},
{
"command": "force:cmdt:record:insert",
"flags": [
"json",
"loglevel",
"filepath",
"typename",
"inputdir",
"outputdir",
"namecolumn"
]
},
{
"command": "help",
"flags": [
"all"
]
},
{
"command": "snapshot:compare",
"flags": [
"filepath"
]
},
{
"command": "snapshot:generate",
"flags": [
"filepath"
]
}
]
29 changes: 25 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,11 @@
},
"devDependencies": {
"@oclif/dev-cli": "^1.22.2",
"@oclif/plugin-command-snapshot": "^1.0.0",
"@oclif/plugin-help": "^3.0.1",
"@oclif/test": "^1.2.6",
"@salesforce/dev-config": "^1.5.0",
"@salesforce/plugin-command-reference": "^1.1.0",
"@salesforce/ts-sinon": "^1.1.2",
"@semantic-release/git": "^9.0.0",
"@types/chai": "^4.2.11",
Expand Down Expand Up @@ -89,17 +91,36 @@
"commands": "./lib/commands",
"bin": "sfdx",
"devPlugins": [
"@oclif/plugin-help"
]
"@oclif/plugin-help",
"@oclif/plugin-command-snapshot",
"@salesforce/plugin-command-reference"
],
"topics": {
"force": {
"external": true,
"subtopics": {
"cmdt": {
"description": "create and update custom metadata types and their records",
"subtopics": {
"record": {
"description": "create and update custom metadata type records"
}
}
}
}
}
}
},
"repository": "github:salesforcecli/plugin-custom-metadata",
"scripts": {
"postpack": "rm -f oclif.manifest.json",
"posttest": "tsc -p test --noEmit && tslint -p test -t stylish",
"posttest": "tsc -p test --noEmit && tslint -p test -t stylish && yarn test:deprecation-policy && yarn test:command-reference",
"prepack": "rm -rf lib && tsc && oclif-dev manifest && oclif-dev readme",
"test": "nyc mocha --forbid-only \"test/**/*.test.ts\"",
"version": "oclif-dev readme && git add README.md",
"release": "semantic-release -p @semantic-release/git -p @semantic-release/npm -p @semantic-release/github -p @semantic-release/commit-analyzer"
"release": "semantic-release -p @semantic-release/git -p @semantic-release/npm -p @semantic-release/github -p @semantic-release/commit-analyzer",
"test:deprecation-policy": "./bin/run snapshot:compare",
"test:command-reference": "./bin/run commandreference:generate -p @salesforce/plugin-custom-metadata --erroronwarnings"
},
"publishConfig": {
"access": "public"
Expand Down
Loading

0 comments on commit 8e0b3c8

Please sign in to comment.