File tree Expand file tree Collapse file tree 3 files changed +22
-0
lines changed
Expand file tree Collapse file tree 3 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## 0.1.4 - 2021-06-05
4+
5+ - Added ` * ` option to include the entire base directory in the package.
6+
37## 0.1.3 - 2021-05-24
48
59- Fix more ` sidecar:configure ` AWS errors.
Original file line number Diff line number Diff line change @@ -250,6 +250,13 @@ public function getBasePath()
250250 protected function pathsForMerging ($ paths )
251251 {
252252 return array_map (function ($ path ) {
253+ // `*` means everything in the base directory, whatever
254+ // that may be. By resetting it to an empty string and
255+ // prepending the base path, everything is included.
256+ if ($ path === '* ' ) {
257+ $ path = '' ;
258+ }
259+
253260 // Make every path relative to the base directory.
254261 return $ this ->prependBasePath ($ path );
255262 }, Arr::wrap ($ paths ));
Original file line number Diff line number Diff line change @@ -99,6 +99,17 @@ public function it_sets_the_base_path_correctly()
9999 }
100100 }
101101
102+ /** @test */
103+ public function start_includes_everything_in_base_path ()
104+ {
105+ $ package = $ this ->makePackageClass ();
106+
107+ $ package ->setBasePath (__DIR__ . '/Support/Files ' );
108+ $ package ->include ('* ' );
109+
110+ $ this ->assertCount (3 , $ package ->files ());
111+ }
112+
102113 /** @test */
103114 public function base_path_order ()
104115 {
You can’t perform that action at this time.
0 commit comments