Skip to content

Commit

Permalink
fix(e2e): fix console building issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jialeicui committed Jan 11, 2023
1 parent 98f577b commit aba88d0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
15 changes: 11 additions & 4 deletions console/Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,26 @@
install-yarn:
npm install -g yarn
.PHONY: *

install-dev-tools:
npm install -g yarn pnpm

install-dependencies:
yarn

build-ui:
yarn build

ci-lint:
yarn lint
yarn typecheck

rebuild-gradio:
rm -rf gradio && git clone --depth 1 --branch=feat/sw-gradio-widget https://github.com/star-whale/gradio gradio
pushd gradio/ui && \
cd gradio/ui && \
pnpm i && \
pnpm build && \
cd ../.. && \
rm -rf src/assets/GradioWidget && mkdir -p src/assets/GradioWidget && \
mv packages/starwhale/build src/assets/GradioWidget/es && popd
mv gradio/ui/packages/starwhale/build src/assets/GradioWidget/es
rm -rf gradio

build-all: install-dependencies rebuild-gradio build-ui
2 changes: 1 addition & 1 deletion scripts/publish/pub.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ build() {
popd
else
pushd ../../console
yarn && yarn build
make install-dev-tools && make build-all
popd
fi
b_controller
Expand Down

0 comments on commit aba88d0

Please sign in to comment.