Skip to content

Commit

Permalink
docs: add doc block for getFilteredEntryPoints function
Browse files Browse the repository at this point in the history
  • Loading branch information
con322 committed Aug 13, 2024
1 parent bea4b7f commit a8f34d6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/utils/get-filtered-entrypoints.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/**
* Get filtered entrypoints for projects.
*
* Example command: build project1@entry1+entry2,project2@entry3
* Example input: 'project1@entry1+entry2,project2@entry3'
* Example return: { project1: ['entry1', 'entry2'], project2: ['entry3'] }
*
* @param {Array} projects Projects of which to filter entrypoints for.
* @returns {object} An object with project keys of which value for each is the entrypoints to build.
*/
const getFilteredEntryPoints = (projects) => {
const filteredProjectEntryPoints = {};
const projectNames = projects.split(',');
Expand Down

0 comments on commit a8f34d6

Please sign in to comment.