Skip to content
This repository was archived by the owner on Dec 21, 2019. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ Which is the same as...

Which builds the passed in components (and their dependancies) using your registered packages.

./packager build +components Core/Type Core/Fx ART/ART.Element -components Core/Core

This will build a library that has the same dependencies as the previous example but exclude the `Core/Core` component.

./packager build +files Core/Core Core/Fx ART/ART

This builds the passed in files (and their dependancies) using your registered packages.
Expand Down
14 changes: 12 additions & 2 deletions packager
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ switch ($command){
'files' => array(),
'add-packages' => array(),
'remove-packages' => array(),
'remove-components' => array(),
'blocks' => array(),
'use-only' => null
);
Expand Down Expand Up @@ -120,7 +121,11 @@ switch ($command){
$build = 'components';
continue;
}

if ($arg == '-components'){
$build = 'remove-components';
continue;
}

if ($arg == '+files'){
$build = 'files';
continue;
Expand Down Expand Up @@ -176,7 +181,12 @@ switch ($command){
}

$files = $pkg->complete_files($files);


foreach ($selected['remove-components'] as $component){
$file = $pkg->component_to_file($component);
array_erase($files, $file);
}

Packager::warn("Build using: " . implode(', ', $pkg->get_packages()) . "\n");

Packager::warn("Included Files/Components:\n");
Expand Down