-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
8965ded
commit 4b9343f
Showing
16 changed files
with
221 additions
and
297 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,17 +1,10 @@ | ||
const { awscdk, DependencyType } = require('projen'); | ||
|
||
const CDK_VERSION = '1.145.0'; | ||
const CONSTRUCT_VERSION = '3.3.69'; | ||
const { awscdk } = require('projen'); | ||
|
||
const project = new awscdk.AwsCdkConstructLibrary({ | ||
author: 'Ej Wang', | ||
authorAddress: '[email protected]', | ||
|
||
// stick to monocdk for now | ||
cdkVersion: CDK_VERSION, | ||
cdkAssertions: false, | ||
cdkAssert: false, | ||
cdkDependenciesAsDeps: false, | ||
cdkVersion: '2.10.0', | ||
|
||
autoApproveOptions: { | ||
allowedUsernames: ['flyingImer'], | ||
|
@@ -29,23 +22,13 @@ const project = new awscdk.AwsCdkConstructLibrary({ | |
// deps: [], /* Runtime dependencies of this module. */ | ||
description: 'Controlling concurrency in your distributed systems.', /* The description is just a string that helps people understand the purpose of the package. */ | ||
devDeps: [ | ||
`monocdk@${CDK_VERSION}`, | ||
`@monocdk-experiment/assert@${CDK_VERSION}`, | ||
`constructs@${CONSTRUCT_VERSION}`, | ||
'all-contributors-cli', // for contributors | ||
'@aws-cdk/aws-lambda-python-alpha', // for example/ | ||
], /* Build dependencies for this module. */ | ||
peerDeps: [ | ||
`monocdk@^${CDK_VERSION}`, | ||
], | ||
// packageName: undefined, /* The "name" in package.json. */ | ||
}); | ||
// remove all @aws-cdk deps to adopt monocdk | ||
project.deps.all.filter(dep => dep.name.includes('@aws-cdk')).forEach(dep => project.deps.removeDependency(dep.name)); | ||
project.deps.removeDependency('constructs', DependencyType.PEER); | ||
project.deps.addDependency(`constructs@^${CONSTRUCT_VERSION}`, DependencyType.PEER); | ||
|
||
project.tsconfigDev.addInclude('example/**/*.ts'); | ||
// project.gitignore.exclude('.env'); | ||
project.gitignore.exclude('example/**/*.js', 'example/**/*.d.ts', 'example/cdk.out'); | ||
|
||
// for contributors | ||
|
Oops, something went wrong.