-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.ts
More file actions
33 lines (28 loc) · 1.08 KB
/
index.ts
File metadata and controls
33 lines (28 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
NOTE: this plugin is used to add all the different provider related plugins at once.
This way only one plugin needs to be added to the service in order to get access to the
whole provider implementation.
*/
import { AwsCdkProvider } from './provider'
import { AwsCdkDeploy } from './deploy'
import { AwsCdkRemove } from './remove'
import { AwsCdkDiff } from './diff'
import { AwsCdkCompile } from './compile';
import { ServerlessCdkConstructs } from './cdk';
class AwsCdkIndex {
constructor(serverless: any, options: any) {
serverless.pluginManager.addPlugin(AwsCdkProvider);
serverless.pluginManager.addPlugin(AwsCdkDeploy);
serverless.pluginManager.addPlugin(AwsCdkRemove);
serverless.pluginManager.addPlugin(AwsCdkDiff);
serverless.pluginManager.addPlugin(AwsCdkCompile);
// We still need:
// - Info (mostly copyable from AWS)
// - Logs (mostly copyable from AWS)
// - Invoke (mostly copyable from AWS)
}
}
namespace AwsCdkIndex {
export import api = ServerlessCdkConstructs;
}
export = AwsCdkIndex;