Skip to content

Commit 8fe0545

Browse files
mshanemcmdonnalleySF-CLI-BOTjshackell-sfdcRodEsp
authored
feat: v2 to main (#367)
* Updates for `sf` (#34) * feat: support sf BREAKING CHANGE: only works for sf now * test: update to work with new file structure * refactor: use oclif/core * chore: bump to 2.0.0 * chore: satisfy dev-scripts * chore: code review * chore: regenerate yarn.lock * chore(release): 2.0.0 [ci skip] * fix: use this.config * chore(release): 2.0.1 [ci skip] * chore: update circle config for v2 [skip ci] * fix: update generate command reference * chore(release): 2.0.2 [ci skip] * fix: populate topic command xml * chore(release): 2.0.3 [ci skip] * fix: append suffix to all filenames * test: update filenames * chore(release): 2.0.4 [ci skip] * fix: use unique id * chore(release): 2.0.5 [ci skip] * fix: don't generate xml for topics * chore(release): 2.0.6 [ci skip] * fix: improve error handling * chore(release): 2.0.7 [ci skip] * fix: update template files for sf * update help file for "sf" * update sf page that lists the plugin versions * tweaks to command topics for "sf" * tweaks to topic ditamaps for "sf" * fix: update test with new title in command XML file * chore(release): 2.0.8 [ci skip] * fix: use latest sf-plugins-core * chore(release): 2.0.9 [ci skip] * fix: change title/shortdesc of main ditamap so it says "sf" * chore(release): 2.0.10 [ci skip] * fix: stop generating main topic intro * chore(release): 2.0.11 [ci skip] * fix: bump to GA deps (#37) * chore(release): 2.0.12 [ci skip] * feat: add --all (#38) * chore(release): 2.1.0 [ci skip] * chore: fix and run windows unit tests * chore(release): 2.1.1 [ci skip] * feat: update dependencies * chore: add main to package.json * chore(release): 2.2.0 [ci skip] * fix: dont run default functions * chore(release): 2.2.1 [ci skip] * fix: remove cli-ux reference * chore(release): 2.2.2 [ci skip] * fix: prevent empty tags * chore(release): 2.2.3 [ci skip] * fix: escape tags * chore(release): 2.2.4 [ci skip] * fix: remove duplicates * fix: refine default value * chore(release): 2.2.5 [ci skip] * fix: remove async handlebars * chore(release): 2.2.6 [ci skip] * fix: default value * chore(release): 2.2.7 [ci skip] * chore: remove .tgz [skip ci] * fix: remove console.log * chore(release): 2.2.8 [ci skip] * fix: improve types (#99) * fix: improve types * chore: regenerate yarn.lock * fix: description no longer required for sf @W-12296410@ * Revert "fix: description no longer required for sf" This reverts commit 1a4774c. * fix: description no longer required for sf @W-12296410@ * fix: add GHA folder @W-0@ * chore: changes * chore: apply requested changes * chore(release): 2.2.9 [skip ci] * fix: check if plugin exists * chore(release): 2.2.10 [skip ci] * feat: use oclif/core v2 * chore(release): 2.3.0 [skip ci] * fix: duplicate flag descriptions * chore(release): 2.3.1 [skip ci] * feat: jit install command (#265) * feat: add jit install command * chore: simplify implementation * chore(release): 2.4.0 [skip ci] * fix: jit install * chore(release): 2.4.1 [skip ci] * fix: add strict null checks @W-12220467@ changed ref plugin to plugin-auth * chore: remove unneeded case * refactor: rid project of fs-extra * chore: apply review suggestions * refactor: get rid of json map * chore: apply changes from review * chore(release): 2.4.2 [skip ci] * Revert "Merge pull request #330 from salesforcecli/phale/strict-null-checks" This reverts commit 5e0240f, reversing changes made to d730f40. # Conflicts: # package.json * fix: revert 2.4.2 * chore(release): 2.4.4 [skip ci] * fix: render cmd and flag sum/desc ejs template (#350) * chore(release): 2.4.5 [skip ci] * fix: don't overwrite commands with equivalent topics in other plugins * chore: better progress * chore: wip * refactor: narrower types and stronger type checking @W-13138789@ * chore: fix tests after merge * chore: reapply stash * chore: wireit updates * test: e2e tests generate test files first * refactor: typeguard in place of assertion * fix: binary is on commandMeta, not command * fix: merge subtopics, use maps * fix: config replacements in descriptions * fix: use the correct ensureArray * docs: readme * refactor: reduce ts workarounds * chore: remove unused code * fix: missing commands where there was a topic collision * chore: gitignore for my output files * refactor: remove unused --------- Co-authored-by: Peter Hale <peter.hale@salesforce.com> * chore(release): 2.4.6 [skip ci] * ci: merge v2 into main * chore: bye, circle * style: remove comments * fix: misapplied change from merge * chore: remove commen --------- Co-authored-by: Mike Donnalley <mdonnalley@salesforce.com> Co-authored-by: SF-CLI-BOT <alm-cli@salesforce.com> Co-authored-by: Juliet Shackell <63259011+jshackell-sfdc@users.noreply.github.com> Co-authored-by: Rodrigo Espinosa de los Monteros <1084688+RodEsp@users.noreply.github.com> Co-authored-by: Peter Hale <peter.hale@salesforce.com> Co-authored-by: peternhale <peternhale@users.noreply.github.com> Co-authored-by: Willhoit <iowillhoit@users.noreply.github.com> Co-authored-by: svc-cli-bot <svc_cli_bot@salesforce.com> Co-authored-by: Cristian Dominguez <6853656+cristiand391@users.noreply.github.com>
1 parent e0bef25 commit 8fe0545

47 files changed

Lines changed: 1874 additions & 5754 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintrc.js

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,18 @@
55
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
66
*/
77
module.exports = {
8-
extends: ['eslint-config-salesforce-typescript', 'eslint-config-salesforce-license'],
8+
extends: ['eslint-config-salesforce-typescript', 'eslint-config-salesforce-license', 'plugin:sf-plugin/recommended'],
99
rules: {
10-
'@typescript-eslint/no-explicit-any': 'warn',
11-
'@typescript-eslint/explicit-function-return-type': 'warn',
12-
'@typescript-eslint/restrict-template-expressions': 'warn',
13-
'@typescript-eslint/no-unsafe-assignment': 'warn',
14-
'@typescript-eslint/no-unsafe-member-access': 'warn',
15-
'@typescript-eslint/no-unsafe-call': 'warn',
16-
'@typescript-eslint/no-unsafe-return': 'warn',
10+
'@typescript-eslint/restrict-template-expressions': 'off',
11+
'@typescript-eslint/explicit-function-return-type': 'off',
12+
'@typescript-eslint/no-unsafe-assignment': 'off',
13+
'@typescript-eslint/no-unsafe-member-access': 'off',
14+
'@typescript-eslint/no-unsafe-call': 'off',
15+
'@typescript-eslint/no-unsafe-return': 'off',
16+
'@typescript-eslint/member-ordering': 'off',
17+
'no-underscore-dangle': 'off',
18+
'@typescript-eslint/explicit-module-boundary-types': 'off',
19+
'no-empty': 'off',
20+
'@typescript-eslint/no-explicit-any': 'off',
1721
},
1822
};

.github/workflows/notify-slack-on-pr-open.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ jobs:
88
build:
99
runs-on: ubuntu-latest
1010
steps:
11-
- name: Notify Slack on PR open
12-
env:
13-
WEBHOOK_URL : ${{ secrets.CLI_TEAM_SLACK_WEBHOOK_URL }}
14-
PULL_REQUEST_AUTHOR_ICON_URL : ${{ github.event.pull_request.user.avatar_url }}
15-
PULL_REQUEST_AUTHOR_NAME : ${{ github.event.pull_request.user.login }}
16-
PULL_REQUEST_AUTHOR_PROFILE_URL: ${{ github.event.pull_request.user.html_url }}
17-
PULL_REQUEST_BASE_BRANCH_NAME : ${{ github.event.pull_request.base.ref }}
18-
PULL_REQUEST_COMPARE_BRANCH_NAME : ${{ github.event.pull_request.head.ref }}
19-
PULL_REQUEST_NUMBER : ${{ github.event.pull_request.number }}
20-
PULL_REQUEST_REPO: ${{ github.event.pull_request.head.repo.name }}
21-
PULL_REQUEST_TITLE : ${{ github.event.pull_request.title }}
22-
PULL_REQUEST_URL : ${{ github.event.pull_request.html_url }}
23-
uses: salesforcecli/github-workflows/.github/actions/prNotification@main
11+
- name: Notify Slack on PR open
12+
env:
13+
WEBHOOK_URL: ${{ secrets.CLI_TEAM_SLACK_WEBHOOK_URL }}
14+
PULL_REQUEST_AUTHOR_ICON_URL: ${{ github.event.pull_request.user.avatar_url }}
15+
PULL_REQUEST_AUTHOR_NAME: ${{ github.event.pull_request.user.login }}
16+
PULL_REQUEST_AUTHOR_PROFILE_URL: ${{ github.event.pull_request.user.html_url }}
17+
PULL_REQUEST_BASE_BRANCH_NAME: ${{ github.event.pull_request.base.ref }}
18+
PULL_REQUEST_COMPARE_BRANCH_NAME: ${{ github.event.pull_request.head.ref }}
19+
PULL_REQUEST_NUMBER: ${{ github.event.pull_request.number }}
20+
PULL_REQUEST_REPO: ${{ github.event.pull_request.head.repo.name }}
21+
PULL_REQUEST_TITLE: ${{ github.event.pull_request.title }}
22+
PULL_REQUEST_URL: ${{ github.event.pull_request.html_url }}
23+
uses: salesforcecli/github-workflows/.github/actions/prNotification@main

.github/workflows/onPushToMain.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,3 @@ jobs:
99
release:
1010
uses: salesforcecli/github-workflows/.github/workflows/githubRelease.yml@main
1111
secrets: inherit
12-
13-
# most repos won't use this
14-
# depends on previous job to avoid git collisions, not for any functionality reason
15-
# docs:
16-
# uses: salesforcecli/github-workflows/.github/workflows/publishTypedoc.yml@main
17-
# secrets: inherit
18-
# needs: release

.github/workflows/onRelease.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,5 @@ jobs:
1414
npm:
1515
uses: salesforcecli/github-workflows/.github/workflows/npmPublish.yml@main
1616
with:
17-
# ternary-ish https://github.com/actions/runner/issues/409#issuecomment-752775072
18-
# if the version is 2.x we release it on the `sf` dist tag
19-
tag: ${{ startsWith( github.event.release.tag_name || inputs.tag, '1.') && 'latest' || 'sf'}}
2017
githubTag: ${{ github.event.release.tag_name || inputs.tag }}
2118
secrets: inherit

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ jobs:
1010
linux-unit-tests:
1111
needs: yarn-lockfile-check
1212
uses: salesforcecli/github-workflows/.github/workflows/unitTestsLinux.yml@main
13+
windows-unit-tests:
14+
needs: linux-unit-tests
15+
uses: salesforcecli/github-workflows/.github/workflows/unitTestsWindows.yml@main

.gitignore

Lines changed: 45 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,48 @@
1-
*-debug.log
2-
*-error.log
3-
/.nyc_output
4-
/dist
5-
/lib
6-
/package-lock.json
1+
# -- CLEAN
2+
3+
# use yarn by default, so ignore npm
4+
package-lock.json
5+
6+
# never checkin npm config
7+
.npmrc
8+
9+
# debug logs
10+
npm-error.log
11+
yarn-error.log
12+
lerna-debug.log
13+
*.tsbuildinfo
14+
15+
# compile source
16+
lib
17+
18+
# test artifacts
19+
*xunit.xml
20+
*checkstyle.xml
21+
*unitcoverage
22+
.nyc_output
23+
coverage
24+
25+
# generated docs
26+
docs
27+
output*
28+
29+
# -- CLEAN ALL
30+
.eslintcache
31+
.wireit
32+
node_modules
33+
34+
# --
35+
# put files here you don't want cleaned with sf-clean
36+
37+
# os specific files
38+
.DS_Store
39+
.idea
40+
41+
# ignore sfdx-trust files
42+
*.tgz
43+
*.sig
44+
package.json.bak.
45+
746
/tmp
847
/test/tmp
9-
node_modules
1048
oclif.manifest.json

.husky/pre-push

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
yarn build && yarn test
4+
yarn build && yarn test --forbid-only

.nycrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
"nyc": {
33
"extends": "@salesforce/dev-config/nyc"
44
}
5-
}
5+
}

.releaserc.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

.sfdevrc.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"test": {
3+
"testsPath": "test/**/*.test.ts"
4+
},
5+
"wireit": {
6+
"test:command-reference": {
7+
"command": "\"./bin/dev\" commandreference:generate --plugins auth --outputdir test/tmp",
8+
"files": ["src/**/*.ts", "messages/**", "package.json"],
9+
"output": ["test/tmp"]
10+
},
11+
"test": {
12+
"dependencies": ["test:compile", "test:only", "lint"]
13+
},
14+
"test:only": {
15+
"command": "nyc mocha \"test/**/*.test.ts\"",
16+
"env": {
17+
"FORCE_COLOR": "2"
18+
},
19+
"files": ["test/**/*.ts", "src/**/*.ts", "**/tsconfig.json", ".mocha*", "!*.nut.ts", ".nycrc"],
20+
"output": [],
21+
"dependencies": ["test:command-reference"]
22+
}
23+
},
24+
"exclude-scripts": ["pretest"]
25+
}

0 commit comments

Comments
 (0)