-
Notifications
You must be signed in to change notification settings - Fork 8
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
Showing
20 changed files
with
7,279 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 [email protected] | ||
- name: Anti-tamper check | ||
run: git diff --exit-code | ||
- name: Set git identity | ||
run: |- | ||
git config user.name "Auto-bump" | ||
git config user.email "[email protected]" | ||
- 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 [email protected] | ||
- 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 [email protected] | ||
- name: Anti-tamper check | ||
run: git diff --exit-code | ||
- name: Set git identity | ||
run: |- | ||
git config user.name "Auto-bump" | ||
git config user.email "[email protected]" | ||
- 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/[email protected] | ||
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,62 @@ | ||
# ~~ 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.out | ||
cdk.context.json | ||
images | ||
yarn-error.log | ||
!/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,22 @@ | ||
# ~~ 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.out | ||
cdk.context.json | ||
images | ||
yarn-error.log | ||
!/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,51 @@ | ||
const { | ||
ConstructLibraryAws, | ||
} = require('projen'); | ||
|
||
const AWS_CDK_LATEST_RELEASE = '1.62.0'; | ||
const PROJECT_NAME = 'cdk-remote-stack'; | ||
const PROJECT_DESCRIPTION = 'Get outputs from cross-regional AWS CDK stacks'; | ||
|
||
const project = new ConstructLibraryAws({ | ||
authorName: "Pahud Hsieh", | ||
authorEmail: "[email protected]", | ||
name: PROJECT_NAME, | ||
description: PROJECT_DESCRIPTION, | ||
repository: "https://github.com/pahud/cdk-remote-stack.git", | ||
keywords: [ | ||
'aws', | ||
'remote', | ||
'cross-region', | ||
'cross-stack', | ||
'cross-account' | ||
], | ||
|
||
catalog: { | ||
twitter: 'pahudnet', | ||
announce: false | ||
}, | ||
|
||
// creates PRs for projen upgrades | ||
projenUpgradeSecret: 'PROJEN_GITHUB_TOKEN', | ||
|
||
cdkVersion: AWS_CDK_LATEST_RELEASE, | ||
cdkDependencies: [ | ||
'@aws-cdk/core', | ||
'@aws-cdk/aws-iam', | ||
'@aws-cdk/aws-lambda', | ||
'@aws-cdk/aws-logs', | ||
'@aws-cdk/aws-sns', | ||
'@aws-cdk/custom-resources', | ||
], | ||
|
||
python: { | ||
distName: 'cdk-remote-stack', | ||
module: 'cdk_remote_stack' | ||
} | ||
}); | ||
|
||
const common_exclude = ['cdk.out', 'cdk.context.json', 'images', 'yarn-error.log']; | ||
project.npmignore.exclude(...common_exclude); | ||
project.gitignore.exclude(...common_exclude); | ||
|
||
project.synth(); |
Oops, something went wrong.