Storybook runs a local server with storybook.
()
| 334 | |
| 335 | // Storybook runs a local server with storybook. |
| 336 | func (js Js) Storybook() error { |
| 337 | mg.Deps(js.Deps) |
| 338 | if mg.Verbose() { |
| 339 | fmt.Println("Serving storybook") |
| 340 | } |
| 341 | return js.runYarnCommandV( |
| 342 | "sb", "dev", |
| 343 | "--config-dir", "./config/storybook", |
| 344 | "-p", "9001", |
| 345 | ) |
| 346 | } |
| 347 | |
| 348 | // Vulnerabilities runs yarn audit to check for vulnerable node packages. |
| 349 | func (js Js) Vulnerabilities() error { |
nothing calls this directly
no test coverage detected