-
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.
refactor(core): fold "assets" to "core"
Fold the "assets" module, which includes the `Staging` construct that takes care of staging asset files into the cloud assembly during synthesis into "core". This is in order to allow implementing custom resources that leverage assets throughout the framework. A subsequent commit will add a mini-framework for custom resources that leverages this capability.
- Loading branch information
Elad Ben-Israel
committed
Apr 30, 2020
1 parent
1ee629e
commit 4bd8453
Showing
33 changed files
with
361 additions
and
193 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,67 @@ | ||
export * from './api'; | ||
export * from './fs/follow-mode'; | ||
export * from './fs/options'; | ||
export * from './staging'; | ||
import * as core from '@aws-cdk/core'; | ||
|
||
/** | ||
* Deprecated. | ||
* @deprecated moved to `core.IAsset` | ||
*/ | ||
export interface IAsset extends core.IAsset { } | ||
|
||
/** | ||
* Deprecated. | ||
* @deprecated moved to `core.StagingProps` | ||
*/ | ||
export interface StagingProps extends core.AssetStagingProps { | ||
|
||
} | ||
|
||
/** | ||
* Deprecated. | ||
* @deprecated moved to `core.Staging` | ||
*/ | ||
export class Staging extends core.AssetStaging { } | ||
|
||
/** | ||
* Deprecated. | ||
* @deprecated moved to `core.CopyOptions` | ||
*/ | ||
export interface CopyOptions extends core.CopyOptions { } | ||
|
||
/** | ||
* Deprecated. | ||
* @deprecated moved to `core.CopyOptions` | ||
*/ | ||
export interface FingerprintOptions extends core.FingerprintOptions { } | ||
|
||
/** | ||
* Deprecated. | ||
* @deprecated moved to `core.FollowMode` | ||
*/ | ||
export enum FollowMode { | ||
/** | ||
* Never follow symlinks. | ||
*/ | ||
NEVER = 'never', | ||
|
||
/** | ||
* Materialize all symlinks, whether they are internal or external to the source directory. | ||
*/ | ||
ALWAYS = 'always', | ||
|
||
/** | ||
* Only follows symlinks that are external to the source directory. | ||
*/ | ||
EXTERNAL = 'external', | ||
|
||
// ----------------- TODO:::::::::::::::::::::::::::::::::::::::::::: | ||
/** | ||
* Forbids source from having any symlinks pointing outside of the source | ||
* tree. | ||
* | ||
* This is the safest mode of operation as it ensures that copy operations | ||
* won't materialize files from the user's file system. Internal symlinks are | ||
* not followed. | ||
* | ||
* If the copy operation runs into an external symlink, it will fail. | ||
*/ | ||
BLOCK_EXTERNAL = 'internal-only', | ||
} |
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
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
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
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
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
Oops, something went wrong.