Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

Commit

Permalink
Merge branch bugfix/build-scripts into main (#24)
Browse files Browse the repository at this point in the history
Fix scripts

Fix dev and compile scripts to copy assets recursively.
  • Loading branch information
Kitt3120 authored Jun 2, 2023
1 parent c8fa853 commit c8af7eb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions compile.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Remove-Item -Recurse -Force build/ -ErrorAction SilentlyContinue
New-Item -ItemType Directory -Path build/
New-Item -ItemType Directory -Path build/assets/
Copy-Item -Path src/html/* -Destination build/
Copy-Item -Path src/assets/* -Destination build/assets/
Copy-Item -Path -Recurse src/html/* -Destination build/
Copy-Item -Path -Recurse src/assets/* -Destination build/assets/
tsc
4 changes: 2 additions & 2 deletions compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
rm -rf build/
mkdir build/
mkdir build/assets/
cp src/html/* build/
cp src/assets/* build/assets/
cp -r src/html/* build/
cp -r src/assets/* build/assets/
tsc
4 changes: 2 additions & 2 deletions dev.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Remove-Item -Recurse -Force build/ -ErrorAction SilentlyContinue
New-Item -ItemType Directory -Path build/
New-Item -ItemType Directory -Path build/assets/
Copy-Item -Path src/html/* -Destination build/
Copy-Item -Path src/assets/* -Destination build/assets/
Copy-Item -Path -Recurse src/html/* -Destination build/
Copy-Item -Path -Recurse src/assets/* -Destination build/assets/
tsc --watch
4 changes: 2 additions & 2 deletions dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
rm -rf build/
mkdir build/
mkdir build/assets/
cp src/html/* build/
cp src/assets/* build/assets/
cp -r src/html/* build/
cp -r src/assets/* build/assets/
tsc --watch

0 comments on commit c8af7eb

Please sign in to comment.