Skip to content

Commit 504b4cf

Browse files
committed
feat: init release
0 parents  commit 504b4cf

37 files changed

+13437
-0
lines changed

.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

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.cjs/

.eslintrc.cjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
extends: ['eslint-config-salesforce-typescript', 'plugin:sf-plugin/recommended'],
3+
root: true,
4+
rules: {
5+
header: 'off',
6+
},
7+
};

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.github/workflows/build.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Build
2+
on:
3+
push:
4+
branches-ignore:
5+
- main
6+
- beta
7+
8+
jobs:
9+
build:
10+
name: Build
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/[email protected]
16+
17+
- name: Setup Node
18+
uses: actions/[email protected]
19+
with:
20+
node-version: 18
21+
cache: yarn
22+
23+
- name: Install Dependencies
24+
run: yarn install
25+
26+
- name: Build
27+
run: yarn build
28+
29+
- name: Test
30+
run: yarn test

.github/workflows/release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- beta
7+
jobs:
8+
release:
9+
name: Release
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/[email protected]
14+
15+
- name: Setup Node
16+
uses: actions/[email protected]
17+
with:
18+
node-version: 18
19+
cache: yarn
20+
21+
- name: Install Dependencies
22+
run: yarn install
23+
24+
- name: Build
25+
run: yarn build
26+
27+
- name: Test
28+
run: yarn test
29+
30+
- name: Release
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
34+
run: npx semantic-release

.gitignore

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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
47+
48+
oclif.lock

.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 && yarn build

.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

0 commit comments

Comments
 (0)