Skip to content

Commit fdaed7a

Browse files
committed
v0.1.0
0 parents  commit fdaed7a

35 files changed

+13749
-0
lines changed

.editorconfig

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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

.eslintrc.json

+88
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
{
2+
"env": {
3+
"jest": true,
4+
"node": true
5+
},
6+
"plugins": [
7+
"@typescript-eslint",
8+
"import"
9+
],
10+
"parser": "@typescript-eslint/parser",
11+
"parserOptions": {
12+
"ecmaVersion": 2018,
13+
"sourceType": "module"
14+
},
15+
"extends": [
16+
"plugin:import/typescript"
17+
],
18+
"settings": {
19+
"import/parsers": {
20+
"@typescript-eslint/parser": [
21+
".ts",
22+
".tsx"
23+
]
24+
},
25+
"import/resolver": {
26+
"node": {},
27+
"typescript": {
28+
"directory": "./tsconfig.json"
29+
}
30+
}
31+
},
32+
"ignorePatterns": [
33+
"*.js",
34+
"*.d.ts",
35+
"node_modules/",
36+
"*.generated.ts",
37+
"coverage",
38+
"dist",
39+
"cdk.out",
40+
"lib",
41+
".github"
42+
],
43+
"rules": {
44+
"@typescript-eslint/no-require-imports": [
45+
"error"
46+
],
47+
"indent": [
48+
"off"
49+
],
50+
"@typescript-eslint/indent": [
51+
"error",
52+
2
53+
],
54+
"quotes": [
55+
"error",
56+
"single",
57+
{
58+
"avoidEscape": true
59+
}
60+
],
61+
"comma-dangle": [
62+
"error",
63+
"always-multiline"
64+
],
65+
"quote-props": [
66+
"error",
67+
"consistent-as-needed",
68+
{
69+
"unnecessary": true
70+
}
71+
],
72+
"import/no-extraneous-dependencies": [
73+
"error",
74+
{
75+
"devDependencies": [
76+
"**/build-tools/**",
77+
"**/test/**",
78+
"**/lambda-fns/**/*.ts"
79+
],
80+
"optionalDependencies": false,
81+
"peerDependencies": true
82+
}
83+
],
84+
"import/no-unresolved": [
85+
"error"
86+
]
87+
}
88+
}

.github/dependabot.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".
2+
3+
version: 2
4+
updates:
5+
- package-ecosystem: npm
6+
versioning-strategy: lockfile-only
7+
directory: /
8+
schedule:
9+
interval: daily
10+
ignore:
11+
- dependency-name: projen

.github/workflows/build.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".
2+
name: Build
3+
on:
4+
pull_request: {}
5+
push: {}
6+
workflow_dispatch: {}
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v1
13+
with:
14+
node-version: 10.17.0
15+
- run: npx [email protected]
16+
- run: yarn install --frozen-lockfile
17+
- name: Anti-tamper check
18+
run: git diff --exit-code
19+
- name: Set git identity
20+
run: |-
21+
git config user.name "Auto-bump"
22+
git config user.email "[email protected]"
23+
- run: yarn build
24+
- name: Anti-tamper check
25+
run: git diff --exit-code
26+
container:
27+
image: jsii/superchain

.github/workflows/release.yml

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".
2+
name: Release
3+
on:
4+
push:
5+
branches:
6+
- master
7+
workflow_dispatch: {}
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-node@v1
14+
with:
15+
node-version: 10.17.0
16+
- run: npx [email protected]
17+
- run: yarn install --frozen-lockfile
18+
- name: Anti-tamper check
19+
run: git diff --exit-code
20+
- name: Set git identity
21+
run: |-
22+
git config user.name "Auto-bump"
23+
git config user.email "[email protected]"
24+
- run: yarn bump
25+
- run: yarn build
26+
- name: Anti-tamper check
27+
run: git diff --exit-code
28+
- run: git push --follow-tags origin $GITHUB_REF
29+
- name: Upload artifact
30+
uses: actions/[email protected]
31+
with:
32+
name: dist
33+
path: dist
34+
container:
35+
image: jsii/superchain
36+
release_npm:
37+
name: Release to NPM
38+
needs: build
39+
runs-on: ubuntu-latest
40+
container:
41+
image: jsii/superchain
42+
steps:
43+
- name: Download build artifacts
44+
uses: actions/download-artifact@v1
45+
with:
46+
name: dist
47+
- name: Release
48+
run: npx -p jsii-release jsii-release-npm
49+
env:
50+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
51+
NPM_DIST_TAG: latest
52+
release_pypi:
53+
name: Release to PyPi
54+
needs: build
55+
runs-on: ubuntu-latest
56+
container:
57+
image: jsii/superchain
58+
steps:
59+
- name: Download build artifacts
60+
uses: actions/download-artifact@v1
61+
with:
62+
name: dist
63+
- name: Release
64+
run: npx -p jsii-release jsii-release-pypi
65+
env:
66+
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
67+
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}

.gitignore

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".
2+
# Logs
3+
logs
4+
*.log
5+
npm-debug.log*
6+
yarn-debug.log*
7+
yarn-error.log*
8+
lerna-debug.log*
9+
# Diagnostic reports (https://nodejs.org/api/report.html)
10+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11+
# Runtime data
12+
pids
13+
*.pid
14+
*.seed
15+
*.pid.lock
16+
# Directory for instrumented libs generated by jscoverage/JSCover
17+
lib-cov
18+
# Coverage directory used by tools like istanbul
19+
coverage
20+
*.lcov
21+
# nyc test coverage
22+
.nyc_output
23+
# Compiled binary addons (https://nodejs.org/api/addons.html)
24+
build/Release
25+
# Dependency directories
26+
node_modules/
27+
jspm_packages/
28+
# TypeScript cache
29+
*.tsbuildinfo
30+
# Optional eslint cache
31+
.eslintcache
32+
# Output of 'npm pack'
33+
*.tgz
34+
# Yarn Integrity file
35+
.yarn-integrity
36+
# parcel-bundler cache (https://parceljs.org/)
37+
.cache
38+
/lib
39+
/dist
40+
/coverage
41+
.jsii
42+
tsconfig.json
43+
.DS_Store
44+
cdk.out
45+
cdk.context.json
46+
!/package.json
47+
!/.npmignore
48+
!/LICENSE
49+
!/.projenrc.js
50+
!version.json
51+
!/.versionrc.json
52+
!/.github/workflows/build.yml
53+
!/.github/workflows/release.yml
54+
!/.mergify.yml
55+
!/.github/dependabot.yml
56+
!/src
57+
!/.eslintrc.json
58+
!/tsconfig.jest.json
59+
!/test
60+
!/API.md

.mergify.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".
2+
3+
pull_request_rules:
4+
- name: Automatic merge on approval and successful build
5+
conditions:
6+
- "#approved-reviews-by>=1"
7+
- status-success=build
8+
actions:
9+
merge:
10+
method: squash
11+
commit_message: title+body
12+
strict: smart
13+
strict_method: merge
14+
delete_head_branch: {}
15+
- name: Merge pull requests from dependabot if CI passes
16+
conditions:
17+
- author=dependabot[bot]
18+
- status-success=build
19+
actions:
20+
merge:
21+
method: merge
22+
commit_message: title+body

.npmignore

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".
2+
/.projenrc.js
3+
/.versionrc.json
4+
/.mergify.yml
5+
/src
6+
dist
7+
/tsconfig.json
8+
/.github
9+
/.vscode
10+
/.projenrc.js
11+
/.eslintrc.json
12+
/tsconfig.jest.json
13+
/coverage
14+
/test
15+
!/lib
16+
!/lib/**/*.js
17+
!/lib/**/*.d.ts
18+
!.jsii

.prettierrc

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"singleQuote": true,
3+
"trailingComma": "all",
4+
"tabWidth": 2,
5+
"useTabs": false
6+
}

0 commit comments

Comments
 (0)