Skip to content

Commit

Permalink
Merge pull request #67 from mbonig/feat/asg
Browse files Browse the repository at this point in the history
adding ASG construct
  • Loading branch information
mbonig committed Feb 12, 2021
2 parents 3c3ae92 + 251c42e commit d8bafb7
Show file tree
Hide file tree
Showing 28 changed files with 2,025 additions and 1,346 deletions.
Binary file added .DS_Store
Binary file not shown.
24 changes: 18 additions & 6 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"project": "./tsconfig.jest.json"
"project": "./tsconfig.eslint.json"
},
"extends": [
"plugin:import/typescript"
Expand All @@ -27,12 +27,13 @@
"import/resolver": {
"node": {},
"typescript": {
"directory": "./tsconfig.json"
"project": "./tsconfig.eslint.json"
}
}
},
"ignorePatterns": [
"*.js",
"!.projenrc.js",
"*.d.ts",
"node_modules/",
"*.generated.ts",
Expand Down Expand Up @@ -123,8 +124,8 @@
"error",
{
"devDependencies": [
"**/build-tools/**",
"**/test/**"
"**/test/**",
"**/build-tools/**"
],
"optionalDependencies": false,
"peerDependencies": true
Expand Down Expand Up @@ -214,5 +215,16 @@
]
}
]
}
}
},
"overrides": [
{
"files": [
".projenrc.js"
],
"rules": {
"@typescript-eslint/no-require-imports": "off",
"import/no-extraneous-dependencies": "off"
}
}
]
}
13 changes: 9 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".

name: Build
on:
pull_request: {}
Expand All @@ -9,13 +10,17 @@ jobs:
env:
CI: "true"
steps:
- uses: actions/checkout@v2
- run: yarn install --frozen-lockfile
- run: yarn projen
- name: Checkout
uses: actions/checkout@v2
- name: Install dependencies
run: yarn install --check-files --frozen-lockfile
- name: Synthesize project files
run: npx projen
- name: Set git identity
run: |-
git config user.name "Auto-bump"
git config user.email "github-actions@github.com"
- run: yarn run build
- name: Build
run: npx projen build
container:
image: jsii/superchain
58 changes: 58 additions & 0 deletions .github/workflows/rebuild-bot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".

name: rebuild-bot
on:
issue_comment:
types:
- created
workflow_dispatch: {}
jobs:
build:
runs-on: ubuntu-latest
env:
CI: "true"
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body,
'@projen rebuild') }}
steps:
- name: Post comment to issue
uses: peter-evans/create-or-update-comment@v1
with:
issue-number: ${{ github.event.issue.number }}
body: "_projen_: Rebuild started"
- name: Get pull request branch
id: query_pull_request
env:
PULL_REQUEST_URL: ${{ github.event.issue.pull_request.url }}
run: |-
rm -f /tmp/pr.json
curl --silent $PULL_REQUEST_URL > /tmp/pr.json
BRANCH_STR=$(cat /tmp/pr.json | jq ".head.ref")
REPO_NAME=$(cat /tmp/pr.json | jq ".head.repo.full_name")
echo "::set-output name=branch::$(node -p $BRANCH_STR)"
echo "::set-output name=repo::$(node -p $REPO_NAME)"
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ steps.query_pull_request.outputs.branch }}
repository: ${{ steps.query_pull_request.outputs.repo }}
- name: Install dependencies
run: yarn install --check-files --frozen-lockfile
- name: Synthesize project files
run: npx projen
- name: Set git identity
run: |-
git config user.name "Auto-bump"
git config user.email "github-actions@github.com"
- name: Build
run: npx projen build
- name: Commit changes
run: 'git commit -am "chore: update generated files"'
- name: Push changes
run: git push --follow-tags origin $BRANCH
env:
BRANCH: ${{ steps.query_pull_request.outputs.branch }}
- name: Post comment to issue
uses: peter-evans/create-or-update-comment@v1
with:
issue-number: ${{ github.event.issue.number }}
body: "_projen_: Rebuild complete. Updates pushed to pull request branch."
88 changes: 39 additions & 49 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,65 +1,55 @@
# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".
# Logs
logs
*.lcov
*.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
*.seed
*.tgz
*.tsbuildinfo
# Optional eslint cache
.cache
.cdk.staging/
.eslintcache
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.idea/
.jsii
.nyc_output
.parcel-cache/
.yarn-integrity
# parcel-bundler cache (https://parceljs.org/)
.cache
# jest-junit artifacts
/test-reports/
junit.xml
/coverage
/lib
/dist
.jsii
tsconfig.json
/lib
/test-reports/
build/Release
cdk.context.json
.cdk.staging/
.idea/
.parcel-cache/
cdk.out/
!/package.json
coverage
jspm_packages/
junit.xml
lerna-debug.log*
lib-cov
logs
node_modules/
npm-debug.log*
pids
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
tsconfig.json
yarn-debug.log*
yarn-error.log*
!/.eslintrc.json
!/.github/dependabot.yml
!/.github/pull_request_template.md
!/.github/workflows/build.yml
!/.github/workflows/rebuild-bot.yml
!/.mergify.yml
!/.npmignore
!/LICENSE
!/.projen/deps.json
!/.projen/tasks.json
!/.projenrc.js
!version.json
!/.versionrc.json
!/test
!/.github/workflows/build.yml
!/.mergify.yml
!/.github/dependabot.yml
!/.github/pull_request_template.md
!/API.md
!/LICENSE
!/package.json
!/src
!/test
!/tsconfig.eslint.json
!/tsconfig.jest.json
!/.eslintrc.json
!/API.md
!version.json
33 changes: 18 additions & 15 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,25 +1,28 @@
# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".
.cdk.staging/
.idea/
.parcel-cache/
/.eslintrc.json
/.github
/.idea
/.mergify.yml
/.projen
/.projenrc.js
/.versionrc.json
/.vscode
/coverage
/test
/.mergify.yml
/src
dist
/tsconfig.json
/.github
/.vscode
/.idea
/.projenrc.js
/test
/test-reports/
/tsconfig.eslint.json
/tsconfig.jest.json
/.eslintrc.json
/tsconfig.json
cdk.context.json
.cdk.staging/
.idea/
.parcel-cache/
cdk.out/
dist
junit.xml
!.jsii
!/lib
!/lib/**/*.js
!/lib/**/*.d.ts
!.jsii
!lib/*.handler.ts
!/lib/**/*.js
!lib/*.handler.ts
Loading

0 comments on commit d8bafb7

Please sign in to comment.