Skip to content

Commit b1eb3f3

Browse files
committed
fix: migrate plugin-config commands
1 parent bb3416d commit b1eb3f3

Some content is hidden

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

48 files changed

+4504
-3365
lines changed

.circleci/config.yml

Lines changed: 66 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,50 @@ version: 2.1
22

33
orbs:
44
release-management: salesforce/npm-release-management@4
5+
parameters:
6+
run-auto-workflows:
7+
description: >
8+
Boolean that controls when an workflow would run.
59
10+
It is used to gate which workflows should run when github events occur.
11+
12+
This parameter is used by automation to determine if a workflow will run
13+
within a pipeline.
14+
default: true
15+
type: boolean
16+
run-just-nuts:
17+
description: >
18+
Boolean that controls when the just-nuts will run.
19+
20+
Default value is false and this parameter is used by automation to
21+
determine if
22+
23+
the just-nuts workflow will run.
24+
default: false
25+
type: boolean
26+
sfdx_version:
27+
description: |
28+
By default, the latest version of the standalone CLI will be installed.
29+
To install via npm, supply a version tag such as "latest" or "6".
30+
default: ''
31+
type: string
32+
repo_tag:
33+
description: "The tag of the module repo to checkout, '' defaults to branch/PR"
34+
default: ''
35+
type: string
36+
npm_module_name:
37+
description: 'The fully qualified npm module name, i.e. @salesforce/plugin-data'
38+
default: ''
39+
type: string
640
workflows:
41+
version: 2
742
test-and-release:
43+
when: << pipeline.parameters.run-auto-workflows >>
844
jobs:
945
- release-management/validate-pr:
1046
filters:
1147
branches:
1248
ignore: main
13-
- release-management/test-plugin-inclusion:
14-
target_cli: sf
1549
- release-management/test-package:
1650
matrix:
1751
parameters:
@@ -23,26 +57,31 @@ workflows:
2357
- lts
2458
- maintenance
2559
- release-management/test-nut:
26-
matrix:
27-
parameters:
28-
os:
29-
- linux
30-
- windows
31-
sfdx_version:
32-
- latest
33-
node_version:
34-
- latest
60+
name: nuts-on-linux
61+
sfdx_version: latest
62+
requires:
63+
- release-management/test-package
64+
context: na40-auth-url
65+
- release-management/test-nut:
66+
name: nuts-on-windows
67+
sfdx_version: latest
68+
os: windows
3569
requires:
3670
- release-management/test-package
3771
context: na40-auth-url
3872
- release-management/release-package:
3973
github-release: true
74+
sign: true
75+
tag: sf
4076
requires:
4177
- release-management/test-package
4278
filters:
4379
branches:
4480
only: main
45-
context: release
81+
context:
82+
- AWS
83+
- release
84+
- CLI_CTC
4685
test-ts-update:
4786
triggers:
4887
- schedule:
@@ -53,6 +92,21 @@ workflows:
5392
- main
5493
jobs:
5594
- release-management/test-ts-update
95+
just-nuts:
96+
when: << pipeline.parameters.run-just-nuts >>
97+
jobs:
98+
- release-management/test-nut:
99+
name: just-nuts-<< matrix.os >>
100+
sfdx_version: << pipeline.parameters.sfdx_version >>
101+
sfdx_executable_path: sfdx
102+
repo_tag: << pipeline.parameters.repo_tag >>
103+
matrix:
104+
parameters:
105+
os:
106+
- linux
107+
- windows
108+
npm_module_name: << pipeline.parameters.npm_module_name >>
109+
context: na40-auth-url
56110
dependabot-automerge:
57111
triggers:
58112
- schedule:

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
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
};

.eslintrc.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"parserOptions": {
3+
"sourceType": "module",
4+
"ecmaFeatures": {
5+
"jsx": true
6+
}
7+
},
8+
"extends": ["prettier"],
9+
"env": {
10+
"es6": true,
11+
"node": true
12+
}
13+
}

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
# @salesforcecli/cli will be requested for
44
# review when someone opens a pull request.
55
* @salesforcecli/cli
6+
#ECCN:Open Source

.github/dependabot.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
version: 2
22
updates:
33
- package-ecosystem: 'npm'
4-
versioning-strategy: increase
54
directory: '/'
65
schedule:
76
interval: 'monthly'

.mocharc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
"watch-extensions": "ts",
44
"recursive": true,
55
"reporter": "spec",
6-
"timeout": 5000
6+
"timeout": 10000,
7+
"exclude": "node_modules/**/*"
78
}

.vscode/launch.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
"version": "0.2.0",
66
"configurations": [
7+
{
8+
"type": "node",
9+
"request": "launch",
10+
"name": "Mocha Tests",
11+
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
12+
"args": ["-u", "tdd", "--timeout", "999999", "--colors", "${workspaceFolder}/test/commands/config/set.test.ts"],
13+
"internalConsoleOptions": "openOnSessionStart",
14+
"skipFiles": ["<node_internals>/**"]
15+
},
16+
717
{
818
"type": "node",
919
"request": "attach",

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

0 commit comments

Comments
 (0)