<?php

namespace TightenCo\Jigsaw\Scaffold;

class DefaultInstaller
{
    const ALWAYS_IGNORE = [
        'build_*',
        'init.php',
        'node_modules',
        'vendor',
    ];
    const DEFAULT_COMMANDS = [
        'composer install',
        'npm install',
        'npm run dev',
    ];
    protected $commands;
    protected $delete;
    protected $ignore;
    protected $builder;

    public function install(ScaffoldBuilder $builder, $settings = [])
    {
        $this->builder = $builder;
        $this->delete = array_get($settings, 'delete', []);
        $this->ignore = array_merge(self::ALWAYS_IGNORE, array_get($settings, 'ignore', []));
        $commands = array_get($settings, 'commands');
        $this->commands = $commands !== null ? $commands : self::DEFAULT_COMMANDS;
        $this->execute();
    }

    public function execute()
    {
        return $this->builder
            ->buildBasicScaffold()
            ->cacheComposerDotJson()
            ->deleteSiteFiles($this->delete)
            ->copyPresetFiles(null, $this->ignore)
            ->mergeComposerDotJson()
            ->runCommands($this->commands);
    }
}

<?php

namespace TightenCo\Jigsaw\Scaffold;

class DefaultInstaller
{
    const ALWAYS_IGNORE = [
        'build_*',
        'init.php',
        'node_modules',
        'vendor',
    ];
    const DEFAULT_COMMANDS = [
        'composer install',
        'npm install',
        'npm run local',
    ];
    protected $commands;
    protected $delete;
    protected $ignore;
    protected $builder;

    public function install(ScaffoldBuilder $builder, $settings = [])
    {
        $this->builder = $builder;
        $this->delete = array_get($settings, 'delete', []);
        $this->ignore = array_merge(self::ALWAYS_IGNORE, array_get($settings, 'ignore', []));
        $commands = array_get($settings, 'commands');
        $this->commands = $commands !== null ? $commands : self::DEFAULT_COMMANDS;
        $this->execute();
    }

    public function execute()
    {
        return $this->builder
            ->buildBasicScaffold()
            ->cacheComposerDotJson()
            ->deleteSiteFiles($this->delete)
            ->copyPresetFiles(null, $this->ignore)
            ->mergeComposerDotJson()
            ->runCommands($this->commands);
    }
}

Change `npm run dev` to `npm run local`
Change `npm run dev` to `npm run local`
