Skip to content

Commit d16616e

Browse files
committed
Initial commit
0 parents  commit d16616e

Some content is hidden

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

41 files changed

+8069
-0
lines changed

.circleci/config.yml

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
version: 2.1
2+
orbs:
3+
release-management: salesforce/npm-release-management@4
4+
workflows:
5+
version: 2
6+
test-and-release:
7+
when:
8+
equal: [test-and-release, << pipeline.parameters.workflow >>]
9+
jobs:
10+
- release-management/validate-pr:
11+
filters:
12+
branches:
13+
ignore: main
14+
- release-management/test-package:
15+
matrix:
16+
parameters:
17+
os:
18+
- linux
19+
- windows
20+
node_version:
21+
- latest
22+
- lts
23+
- maintenance
24+
exclude:
25+
- os: windows
26+
node_version: lts
27+
- os: windows
28+
node_version: maintenance
29+
- release-management/release-package:
30+
sign: true
31+
github-release: true
32+
requires:
33+
- release-management/test-package
34+
filters:
35+
branches:
36+
only: main
37+
- release-management/test-nut:
38+
matrix:
39+
parameters:
40+
os:
41+
- linux
42+
- windows
43+
sfdx_version:
44+
- latest
45+
node_version:
46+
- latest
47+
requires:
48+
- release-management/test-package
49+
test-ts-update:
50+
when:
51+
equal: [test-ts-update, << pipeline.parameters.workflow >>]
52+
jobs:
53+
- release-management/test-ts-update
54+
just-nuts:
55+
when:
56+
equal: [just-nuts, << pipeline.parameters.workflow >>]
57+
jobs:
58+
- release-management/test-nut:
59+
name: just-nuts-<< matrix.os >>
60+
sfdx_version: << pipeline.parameters.sfdx_version >>
61+
sfdx_executable_path: sfdx
62+
repo_tag: << pipeline.parameters.repo_tag >>
63+
matrix:
64+
parameters:
65+
os:
66+
- linux
67+
- windows
68+
npm_module_name: << pipeline.parameters.npm_module_name >>
69+
dependabot-automerge:
70+
when:
71+
equal: [dependabot-automerge, << pipeline.parameters.workflow >>]
72+
jobs:
73+
- release-management/dependabot-automerge:
74+
context: release
75+
parameters:
76+
sfdx_version:
77+
description: |
78+
By default, the latest version of the standalone CLI will be installed.
79+
To install via npm, supply a version tag such as "latest" or "6".
80+
default: ''
81+
type: string
82+
repo_tag:
83+
description: 'The tag of the module repo to checkout, '''' defaults to branch/PR'
84+
default: ''
85+
type: string
86+
npm_module_name:
87+
description: 'The fully qualified npm module name, i.e. @salesforce/plugins-data'
88+
default: ''
89+
type: string
90+
workflow:
91+
description: |
92+
String that controls which workflow would run.
93+
94+
This parameter is used by automation to determine if a workflow will run
95+
within a pipeline.
96+
type: string
97+
default: 'test-and-release'

.editorconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
insert_final_newline = true
9+
10+
[*.md]
11+
trim_trailing_whitespace = false

.eslintrc.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/*
2+
* Copyright (c) 2021, salesforce.com, inc.
3+
* All rights reserved.
4+
* Licensed under the BSD 3-Clause license.
5+
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
6+
*/
7+
module.exports = {
8+
extends: ['eslint-config-salesforce-typescript', 'eslint-config-salesforce-license'],
9+
};

.git2gus/config.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"productTag": "a1aB00000004Bx8IAE",
3+
"defaultBuild": "offcore.tooling.52"
4+
}

.github/CODEOWNERS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# These owners will be the default owners for everything in
2+
# the repo. Unless a later match takes precedence,
3+
# @forcedotcom/pdt will be requested for
4+
# review when someone opens a pull request.
5+
* @salesforcecli/cli
6+
#ECCN:Open Source

.github/ISSUE_TEMPLATE/Bug_report.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
---
5+
6+
<!--
7+
NOTICE: While GitHub is the preferred channel for reporting issues/feedback, this is not a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, please use official support channels.
8+
-->
9+
10+
<!--
11+
FOR BUGS RELATED TO THE SALEFORCE CLI, please use this repository: https://github.com/forcedotcom/cli-packages
12+
-->
13+
14+
### Summary
15+
16+
_Short summary of what is going on or to provide context_.
17+
18+
### Steps To Reproduce:
19+
20+
1. This is step 1.
21+
1. This is step 2. All steps should start with '1.'
22+
23+
### Expected result
24+
25+
_Describe what should have happened_.
26+
27+
### Actual result
28+
29+
_Describe what actually happened instead_.
30+
31+
### Additional information
32+
33+
_Feel free to attach a screenshot_.
34+
35+
**VS Code Version**:
36+
37+
**SFDX CLI Version**:
38+
39+
**OS and version**:
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
---
5+
6+
**Is your feature request related to a problem? Please describe.**
7+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
8+
9+
**Describe the solution you'd like**
10+
A clear and concise description of what you want to happen.
11+
12+
**Describe alternatives you've considered**
13+
A clear and concise description of any alternative solutions or features you've considered.
14+
15+
**Additional context**
16+
Add any other context or screenshots about the feature request here.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
### What does this PR do?
2+
3+
### What issues does this PR fix or reference?

.github/dependabot.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: 'npm'
4+
directory: '/'
5+
schedule:
6+
interval: 'monthly'
7+
labels:
8+
- 'dependencies'
9+
open-pull-requests-limit: 100
10+
pull-request-branch-name:
11+
separator: '-'
12+
ignore:
13+
- dependency-name: 'typescript'
14+
- dependency-name: 'sinon'
15+
- dependency-name: 'string-ansi'
16+
- dependency-name: '*'
17+
update-types: ['version-update:semver-major']

.github/no-response.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Configuration for probot-no-response - https://github.com/probot/no-response
2+
3+
daysUntilClose: 7
4+
responseRequiredLabel: 'more information required'
5+
closeComment: >
6+
This issue has been automatically closed because there has been no response
7+
to our request for more information from the original author. Currently, there
8+
is not enough information provided for us to take action. Please reply and
9+
reopen this issue if you need additional assistance.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Slack pull request open notification
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Notify slack 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/pr-notification-action@main

.gitignore

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# -- CLEAN
2+
tmp/
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+
13+
14+
# compile source
15+
lib
16+
17+
# test artifacts
18+
*xunit.xml
19+
*checkstyle.xml
20+
*unitcoverage
21+
.nyc_output
22+
coverage
23+
test_session*
24+
25+
# generated docs
26+
docs
27+
28+
# ignore sfdx-trust files
29+
*.tgz
30+
*.sig
31+
package.json.bak.
32+
33+
# -- CLEAN ALL
34+
node_modules
35+
36+
# --
37+
# put files here you don't want cleaned with sf-clean
38+
39+
# os specific files
40+
.DS_Store
41+
.idea

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn commitlint --edit

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn lint && yarn pretty-quick --staged

.husky/pre-push

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn build && yarn test

.images/vscodeScreenshot.png

364 KB
Loading

.lintstagedrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
'**/*.{js,json,md}?(x)': () => 'npm run reformat'
3+
};

.mocharc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"require": "ts-node/register,source-map-support/register",
3+
"watch-extensions": "ts",
4+
"recursive": true,
5+
"reporter": "spec",
6+
"timeout": 5000
7+
}

.nycrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"nyc": {
3+
"extends": "@salesforce/dev-config/nyc"
4+
}
5+
}

.prettierrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"@salesforce/prettier-config"

.vscode/launch.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "node",
9+
"request": "attach",
10+
"name": "Attach",
11+
"port": 9229,
12+
"skipFiles": ["<node_internals>/**"]
13+
},
14+
{
15+
"name": "Run All Tests",
16+
"type": "node",
17+
"request": "launch",
18+
"protocol": "inspector",
19+
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
20+
"args": ["--inspect", "--no-timeouts", "--colors", "test/**/*.test.ts"],
21+
"env": {
22+
"NODE_ENV": "development",
23+
"SFDX_ENV": "development"
24+
},
25+
"sourceMaps": true,
26+
"smartStep": true,
27+
"internalConsoleOptions": "openOnSessionStart",
28+
"preLaunchTask": "Compile"
29+
},
30+
{
31+
"type": "node",
32+
"request": "launch",
33+
"name": "Run Current Test",
34+
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
35+
"args": ["--inspect", "--no-timeouts", "--colors", "${file}"],
36+
"env": {
37+
"NODE_ENV": "development",
38+
"SFDX_ENV": "development"
39+
},
40+
"sourceMaps": true,
41+
"smartStep": true,
42+
"internalConsoleOptions": "openOnSessionStart",
43+
"preLaunchTask": "Compile"
44+
}
45+
]
46+
}

.vscode/settings.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"files.exclude": {
3+
"**/.git": true,
4+
"**/.svn": true,
5+
"**/.hg": true,
6+
"**/CVS": true,
7+
"**/.DS_Store": true
8+
},
9+
"search.exclude": {
10+
"**/lib": true,
11+
"**/bin": true
12+
},
13+
"editor.tabSize": 2,
14+
"editor.formatOnSave": true,
15+
"rewrap.wrappingColumn": 80
16+
}

0 commit comments

Comments
 (0)