-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up features.ts such that it will include only things related to feature flags in order to make it easier for users to discover and add feature flags in one place. Merged it with the contents of `future.ts` and updates contribution guide to that end. The other context keys that were in `feature.ts` were not actually feature flags but rather application switches, so these were moved to `app.ts`. Fixes #6098
- Loading branch information
Elad Ben-Israel
committed
Feb 9, 2020
1 parent
bc0fe14
commit e49a6ec
Showing
5 changed files
with
62 additions
and
46 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// -------------------------------------------------------------------------------- | ||
// This file declares context keys that are used by the CLI to control the | ||
// behavior of CDK apps. Contrary to feature flags (which are defined under | ||
// `features.ts`) these options are not bound to be removed in the next major | ||
// version. | ||
// -------------------------------------------------------------------------------- | ||
|
||
/** | ||
* Enables the embedding of the "aws:cdk:path" in CloudFormation template metadata. | ||
*/ | ||
export const PATH_METADATA_ENABLE_CONTEXT = 'aws:cdk:enable-path-metadata'; | ||
|
||
/** | ||
* Disable the collection and reporting of version information. | ||
*/ | ||
export const DISABLE_VERSION_REPORTING = 'aws:cdk:disable-version-reporting'; | ||
|
||
/** | ||
* If this is set, asset staging is disabled. This means that assets will not be copied to | ||
* the output directory and will be referenced with absolute source paths. | ||
*/ | ||
export const DISABLE_ASSET_STAGING_CONTEXT = 'aws:cdk:disable-asset-staging'; | ||
|
||
/** | ||
* If this context key is set, the CDK will stage assets under the specified | ||
* directory. Otherwise, assets will not be staged. | ||
* Omits stack traces from construct metadata entries. | ||
*/ | ||
export const DISABLE_METADATA_STACK_TRACE = 'aws:cdk:disable-stack-trace'; |
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
This file was deleted.
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