Skip to content
Merged
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
2 changes: 1 addition & 1 deletion src/Console/Commands/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public function runStack(): void
if ($this->selectedStack) {
$isDev = $this->option('dev') ? ['--dev' => true] : [];
$this->call('stack', array_merge(
['stack' => $this->selectedStack, '--path' => $this->targetPath()],
['stack' => $this->selectedStack, '--path' => $this->targetPath(), '--no-hint' => true],
$isDev,
));
}
Expand Down
2 changes: 2 additions & 0 deletions src/Console/Commands/NewCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ public function handle(): int
return self::FAILURE;
}

$this->line(' Setup continues below - see the final summary for the real next steps.');

$result = $this->call('install', $this->installArguments($name, $driver, $stack, $ssl, $modules));

if ($result === self::SUCCESS) {
Expand Down
8 changes: 6 additions & 2 deletions src/Console/Commands/StackCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ class StackCommand extends Command
{--dev : Contributor dev mode — copy config files only, keep both source dirs}
{--reset : Reset to clean state with no framework selected}
{--no-skip-worktree : Do not mark generated files as skip-worktree in git}
{--no-install : Skip npm install after selecting the framework (dev mode)}';
{--no-install : Skip npm install after selecting the framework (dev mode)}
{--no-hint : Suppress the npm install reminder (used when invoked from the install flow)}';

protected $description = 'Select the frontend framework stack (vue or react) for this Saucebase installation';

Expand Down Expand Up @@ -106,7 +107,10 @@ private function runInstallMode(string $framework): int
$this->files->deleteDirectory($this->basePath.'/stubs/saucebase/stack');
$this->deployModuleFiles($framework);
$this->flattenRecipeStubs($framework);
$this->info("Framework set to {$framework}. Run: npm install to install dependencies.");

if (! $this->option('no-hint')) {
$this->info("Framework set to {$framework}. Run: npm install to install dependencies.");
}

return self::SUCCESS;
}
Expand Down
1 change: 1 addition & 0 deletions src/Environments/NativeEnvironment.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ protected function boot(InstallCommand $command): int
protected function nextSteps(InstallCommand $command): array
{
return [
'Install frontend dependencies: <fg=yellow>npm install</>',
'Start the dev server: <fg=yellow>composer dev</>',
'Open your app: <fg=yellow>'.($this->readEnvValue($command, 'APP_URL') ?? 'http://localhost').'</>',
];
Expand Down