Skip to content

Commit

Permalink
chore: start with monocdk
Browse files Browse the repository at this point in the history
  • Loading branch information
flyingImer committed Feb 28, 2022
1 parent d87f433 commit c919e28
Show file tree
Hide file tree
Showing 9 changed files with 222 additions and 46 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .github/workflows/release.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .github/workflows/upgrade-main.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 15 additions & 10 deletions .projen/deps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .projen/tasks.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 28 additions & 5 deletions .projenrc.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,38 @@
const { awscdk } = require('projen');
const { awscdk, DependencyType } = require('projen');

const CDK_VERSION = '1.145.0';
const CONSTRUCT_VERSION = '3.3.69';

const project = new awscdk.AwsCdkConstructLibrary({
author: 'flyingImer',
author: 'Ej Wang',
authorAddress: '[email protected]',
cdkVersion: '2.1.0',

// stick to monocdk for now
cdkVersion: CDK_VERSION,
cdkAssertions: false,
cdkAssert: false,
cdkDependenciesAsDeps: false,

defaultReleaseBranch: 'main',
name: 'cdk-concurrency-controller',
repositoryUrl: 'https://github.com/flyingImer/cdk-concurrency-controller.git',
stability: 'experimental',

// deps: [], /* Runtime dependencies of this module. */
// description: undefined, /* The description is just a string that helps people understand the purpose of the package. */
// devDeps: [], /* Build dependencies for 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}`,
], /* 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.synth();
39 changes: 39 additions & 0 deletions API.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# API Reference <a name="API Reference" id="api-reference"></a>



## Classes <a name="Classes" id="Classes"></a>

### Hello <a name="Hello" id="cdk-concurrency-controller.Hello"></a>

#### Initializers <a name="Initializers" id="cdk-concurrency-controller.Hello.Initializer"></a>

```typescript
import { Hello } from 'cdk-concurrency-controller'

new Hello()
```

| **Name** | **Type** | **Description** |
| --- | --- | --- |

---

#### Methods <a name="Methods" id="Methods"></a>

| **Name** | **Description** |
| --- | --- |
| <code><a href="#cdk-concurrency-controller.Hello.sayHello">sayHello</a></code> | *No description.* |

---

##### `sayHello` <a name="sayHello" id="cdk-concurrency-controller.Hello.sayHello"></a>

```typescript
public sayHello(): string
```





14 changes: 8 additions & 6 deletions package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c919e28

Please sign in to comment.