Add ./do commands for watching and locally building Storybook
[MAILPOET-2769]
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -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
|
||||||
|
@@ -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";
|
||||||
|
|
||||||
|
@@ -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": {
|
||||||
|
Reference in New Issue
Block a user