REBELinBLUE\Deployer\Console\Commands\UpdateApp::nodeOutdated PHP Method

nodeOutdated() protected method

Check if the a .install file in the node_modules folder has been updated in the last 10 minutes, if not we assume npm install has not been run recently as it is touched by "postinstall"
protected nodeOutdated ( ) : boolean
return boolean
    protected function nodeOutdated()
    {
        if (filemtime(base_path('node_modules/.install')) < strtotime('-10 minutes')) {
            $this->block(['Update not complete!', PHP_EOL, 'Please run "npm install --production" before you continue.']);
            return true;
        }
        return false;
    }