docs: use shelljs to execute build step

This commit is contained in:
Eric Liu 2020-10-09 18:26:20 -07:00
commit 4d9cdc7e10
3 changed files with 33 additions and 5 deletions

8
docs/scripts/build.js Normal file
View file

@ -0,0 +1,8 @@
const shell = require("shelljs");
shell.cd("../");
shell.exec("yarn install");
shell.exec("yarn build:css");
shell.cd("docs");
shell.exec("routify run -b");
shell.exec("svite build");