mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2025-12-24 01:57:51 -05:00
* Improve code style and PSR-12 compliance - refactored code formatting to adhere to PSR-12 guidelines - standardized coding conventions across the codebase - added missing framework files and reverted markup changes - reformatted arrays for enhanced readability - updated language files for consistent styling and clarity - minor miscellaneous improvements
32 lines
1.5 KiB
PowerShell
32 lines
1.5 KiB
PowerShell
# ------------------------------------------------------
|
|
# Run this Powershell script to "build" OSPOS.
|
|
# Execute this script from a terminal starting
|
|
# with the project root as the working directory.
|
|
# Use ".\build.ps1"
|
|
# The leading ".\" tells Powershell that you trust it.
|
|
# ------------------------------------------------------
|
|
|
|
Write-Output "============================================================================="
|
|
Write-Output "Run Composer Install"
|
|
Write-Output "============================================================================="
|
|
composer install
|
|
|
|
Write-Output "============================================================================="
|
|
Write-Output "Run NPM Install"
|
|
Write-Output "============================================================================="
|
|
npm install
|
|
|
|
Write-Output "============================================================================="
|
|
Write-Output "Install the components needed to build OSPOS"
|
|
Write-Output "============================================================================="
|
|
npm run build
|
|
|
|
Write-Output "============================================================================="
|
|
Write-Output "Restore configured .env file if it exists."
|
|
Write-Output "(If one is found in a folder located at ../env/<name-of-ospos-root-folder>)"
|
|
Write-Output "============================================================================="
|
|
$currentfolder = Split-Path -Path (Get-Location) -Leaf
|
|
if (Test-Path -Path ../env/$currentfolder/.env -PathType Leaf) {
|
|
Copy ../env/$currentfolder/.env
|
|
}
|