Add ./do commands for watching and locally building Storybook

[MAILPOET-2769]
This commit is contained in:
Ján Mikláš
2020-04-15 15:19:54 +02:00
committed by Veljko V
parent c223f83420
commit d811b68815
3 changed files with 10 additions and 1 deletions

1
.gitignore vendored
View File

@@ -29,3 +29,4 @@ docker-compose.override.yml
tasks/code_sniffer/vendor tasks/code_sniffer/vendor
tasks/phpstan/vendor tasks/phpstan/vendor
/tools/vendor /tools/vendor
/storybook-static

View File

@@ -513,6 +513,14 @@ class RoboFile extends \Robo\Tasks {
->run(); ->run();
} }
public function storybookBuild() {
return $this->_exec('npm run build-storybook');
}
public function storybookWatch() {
return $this->_exec('npm run storybook');
}
public function svnCheckout() { public function svnCheckout() {
$svnDir = ".mp_svn"; $svnDir = ".mp_svn";

View File

@@ -20,7 +20,7 @@
"stylelint": "stylelint --fix", "stylelint": "stylelint --fix",
"test": "mocha --require @babel/register tests/javascript/**/*.spec.js", "test": "mocha --require @babel/register tests/javascript/**/*.spec.js",
"check-types": "tsc --noEmit", "check-types": "tsc --noEmit",
"storybook": "start-storybook -p 6006", "storybook": "start-storybook -p 8083",
"build-storybook": "build-storybook" "build-storybook": "build-storybook"
}, },
"dependencies": { "dependencies": {