-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix include/exclude behavior in amdshim and add doc
- Loading branch information
Showing
6 changed files
with
637 additions
and
586 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,3 +1,23 @@ | ||
#amdshim | ||
# amdshim | ||
|
||
amdshim is a tasks ordering the shims included in a layer so they are executed in the right order. | ||
It takes a list of shims generated by the amddepsscan task, sort it and include their dependencies as well as | ||
making the content of the layer understandable to requirejs. | ||
|
||
### amdshim (layerName, buildConfig, loaderConfig) | ||
|
||
_This task should be run after amddepsscan_ | ||
|
||
Takes a list of shim to include from amddepsscan and order them. You can exclude shims by specifying them in the exclude | ||
property as explain in amddepsscan documentation but if a shim is included in the layer, all of its dependencies will be | ||
included too. | ||
This is to avoid timing issues as shims are executed as soon as they are loaded. | ||
|
||
This task should be used when you want to include shims in your layer. | ||
|
||
#### Arguments | ||
1. layerName _(String)_: The layer name. | ||
1. buildConfig _(String)_: Name of the property where the build configuration is stored. | ||
1. loaderConfig _(String)_: Name of the property where the amd loader configuration is stored. | ||
For this task, loaderConfig is only used to look up the shims. | ||
|
||
This task is not yet ready for production use. |
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.