aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2022-12-10 13:00:43 +0530
committerLibravatar Vijay A <vraravam@users.noreply.github.com>2022-12-10 13:00:43 +0530
commit12afe7d1cf99f832e6faa7cacaf1c469c3685659 (patch)
tree4a130682c36c71a6c7f44a0576197b4e932e137c /scripts
parent6.2.3-nightly.4 [skip ci] (diff)
downloadferdium-app-12afe7d1cf99f832e6faa7cacaf1c469c3685659.tar.gz
ferdium-app-12afe7d1cf99f832e6faa7cacaf1c469c3685659.tar.zst
ferdium-app-12afe7d1cf99f832e6faa7cacaf1c469c3685659.zip
Normalize eslint/tslint configs across app and server codebases
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build-unix.sh13
-rw-r--r--scripts/build-windows.ps115
2 files changed, 12 insertions, 16 deletions
diff --git a/scripts/build-unix.sh b/scripts/build-unix.sh
index 8dae9e5ee..04aa9e70f 100755
--- a/scripts/build-unix.sh
+++ b/scripts/build-unix.sh
@@ -103,19 +103,18 @@ fi
103command_exists asdf && asdf reshim nodejs 103command_exists asdf && asdf reshim nodejs
104 104
105# ----------------------------------------------------------------------------- 105# -----------------------------------------------------------------------------
106# Now the meat.....
107pnpm i
108pnpm prepare-code
109pnpm lint
110pnpm test
111
112# -----------------------------------------------------------------------------
113printf "\n*************** Building recipes ***************\n" 106printf "\n*************** Building recipes ***************\n"
114pushd recipes 107pushd recipes
115pnpm i && pnpm lint && pnpm reformat-files && pnpm package 108pnpm i && pnpm lint && pnpm reformat-files && pnpm package
116popd 109popd
117 110
118# ----------------------------------------------------------------------------- 111# -----------------------------------------------------------------------------
112# Now the meat.....
113pnpm i
114pnpm prepare-code
115pnpm lint
116pnpm test
117
119printf "\n*************** Building app ***************\n" 118printf "\n*************** Building app ***************\n"
120if [[ "$(uname -m)" =~ "arm" ]]; then 119if [[ "$(uname -m)" =~ "arm" ]]; then
121 TARGET_ARCH=arm64 120 TARGET_ARCH=arm64
diff --git a/scripts/build-windows.ps1 b/scripts/build-windows.ps1
index ca4fabfe8..3c85e0a38 100644
--- a/scripts/build-windows.ps1
+++ b/scripts/build-windows.ps1
@@ -127,8 +127,6 @@ if((-not $NPM_CONFIG_MSVS_VERSION) -or -not ($EXPECTED_MSVST_VERSION -contains $
127} 127}
128 128
129 129
130
131
132# ----------------------------------------------------------------------------- 130# -----------------------------------------------------------------------------
133# Ensure that the system dependencies are at the correct version - recover if not 131# Ensure that the system dependencies are at the correct version - recover if not
134# Check pnpm version 132# Check pnpm version
@@ -148,19 +146,18 @@ if ($ACTUAL_PNPM_VERSION -ne $EXPECTED_RECIPES_PNPM_VERSION) {
148} 146}
149 147
150# ----------------------------------------------------------------------------- 148# -----------------------------------------------------------------------------
151# Now the meat.....
152& pnpm i
153& pnpm prepare-code
154& pnpm lint
155& pnpm test
156
157# -----------------------------------------------------------------------------
158Write-Host "*************** Building recipes ***************" 149Write-Host "*************** Building recipes ***************"
159Push-Location recipes 150Push-Location recipes
160pnpm i && pnpm lint && pnpm reformat-files && pnpm package 151pnpm i && pnpm lint && pnpm reformat-files && pnpm package
161Pop-Location 152Pop-Location
162 153
163# ----------------------------------------------------------------------------- 154# -----------------------------------------------------------------------------
155# Now the meat.....
156& pnpm i
157& pnpm prepare-code
158& pnpm lint
159& pnpm test
160
164Write-Host "*************** Building app ***************" 161Write-Host "*************** Building app ***************"
165if ($env:PROCESSOR_ARCHITECTURE -eq "ARM64") { 162if ($env:PROCESSOR_ARCHITECTURE -eq "ARM64") {
166 $TARGET_ARCH="arm64" 163 $TARGET_ARCH="arm64"