-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
0 parents
commit a240802
Showing
22 changed files
with
7,691 additions
and
0 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,83 @@ | ||
{ | ||
"env": { | ||
"jest": true, | ||
"node": true | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint", | ||
"import" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": 2018, | ||
"sourceType": "module" | ||
}, | ||
"extends": [ | ||
"plugin:import/typescript" | ||
], | ||
"settings": { | ||
"import/parsers": { | ||
"@typescript-eslint/parser": [ | ||
".ts", | ||
".tsx" | ||
] | ||
}, | ||
"import/resolver": { | ||
"node": {}, | ||
"typescript": { | ||
"directory": "./tsconfig.json" | ||
} | ||
} | ||
}, | ||
"ignorePatterns": [ | ||
"*.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" | ||
], | ||
"quote-props": [ | ||
"error", | ||
"consistent-as-needed", | ||
{ | ||
"unnecessary": true | ||
} | ||
], | ||
"import/no-extraneous-dependencies": [ | ||
"error", | ||
{ | ||
"devDependencies": [ | ||
"**/build-tools/**", | ||
"**/test/**" | ||
], | ||
"optionalDependencies": false, | ||
"peerDependencies": true | ||
} | ||
], | ||
"import/no-unresolved": [ | ||
"error" | ||
] | ||
} | ||
} |
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,27 @@ | ||
# ~~ 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: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 10.17.0 | ||
- run: npx projen@0.3.65 | ||
- name: Anti-tamper check | ||
run: git diff --exit-code | ||
- name: Set git identity | ||
run: |- | ||
git config user.name "Auto-bump" | ||
git config user.email "github-actions@github.com" | ||
- run: yarn build | ||
- name: Anti-tamper check | ||
run: git diff --exit-code | ||
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,26 @@ | ||
# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". | ||
name: ProjenUpgrade | ||
on: | ||
schedule: | ||
- cron: 0 6 * * * | ||
workflow_dispatch: {} | ||
jobs: | ||
upgrade: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 10.17.0 | ||
- run: npx projen@0.3.65 | ||
- name: Anti-tamper check | ||
run: git diff --exit-code | ||
- run: yarn projen:upgrade | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
token: ${{ secrets.PROJEN_GITHUB_TOKEN }} | ||
commit-message: "chore: upgrade projen" | ||
branch: auto/projen-upgrade | ||
title: "chore: upgrade projen" | ||
body: This PR upgrades projen to the latest version |
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,68 @@ | ||
# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". | ||
name: Release | ||
on: | ||
push: | ||
branches: | ||
- master | ||
workflow_dispatch: {} | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
CI: "true" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 10.17.0 | ||
- run: npx projen@0.3.65 | ||
- name: Anti-tamper check | ||
run: git diff --exit-code | ||
- name: Set git identity | ||
run: |- | ||
git config user.name "Auto-bump" | ||
git config user.email "github-actions@github.com" | ||
- run: yarn bump | ||
- run: yarn build | ||
- name: Anti-tamper check | ||
run: git diff --exit-code | ||
- run: git push --follow-tags origin $GITHUB_REF | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v2.1.1 | ||
with: | ||
name: dist | ||
path: dist | ||
container: | ||
image: jsii/superchain | ||
release_npm: | ||
name: Release to NPM | ||
needs: build | ||
runs-on: ubuntu-latest | ||
container: | ||
image: jsii/superchain | ||
steps: | ||
- name: Download build artifacts | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: dist | ||
- name: Release | ||
run: npx -p jsii-release jsii-release-npm | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
NPM_DIST_TAG: latest | ||
release_pypi: | ||
name: Release to PyPi | ||
needs: build | ||
runs-on: ubuntu-latest | ||
container: | ||
image: jsii/superchain | ||
steps: | ||
- name: Download build artifacts | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: dist | ||
- name: Release | ||
run: npx -p jsii-release jsii-release-pypi | ||
env: | ||
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }} | ||
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} |
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,61 @@ | ||
# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
lerna-debug.log* | ||
# Diagnostic reports (https://nodejs.org/api/report.html) | ||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json | ||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
# Coverage directory used by tools like istanbul | ||
coverage | ||
*.lcov | ||
# nyc test coverage | ||
.nyc_output | ||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
# TypeScript cache | ||
*.tsbuildinfo | ||
# Optional eslint cache | ||
.eslintcache | ||
# Output of 'npm pack' | ||
*.tgz | ||
# Yarn Integrity file | ||
.yarn-integrity | ||
# parcel-bundler cache (https://parceljs.org/) | ||
.cache | ||
/lib | ||
/dist | ||
/coverage | ||
.jsii | ||
tsconfig.json | ||
cdk.context.json | ||
cdk.out | ||
venv | ||
!/package.json | ||
!/.npmignore | ||
!/LICENSE | ||
!/.projenrc.js | ||
!version.json | ||
!/.versionrc.json | ||
!/.github/workflows/build.yml | ||
!/.github/workflows/release.yml | ||
!/.mergify.yml | ||
!/.github/dependabot.yml | ||
!/.github/workflows/projenupgrade.yml | ||
!/src | ||
!/.eslintrc.json | ||
!/tsconfig.jest.json | ||
!/test | ||
!/API.md |
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,22 @@ | ||
# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". | ||
|
||
pull_request_rules: | ||
- name: Automatic merge on approval and successful build | ||
conditions: | ||
- "#approved-reviews-by>=1" | ||
- status-success=build | ||
actions: | ||
merge: | ||
method: squash | ||
commit_message: title+body | ||
strict: smart | ||
strict_method: merge | ||
delete_head_branch: {} | ||
- name: Merge pull requests from dependabot if CI passes | ||
conditions: | ||
- author=dependabot[bot] | ||
- status-success=build | ||
actions: | ||
merge: | ||
method: merge | ||
commit_message: title+body |
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,24 @@ | ||
# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". | ||
/.projenrc.js | ||
/.versionrc.json | ||
/.mergify.yml | ||
/src | ||
dist | ||
/tsconfig.json | ||
/.github | ||
/.vscode | ||
/.projenrc.js | ||
/.eslintrc.json | ||
/tsconfig.jest.json | ||
/coverage | ||
/test | ||
cdk.context.json | ||
cdk.out | ||
coverage | ||
yarn-error.log | ||
image | ||
venv | ||
!/lib | ||
!/lib/**/*.js | ||
!/lib/**/*.d.ts | ||
!.jsii |
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,45 @@ | ||
const { ConstructLibraryAws } = require('projen'); | ||
|
||
const PROJECT_NAME = 'cdk-aurora-globaldatabase'; | ||
const PROJECT_DESCRIPTION = 'cdk-aurora-globaldatabase is an AWS CDK construct library that provides Cross Region Create Global Aurora RDS Databases.'; | ||
|
||
const project = new ConstructLibraryAws({ | ||
name: PROJECT_NAME, | ||
description: PROJECT_DESCRIPTION, | ||
repository: 'https://github.com/guan840912/cdk-aurora-globaldatabase.git', | ||
authorName: 'Neil Kuan', | ||
authorEmail: 'guan840912@gmail.com', | ||
keywords: ['aws', 'cdk', 'rds', 'global'], | ||
catalog: { | ||
twitter: 'neil_kuan', | ||
announce: false, | ||
}, | ||
projenUpgradeSecret: 'PROJEN_GITHUB_TOKEN', | ||
cdkVersion: '1.63.0', | ||
cdkDependencies: [ | ||
'@aws-cdk/aws-iam', | ||
'@aws-cdk/aws-ec2', | ||
'@aws-cdk/aws-rds', | ||
'@aws-cdk/aws-lambda', | ||
'@aws-cdk/aws-logs', | ||
'@aws-cdk/core', | ||
'@aws-cdk/custom-resources', | ||
'@aws-cdk/aws-iam', | ||
], | ||
python: { | ||
distName: 'cdk-aurora-globaldatabase', | ||
module: 'cdk_aurora_globaldatabase', | ||
}, | ||
}); | ||
|
||
project.gitignore.exclude('cdk.context.json', 'cdk.out', 'venv'); | ||
|
||
project.npmignore.exclude( | ||
'cdk.context.json', | ||
'cdk.out', | ||
'coverage', | ||
'yarn-error.log', | ||
'image', | ||
'venv', | ||
); | ||
project.synth(); |
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,18 @@ | ||
{ | ||
"packageFiles": [ | ||
{ | ||
"filename": "version.json", | ||
"type": "json" | ||
} | ||
], | ||
"bumpFiles": [ | ||
{ | ||
"filename": "version.json", | ||
"type": "json" | ||
} | ||
], | ||
"commitAll": true, | ||
"scripts": { | ||
"postbump": "yarn projen && git add ." | ||
} | ||
} |
Oops, something went wrong.