Comments (2)
Ooh, that's nice - exactly what I needed! Thanks for noticing
from cli.
Hey Duncan. This should be possible with the new starter kit install hooks.
<?php
use Symfony\Component\Process\Process;
use Symfony\Component\Process\Exception\ProcessFailedException;
class StarterKitPostInstall
{
public function handle($console)
{
if ($console->confirm('Do you want to install npm dependencies?', true)) {
$process = new Process(['npm', 'i']);
try {
$process->mustRun();
$console->info('Dependencies installed.');
} catch (ProcessFailedException $exception) {
$console->info($exception->getMessage());
}
}
}
}
from cli.
Related Issues (20)
- isTtySupported gives fatal error on when symfony/process is not v4 HOT 5
- New Command with Create a User Causes Error HOT 1
- Update for v3? HOT 2
- Your requirements could not be resolved to an installable set of packages
- Update cli installer for v3
- Guzzlehttp issue on install HOT 3
- zsh: command not found: statamic HOT 1
- Install fails when attempting to create a new site HOT 4
- Downloading starter kits needs GH credentials HOT 9
- Can't generate new site via CLI due to symfony console version HOT 1
- Version is off HOT 1
- Explainer on GH rate limits and GH auth HOT 1
- Warn when giving an invalid starter kit
- Error when creating super user in Windows HOT 1
- Improve messaging around missing composer github token HOT 6
- Conflicts with Symfony console HOT 5
- Problem installing Statamic PEAK starter kit HOT 2
- Issue getting this to install HOT 9
- Can't install Starter Kit after transferring 'organisation' HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli.