-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
17,907 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
|
||
# testing | ||
/coverage | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
function LogCommand($command) { | ||
Write-Host "> $($command | Out-String)" | ||
& $command | ||
} | ||
|
||
Push-Location -Path $PSScriptRoot | ||
try { | ||
LogCommand { npm ci } | ||
$ENV:PUBLIC_URL = "/new-app" | ||
LogCommand { npm run build -ws --if-present } | ||
|
||
if (Test-Path "./build") { | ||
Remove-Item -Recurse -Force build | ||
} | ||
|
||
New-Item -ItemType Directory -Path "./build" | Out-Null | ||
|
||
Write-Host "Copy react site to build/new-app folder" | ||
Copy-Item -Path "./new-app/build" -Destination "./build/new-app" -Recurse -Force | Out-Null | ||
|
||
Write-Host "Copy static site to build/breeding folder" | ||
Copy-Item -Path "./breeding" -Destination "./build/breeding" -Recurse -Force | Out-Null | ||
|
||
Write-Host "Copy static index to build folder" | ||
Copy-Item -Path "./index.html" -Destination "./build" -Recurse -Force | Out-Null | ||
} | ||
finally { | ||
Pop-Location | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.