Skip to content

Commit 5b3a053

Browse files
author
DIR\luca.bassani
committed
feat: initial commit
0 parents  commit 5b3a053

65 files changed

Lines changed: 10520 additions & 0 deletions

Some content is hidden

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

.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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
extends: ['eslint-config-salesforce-typescript', 'plugin:sf-plugin/recommended'],
3+
root: true,
4+
};
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: 'feat: [FEATURE NAME]'
5+
labels: enhancement
6+
assignees: baslu93
7+
---
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.
17+
18+
---

.github/ISSUE_TEMPLATE/issue.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
name: Log a bug
3+
about: Create a report to help us improve
4+
title: 'bug: [BUG NAME]'
5+
labels: bug
6+
assignees: baslu93
7+
---
8+
9+
### Description
10+
11+
**What is the problem** <br>
12+
Provide a clear and concise description of what the problem is.
13+
14+
**What are the parameters and values you used with it?** <br>
15+
Provide the command and the parameters you used
16+
17+
**What is the expected result?** <br>
18+
Provide the expected output of the command
19+
20+
**What is the actual result?** <br>
21+
Provide the actual output of the command (with screenshots if needed)
22+
23+
**Steps to reproduce** <br>
24+
This is step 1. <br>
25+
This is step 2.
26+
27+
### Context
28+
29+
- **Operating System:**
30+
- **Yarn version:**
31+
- **Node version:**
32+
- **Salesforce cli version:**
33+
- **Plugin version:**

.github/actions/install/action.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Install
2+
description: Install dependencies
3+
4+
runs:
5+
using: composite
6+
steps:
7+
- name: Get yarn cache directory path
8+
id: yarn-cache-dir-path
9+
run: echo "yarn-cache=$(yarn config get cacheFolder)" >> "$GITHUB_OUTPUT"
10+
shell: bash
11+
12+
- uses: actions/cache@v3
13+
with:
14+
path: ${{ steps.yarn-cache-dir-path.outputs.yarn-cache }}
15+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
16+
17+
- name: Install dependencies
18+
run: yarn install --immutable --check-cache
19+
shell: bash
20+
env:
21+
HUSKY: '0' # By default do not run HUSKY install

.github/dependabot.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: 'npm'
4+
directory: '/'
5+
schedule:
6+
interval: 'weekly'
7+
day: 'saturday'
8+
versioning-strategy: 'increase'
9+
labels:
10+
- 'dependencies'
11+
open-pull-requests-limit: 5
12+
pull-request-branch-name:
13+
separator: '-'
14+
commit-message:
15+
# cause a release for non-dev-deps
16+
prefix: fix(deps)
17+
# no release for dev-deps
18+
prefix-development: chore(dev-deps)
19+
ignore:
20+
- dependency-name: '@salesforce/dev-scripts'
21+
- dependency-name: '*'
22+
update-types: ['version-update:semver-major']

.github/pull_request_template.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<!--
2+
Thank you very much for your contribution!
3+
Please make sure to link an issue in "Development" (sidebar)
4+
-->
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Pull Request
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
paths-ignore: ['**.md', 'img/**']
7+
8+
concurrency:
9+
group: ${{ github.ref }}-${{ github.workflow }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
pull-request-lint:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Lint PR
17+
uses: amannn/action-semantic-pull-request@v5
18+
env:
19+
GITHUB_TOKEN: ${{ github.token }}
20+
21+
build:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Checkout sources
25+
uses: actions/checkout@v3
26+
27+
- name: Install Salesforce CLI
28+
run: npm install @salesforce/cli --global
29+
30+
- name: Install plugin
31+
run: |
32+
sf plugins link .
33+
sf plugins
34+
35+
- name: Unit test
36+
run: yarn test:only:coverage

.github/workflows/onPushToMain.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Publish Release
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
permissions:
8+
contents: write
9+
pull-requests: write
10+
11+
jobs:
12+
prepare-release:
13+
runs-on: ubuntu-latest
14+
outputs:
15+
release_created: ${{ steps.release.outputs.release_created }}
16+
version: ${{ steps.release.outputs.version }}
17+
steps:
18+
- uses: google-github-actions/release-please-action@v3
19+
id: release
20+
with:
21+
release-type: node
22+
package-name: check-workflow2
23+
24+
release:
25+
needs: prepare-release
26+
runs-on: ubuntu-latest
27+
if: needs.prepare-release.outputs.release_created == 'true'
28+
steps:
29+
- name: Checkout sources
30+
uses: actions/checkout@v3
31+
32+
- name: Setup node
33+
uses: actions/setup-node@v3
34+
with:
35+
node-version: 16
36+
registry-url: 'https://registry.npmjs.org'
37+
38+
- name: Setup dependencies, cache and install
39+
uses: ./.github/actions/install
40+
41+
- name: Publish to npm
42+
run: yarn publish --access public --tag latest-rc
43+
env:
44+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
45+
46+
- name: Communication
47+
uses: apexskier/github-release-commenter@v1
48+
with:
49+
GITHUB_TOKEN: ${{ github.token }}
50+
comment-template: |
51+
Shipped in ${{ needs.prepare-release.outputs.version }}
52+
You can install the new version using the version number or the `latest-rc` channel
53+
```sh
54+
$ sf plugins install plugin-analytics-connected-objects@latest-rc
55+
$ sf plugins install plugin-analytics-connected-objects@${{ needs.prepare-release.outputs.version }}
56+
```

.gitignore

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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+
*.tsbuildinfo
35+
.eslintcache
36+
.wireit
37+
node_modules
38+
39+
# --
40+
# put files here you don't want cleaned with sf-clean
41+
42+
# os specific files
43+
.DS_Store
44+
.idea
45+
46+
oclif.manifest.json

0 commit comments

Comments
 (0)