Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post-install Tasks #251

Open
dshoreman opened this issue Jul 19, 2020 · 0 comments
Open

Post-install Tasks #251

dshoreman opened this issue Jul 19, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@dshoreman
Copy link
Owner

Certain types of projects will require additional steps beyond simply cloning the Git repo, such as installing composer dependencies or building assets.

The site manager should have some concept of "tasks" that allows us to specify commands that should be run after a clone or pull. Each task would be stored as its command with a friendly name as a key, e.g.

protected $availableTasks = [
  'composer' => 'vendor/bin/composer install --prefer-dist --no-dev --no-suggest',
  'laravel-migrate' => 'php artisan migrate',
  'npm' => 'npm ci && npm run build',
];

Eventually a subset would be predefined for each project type / template / whatever they end up being called. For example a PHP project would use composer, but a Laravel project would use both composer and laravel-migrate.

@dshoreman dshoreman added the enhancement New feature or request label Jul 19, 2020
@dshoreman dshoreman added this to To do in Projects, Apps and Redirects via automation Jul 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

1 participant