-
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.
feat(assets): Add deploy-time content hash
Introduces an `IAsset` interface that centralizes common aspects about assets, such as the `sourceHash` and `bundleHash` properties. The `sourceHash` fingerprints the objects that are used as the source for the asset bundling logic, and is available at synthesis time (it can for example be injected in construct IDs when it one wants to ensure a new logical ID is issued for every new version of the asset). The `bundleHash` fingerprints the result of the bundling logic, and is more accurate than `sourceHash` (in that, if the same source can produce different artifacts at different points in time, the `sourceHash` will remain un-changed, but the `bundleHash` will change. The `bundleHash` is however a deploy-time value and thus cannot be used in construct IDs. Fixes #1400
- Loading branch information
1 parent
3ff4f1f
commit 6e65983
Showing
50 changed files
with
770 additions
and
4,467 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,28 @@ | ||
# VSCode extension | ||
.vscode/ | ||
/.favorites.json | ||
|
||
# TypeScript incremental build states | ||
*.tsbuildinfo | ||
|
||
.vscode | ||
# VSCode extension | ||
/.favorites.json | ||
# Locak state files & OS specifics | ||
.DS_Store | ||
node_modules | ||
node_modules/ | ||
lerna-debug.log | ||
dist | ||
pack | ||
dist/ | ||
pack/ | ||
.BUILD_COMPLETED | ||
.local-npm | ||
.tools | ||
coverage | ||
.local-npm/ | ||
.tools/ | ||
coverage/ | ||
.nyc_output | ||
.LAST_BUILD | ||
*.sw[a-z] | ||
*~ | ||
|
||
# we don't want tsconfig at the root | ||
# We don't want tsconfig at the root | ||
/tsconfig.json | ||
|
||
# CDK Context & Staging files | ||
cdk.context.json | ||
.cdk.staging/ |
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.