Skip to content

Commit

Permalink
fix(cli): remove support for applets (#2691)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: applets are no longer supported as an app type, use "decdk" instead.
  • Loading branch information
Elad Ben-Israel authored May 30, 2019
1 parent 04d37af commit 0997ee2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
10 changes: 0 additions & 10 deletions packages/aws-cdk/lib/api/cxapp/exec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,14 +147,6 @@ function appToArray(app: any) {

type CommandGenerator = (file: string) => string[];

/**
* Direct execution of a YAML file, assume that we're deploying an Applet
*/
function executeApplet(appletFile: string): string[] {
const appletBinary = path.resolve(require.resolve('@aws-cdk/applet-js'));
return [process.execPath, appletBinary, appletFile];
}

/**
* Execute the given file with the same 'node' process as is running the current process
*/
Expand All @@ -166,8 +158,6 @@ function executeNode(scriptFile: string): string[] {
* Mapping of extensions to command-line generators
*/
const EXTENSION_MAP = new Map<string, CommandGenerator>([
['.yml', executeApplet],
['.yaml', executeApplet],
['.js', executeNode],
]);

Expand Down
1 change: 0 additions & 1 deletion packages/aws-cdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
"sinon": "^7.3.1"
},
"dependencies": {
"@aws-cdk/applet-js": "^0.33.0",
"@aws-cdk/cloudformation-diff": "^0.33.0",
"@aws-cdk/cx-api": "^0.33.0",
"@aws-cdk/region-info": "^0.33.0",
Expand Down

0 comments on commit 0997ee2

Please sign in to comment.