Files
.github
.storybook
scripts
build
shared
build-storybook.ts
dump-keycloak-realm.ts
generate-i18n-messages.ts
link-in-app.ts
link-in-starter.ts
start-storybook.ts
src
stories
test
.all-contributorsrc
.gitattributes
.gitignore
.prettierignore
.prettierrc.json
CONTRIBUTING.md
LICENSE
README.md
package.json
renovate.json
tsproject.json
vitest.config.ts
yarn.lock
keycloak_theme/scripts/start-storybook.ts
2024-09-22 20:12:11 +02:00

22 lines
567 B
TypeScript

import * as child_process from "child_process";
import { startRebuildOnSrcChange } from "./shared/startRebuildOnSrcChange";
import { run } from "./shared/run";
(async () => {
run("yarn build");
{
const child = child_process.spawn("npx", ["start-storybook", "-p", "6006"], {
shell: true
});
child.stdout.on("data", data => process.stdout.write(data));
child.stderr.on("data", data => process.stderr.write(data));
child.on("exit", process.exit.bind(process));
}
startRebuildOnSrcChange();
})();