Skip to content

Commit

Permalink
add build client task to makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
f0rbit committed Dec 31, 2023
1 parent 9cc6819 commit 6248b30
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ clean:
@rm -f logs/app.log
@rm -rf ${COVERAGE_DIR}
@rm -f server.log
@rm -rf client/dist
@echo "Cleaned files"

run: clean build
Expand Down Expand Up @@ -59,3 +60,5 @@ coverage-report:
@PORT=${TEST_PORT} AUTH_TOKEN=${TEST_TOKEN} ./test.sh > /dev/null 2> /dev/null
@go tool covdata func -i=${COVERAGE_DIR}

build-client:
cd client && npm run build
8 changes: 3 additions & 5 deletions client/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
{
"name": "client",
"private": true,
"version": "0.0.0",
"version": "0.8.2",
"type": "module",
"scripts": {
"dev": "bunx --bun vite",
"predeploy": "vite build",
"deploy": "gh-pages -d dist",
"build": "bunx --bun vite build",
"dev": "vite dev",
"build": "vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
},
Expand Down

0 comments on commit 6248b30

Please sign in to comment.