-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from moderntribe/feat/add-npm-version
Add the npm_lts container
- Loading branch information
Showing
6 changed files
with
54 additions
and
4 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
namespace Tribe\Test; | ||
|
||
if ( $is_help ) { | ||
echo "Runs an npm command in the stack using the node LTS container.\n"; | ||
echo PHP_EOL; | ||
echo colorize( "This command requires a use target set using the <light_cyan>use</light_cyan> command.\n" ); | ||
echo colorize( "usage: <light_cyan>{$cli_name} npm_lts [...<commands>]</light_cyan>\n" ); | ||
echo colorize( "example: <light_cyan>{$cli_name} npm_lts install</light_cyan>" ); | ||
return; | ||
} | ||
|
||
$using = tric_target(); | ||
echo light_cyan( "Using {$using}\n" ); | ||
|
||
$command = $args( '...' ); | ||
$pool = build_command_pool( 'npm_lts', $command, [ 'common' ] ); | ||
$status = execute_command_pool( $pool ); | ||
|
||
exit( $status ); | ||
|
||
|
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