Skip to content

Commit

Permalink
Merge pull request #12 from mbonig/mbonig-patch-1
Browse files Browse the repository at this point in the history
cdk bump
  • Loading branch information
mbonig committed Dec 29, 2020
2 parents b83d1f7 + 273074d commit 900e8a2
Show file tree
Hide file tree
Showing 10 changed files with 1,732 additions and 1,764 deletions.
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"jest": true,
"node": true
},
"root": true,
"plugins": [
"@typescript-eslint",
"import"
Expand Down
1 change: 1 addition & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixes #
12 changes: 3 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,12 @@ jobs:
CI: "true"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 10.17.0
- run: npx projen@0.3.84
- name: Anti-tamper check
run: git diff --exit-code
- run: yarn install --frozen-lockfile
- run: yarn projen
- 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
- run: yarn run build
container:
image: jsii/superchain
8 changes: 6 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,12 @@ jspm_packages/
.yarn-integrity
# parcel-bundler cache (https://parceljs.org/)
.cache
# jest-junit artifacts
/test-reports/
junit.xml
/coverage
/lib
/dist
/coverage
.jsii
tsconfig.json
cdk.context.json
Expand All @@ -51,11 +54,12 @@ cdk.out/
!/.projenrc.js
!version.json
!/.versionrc.json
!/test
!/.github/workflows/build.yml
!/.mergify.yml
!/.github/dependabot.yml
!/.github/pull_request_template.md
!/src
!/tsconfig.jest.json
!/test
!/.eslintrc.json
!/API.md
5 changes: 3 additions & 2 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".
/.projenrc.js
/.versionrc.json
/coverage
/test
/.mergify.yml
/src
dist
/tsconfig.json
/.github
/.vscode
/.idea
/.projenrc.js
/tsconfig.jest.json
/coverage
/test
/.eslintrc.json
cdk.context.json
.cdk.staging/
Expand Down
99 changes: 50 additions & 49 deletions .projenrc.js
Original file line number Diff line number Diff line change
@@ -1,60 +1,61 @@
const {AwsCdkConstructLibrary} = require('projen');
const { AwsCdkConstructLibrary } = require('projen');

let dependencies = {
"cdk-iam-floyd": "0.54.1"
};
let dependencies = [
'cdk-iam-floyd'
];
const project = new AwsCdkConstructLibrary({
name: "@matthewbonig/nightynight",
description: "A CDK construct that will automatically stop a running EC2 instance at a given time.",
authorAddress: "matthew.bonig@gmail.com",
authorName: "Matthew Bonig",
cdkVersion: "1.78.0",
repository: "https://github.com/mbonig/nightynight",
bin: {
"nightynight": "bin/nightynight.js"
},
dependencies: dependencies,
peerDependencies: dependencies,
devDependencies: {
"yarn": "1.22.10",
"esbuild": "^0.8.22"
},
cdkDependencies: [
"@aws-cdk/aws-ec2",
"@aws-cdk/aws-events",
"@aws-cdk/aws-events-targets",
"@aws-cdk/aws-iam",
"@aws-cdk/aws-lambda",
"@aws-cdk/aws-lambda-nodejs",
"@aws-cdk/core"
],
keywords: [
"cdk",
"ec2"
],
python: {
module: "mbonig.nightynight",
distName: "mbonig.nightynight"
},
dependabot: true,
buildWorkflow: true,
releaseWorkflow: false
name: '@matthewbonig/nightynight',
description: 'A CDK construct that will automatically stop a running EC2 instance at a given time.',
authorAddress: 'matthew.bonig@gmail.com',
authorName: 'Matthew Bonig',
cdkVersion: '1.80.0',
repository: 'https://github.com/mbonig/nightynight',
bin: {
'nightynight': 'bin/nightynight.js',
},
deps: dependencies,
peerDeps: dependencies,
devDeps: [
'yarn',
'esbuild',
],
cdkDependencies: [
'@aws-cdk/aws-ec2',
'@aws-cdk/aws-events',
'@aws-cdk/aws-events-targets',
'@aws-cdk/aws-iam',
'@aws-cdk/aws-lambda',
'@aws-cdk/aws-lambda-nodejs',
'@aws-cdk/core',
],
keywords: [
'cdk',
'ec2',
],
python: {
module: 'mbonig.nightynight',
distName: 'mbonig.nightynight',
},
dependabot: true,
buildWorkflow: true,
releaseWorkflow: false,
antitamper: false
});

project.addScript(
"compile", "jsii --silence-warnings=reserved-word --no-fix-peer-dependencies && jsii-docgen && cp src/nightynight.handler.ts lib/nightynight.handler.ts"
'compile', 'jsii --silence-warnings=reserved-word --no-fix-peer-dependencies && jsii-docgen && cp src/nightynight.handler.ts lib/nightynight.handler.ts',
);

project.addFields({
main: "lib/nightynight.js",
types: "lib/nightynight.d.ts",
awscdkio: {
twitter: "mattbonig"
},
public: true
main: 'lib/nightynight.js',
types: 'lib/nightynight.d.ts',
awscdkio: {
twitter: 'mattbonig',
},
public: true,
});

project.gitignore.exclude("cdk.context.json", ".cdk.staging/", ".idea/", ".parcel-cache/", "cdk.out/");
project.npmignore.exclude("cdk.context.json", ".cdk.staging/", ".idea/", ".parcel-cache/", "cdk.out/");
project.npmignore.include("lib/nightynight.handler.ts");
project.gitignore.exclude('cdk.context.json', '.cdk.staging/', '.idea/', '.parcel-cache/', 'cdk.out/');
project.npmignore.exclude('cdk.context.json', '.cdk.staging/', '.idea/', '.parcel-cache/', 'cdk.out/');
project.npmignore.include('lib/nightynight.handler.ts');
project.synth();
2 changes: 1 addition & 1 deletion .versionrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
],
"commitAll": true,
"scripts": {
"postbump": "yarn projen && git add ."
"postbump": "yarn run projen && git add ."
}
}
Loading

0 comments on commit 900e8a2

Please sign in to comment.