Skip to content

Commit

Permalink
Merge pull request #1004 from ninoseki/remove-build-frontend
Browse files Browse the repository at this point in the history
refactor: remove build_frontend.sh [skip ci]
  • Loading branch information
ninoseki authored Jan 10, 2024
2 parents a79abb4 + e741793 commit fe3c136
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ end

unless ci?
task :build do
sh "./build_frontend.sh"
sh "cd frontend && npm install && npm run build"
sh "rm -rf ./lib/mihari/web/public/"
sh "mkdir -p ./lib/mihari/web/public/"
sh "cp -r frontend/dist/* ./lib/mihari/web/public"
end
end

Expand Down
2 changes: 1 addition & 1 deletion build_frontend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
CURRENT_DIR=${PWD}

cd frontend
npm ci
npm install
npm run build

trash -r ${CURRENT_DIR}/lib/mihari/web/public/
Expand Down

0 comments on commit fe3c136

Please sign in to comment.