This repository has been archived by the owner on Jun 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Elad Ben-Israel
committed
Apr 25, 2021
1 parent
2696443
commit 6e12041
Showing
26 changed files
with
7,597 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,230 @@ | ||
{ | ||
"env": { | ||
"jest": true, | ||
"node": true | ||
}, | ||
"root": true, | ||
"plugins": [ | ||
"@typescript-eslint", | ||
"import" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": 2018, | ||
"sourceType": "module", | ||
"project": "./tsconfig.eslint.json" | ||
}, | ||
"extends": [ | ||
"plugin:import/typescript" | ||
], | ||
"settings": { | ||
"import/parsers": { | ||
"@typescript-eslint/parser": [ | ||
".ts", | ||
".tsx" | ||
] | ||
}, | ||
"import/resolver": { | ||
"node": {}, | ||
"typescript": { | ||
"project": "./tsconfig.eslint.json" | ||
} | ||
} | ||
}, | ||
"ignorePatterns": [ | ||
"*.js", | ||
"!.projenrc.js", | ||
"*.d.ts", | ||
"node_modules/", | ||
"*.generated.ts", | ||
"coverage" | ||
], | ||
"rules": { | ||
"@typescript-eslint/no-require-imports": [ | ||
"error" | ||
], | ||
"indent": [ | ||
"off" | ||
], | ||
"@typescript-eslint/indent": [ | ||
"error", | ||
2 | ||
], | ||
"quotes": [ | ||
"error", | ||
"single", | ||
{ | ||
"avoidEscape": true | ||
} | ||
], | ||
"comma-dangle": [ | ||
"error", | ||
"always-multiline" | ||
], | ||
"comma-spacing": [ | ||
"error", | ||
{ | ||
"before": false, | ||
"after": true | ||
} | ||
], | ||
"no-multi-spaces": [ | ||
"error", | ||
{ | ||
"ignoreEOLComments": false | ||
} | ||
], | ||
"array-bracket-spacing": [ | ||
"error", | ||
"never" | ||
], | ||
"array-bracket-newline": [ | ||
"error", | ||
"consistent" | ||
], | ||
"object-curly-spacing": [ | ||
"error", | ||
"always" | ||
], | ||
"object-curly-newline": [ | ||
"error", | ||
{ | ||
"multiline": true, | ||
"consistent": true | ||
} | ||
], | ||
"object-property-newline": [ | ||
"error", | ||
{ | ||
"allowAllPropertiesOnSameLine": true | ||
} | ||
], | ||
"keyword-spacing": [ | ||
"error" | ||
], | ||
"brace-style": [ | ||
"error", | ||
"1tbs", | ||
{ | ||
"allowSingleLine": true | ||
} | ||
], | ||
"space-before-blocks": [ | ||
"error" | ||
], | ||
"curly": [ | ||
"error", | ||
"multi-line", | ||
"consistent" | ||
], | ||
"@typescript-eslint/member-delimiter-style": [ | ||
"error" | ||
], | ||
"import/no-extraneous-dependencies": [ | ||
"error", | ||
{ | ||
"devDependencies": [ | ||
"**/src/__tests__/**", | ||
"**/build-tools/**" | ||
], | ||
"optionalDependencies": false, | ||
"peerDependencies": true | ||
} | ||
], | ||
"import/no-unresolved": [ | ||
"error" | ||
], | ||
"import/order": [ | ||
"warn", | ||
{ | ||
"groups": [ | ||
"builtin", | ||
"external" | ||
], | ||
"alphabetize": { | ||
"order": "asc", | ||
"caseInsensitive": true | ||
} | ||
} | ||
], | ||
"no-duplicate-imports": [ | ||
"error" | ||
], | ||
"no-shadow": [ | ||
"off" | ||
], | ||
"@typescript-eslint/no-shadow": [ | ||
"error" | ||
], | ||
"key-spacing": [ | ||
"error" | ||
], | ||
"semi": [ | ||
"error", | ||
"always" | ||
], | ||
"quote-props": [ | ||
"error", | ||
"consistent-as-needed" | ||
], | ||
"no-multiple-empty-lines": [ | ||
"error" | ||
], | ||
"max-len": [ | ||
"error", | ||
{ | ||
"code": 150, | ||
"ignoreUrls": true, | ||
"ignoreStrings": true, | ||
"ignoreTemplateLiterals": true, | ||
"ignoreComments": true, | ||
"ignoreRegExpLiterals": true | ||
} | ||
], | ||
"@typescript-eslint/no-floating-promises": [ | ||
"error" | ||
], | ||
"no-return-await": [ | ||
"off" | ||
], | ||
"@typescript-eslint/return-await": [ | ||
"error" | ||
], | ||
"no-trailing-spaces": [ | ||
"error" | ||
], | ||
"dot-notation": [ | ||
"error" | ||
], | ||
"no-bitwise": [ | ||
"error" | ||
], | ||
"@typescript-eslint/member-ordering": [ | ||
"error", | ||
{ | ||
"default": [ | ||
"public-static-field", | ||
"public-static-method", | ||
"protected-static-field", | ||
"protected-static-method", | ||
"private-static-field", | ||
"private-static-method", | ||
"field", | ||
"constructor", | ||
"method" | ||
] | ||
} | ||
] | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": [ | ||
".projenrc.js" | ||
], | ||
"rules": { | ||
"@typescript-eslint/no-require-imports": "off", | ||
"import/no-extraneous-dependencies": "off" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: npm | ||
versioning-strategy: lockfile-only | ||
directory: / | ||
schedule: | ||
interval: daily | ||
ignore: | ||
- dependency-name: projen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Fixes # |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". | ||
|
||
name: Build | ||
on: | ||
pull_request: {} | ||
workflow_dispatch: {} | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
CI: "true" | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
repository: ${{ github.event.pull_request.head.repo.full_name }} | ||
- name: Install dependencies | ||
run: yarn install --check-files --frozen-lockfile | ||
- name: Set git identity | ||
run: |- | ||
git config user.name "Automation" | ||
git config user.email "github-actions@github.com" | ||
- name: Build | ||
run: npx projen build | ||
- name: Commit and push changes (if any) | ||
run: 'git diff --exit-code || (git commit -am "chore: self mutation" && git push | ||
origin HEAD:${{ github.event.pull_request.head.ref }})' | ||
- if: ${{ github.repository == github.event.pull_request.head.repo.full_name }} | ||
name: Update status check | ||
run: gh api -X POST /repos/${{ github.event.pull_request.head.repo.full_name | ||
}}/check-runs -F name="build" -F head_sha="$(git rev-parse HEAD)" -F | ||
status="completed" -F conclusion="success" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
container: | ||
image: jsii/superchain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". | ||
|
||
name: Release | ||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: {} | ||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
env: | ||
CI: "true" | ||
RELEASE: "true" | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Install dependencies | ||
run: yarn install --check-files --frozen-lockfile | ||
- name: Anti-tamper check | ||
run: git diff --ignore-space-at-eol --exit-code | ||
- name: Set git identity | ||
run: |- | ||
git config user.name "Automation" | ||
git config user.email "github-actions@github.com" | ||
- name: Bump to next version | ||
run: npx projen bump | ||
- name: Build | ||
run: npx projen build | ||
- name: Check for new commits | ||
id: git_remote | ||
run: echo ::set-output name=latest_commit::"$(git ls-remote origin -h ${{ | ||
github.ref }} | cut -f1)" | ||
- name: Create release | ||
if: ${{ steps.git_remote.outputs.latest_commit == github.sha }} | ||
run: gh release create v$(node -p "require('./package.json').version") -F | ||
.changelog.tmp.md -t v$(node -p "require('./package.json').version") | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Unbump | ||
run: npx projen unbump | ||
- name: Upload artifact | ||
if: ${{ steps.git_remote.outputs.latest_commit == github.sha }} | ||
uses: actions/upload-artifact@v2.1.1 | ||
with: | ||
name: dist | ||
path: dist | ||
- name: Anti-tamper check | ||
run: git diff --ignore-space-at-eol --exit-code | ||
container: | ||
image: jsii/superchain | ||
release_npm: | ||
name: Release to NPM | ||
needs: release | ||
runs-on: ubuntu-latest | ||
container: | ||
image: jsii/superchain | ||
steps: | ||
- name: Download build artifacts | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: dist | ||
path: dist | ||
- name: Release | ||
run: npx -p jsii-release@latest jsii-release-npm | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
NPM_DIST_TAG: latest | ||
NPM_REGISTRY: registry.npmjs.org |
Oops, something went wrong.