Skip to content

Commit

Permalink
[FEATURE] Versioninfo enrich with manifest infos (#554)
Browse files Browse the repository at this point in the history
Enrich task generateVersionInfo, such that the created version-info.json file contains new sections in the json structure:

manifestHints: for each library (in each library's json structure)

The manifestHints section contains the libraries dependencies (fully resolved).

The resolved dependencies are

lazy
- if parent dependencies are also lazy
non-lazy
- if lazy is not defined for this dependency and it has no lazy parent
- if there is the same dependency defined lazy but the current one isn't (non-lazy wins on the same level)

components: global (top level in the json structure)

The components section contains all components which are embedded by the libraries.
Each component has:

- the including library
- manifestHints
- hasOwnPreload. It indicates that embeds points to subcomponents and embeddedBy points to parent components
  • Loading branch information
tobiasso85 authored Jan 26, 2021
1 parent 4421bbb commit 7603ece
Show file tree
Hide file tree
Showing 5 changed files with 1,846 additions and 39 deletions.
2 changes: 2 additions & 0 deletions lib/builder/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ function composeTaskList({dev, selfContained, jsdoc, includedTasks, excludedTask
selectedTasks.generateLibraryPreload = false;
}

// TODO 3.0: exclude generateVersionInfo if not --all is used

if (jsdoc) {
// Include JSDoc tasks
selectedTasks.generateJsdoc = true;
Expand Down
Loading

0 comments on commit 7603ece

Please sign in to comment.