-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Angular: patched for readily usable engine
It appears the existing Angular engine is a work-in-progress one. Hence, let's update it to generate a SEO-capable and search friendly static website seamlessly. Hence, let's do this. This patch upgrades the Angular engine to a readily usable engine in Angular/ directory. Co-authored-by: Shuralyov, Jean <[email protected]> Co-authored-by: Galyna, Cory <[email protected]> Co-authored-by: (Holloway) Chew, Kean Ho <[email protected]> Signed-off-by: (Holloway) Chew, Kean Ho <[email protected]>
- Loading branch information
1 parent
5327c99
commit 8d741ac
Showing
45 changed files
with
2,329 additions
and
127 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#!/bin/sh | ||
# Copyright 2023 (Holloway) Chew, Kean Ho <[email protected]> | ||
# | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may not | ||
# use this file except in compliance with the License. You may obtain a copy of | ||
# the License at: | ||
|
@@ -46,7 +47,7 @@ fi | |
|
||
I18N_Build "$PROJECT_ANGULAR" | ||
__current_path="$PWD" && cd "${PROJECT_PATH_ROOT}/${PROJECT_ANGULAR}" | ||
ANGULAR_Build | ||
./build.sh.ps1 | ||
___process=$? | ||
cd "$__current_path" && unset __current_path | ||
if [ $___process -ne 0 ]; then | ||
|
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# Copyright 2023 (Holloway) Chew, Kean Ho <[email protected]> | ||
# | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may not | ||
# use this file except in compliance with the License. You may obtain a copy | ||
# of the License at: | ||
|
@@ -20,6 +21,7 @@ if (-not (Test-Path -Path $env:PROJECT_PATH_ROOT)) { | |
} | ||
|
||
. "${env:LIBS_AUTOMATACI}\services\io\fs.ps1" | ||
. "${env:LIBS_AUTOMATACI}\services\io\os.ps1" | ||
. "${env:LIBS_AUTOMATACI}\services\i18n\translations.ps1" | ||
. "${env:LIBS_AUTOMATACI}\services\compilers\angular.ps1" | ||
|
||
|
@@ -46,7 +48,7 @@ if ($___process -ne 0) { | |
$null = I18N-Build "${env:PROJECT_ANGULAR}" | ||
$__current_path = Get-Location | ||
$null = Set-Location "${env:PROJECT_PATH_ROOT}\${env:PROJECT_ANGULAR}" | ||
$___process = ANGULAR-Build | ||
$___process = OS-Exec "./build.sh.ps1" | ||
$null = Set-Location "${__current_path}" | ||
$null = Remove-Variable __current_path | ||
if ($___process -ne 0) { | ||
|
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,43 @@ | ||
#!/bin/sh | ||
# Copyright 2024 (Holloway) Chew, Kean Ho <[email protected]> | ||
# | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may not | ||
# use this file except in compliance with the License. You may obtain a copy of | ||
# the License at: | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
# License for the specific language governing permissions and limitations under | ||
# the License. | ||
|
||
|
||
|
||
|
||
# initialize | ||
if [ "$PROJECT_PATH_ROOT" = "" ]; then | ||
>&2 printf "[ ERROR ] - Please run from automataCI/ci.sh.ps1 instead!\n" | ||
return 1 | ||
fi | ||
|
||
. "${LIBS_AUTOMATACI}/services/io/fs.sh" | ||
|
||
|
||
|
||
|
||
# execute | ||
__current_path="$PWD" | ||
cd "${PROJECT_PATH_ROOT}/${PROJECT_ANGULAR}" | ||
|
||
FS_Remove_Silently "dist" | ||
FS_Remove_Silently "node_modules" | ||
|
||
cd "$__current_path" | ||
unset __current_path | ||
|
||
|
||
|
||
|
||
# report status | ||
return 0 |
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,42 @@ | ||
# Copyright 2024 (Holloway) Chew, Kean Ho <[email protected]> | ||
# | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may not | ||
# use this file except in compliance with the License. You may obtain a copy | ||
# of the License at: | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
# License for the specific language governing permissions and limitations | ||
# under the License. | ||
|
||
|
||
|
||
|
||
# initialize | ||
if (-not (Test-Path -Path $env:PROJECT_PATH_ROOT)) { | ||
Write-Error "[ ERROR ] - Please run from automataCI\ci.sh.ps1 instead!`n" | ||
return 1 | ||
} | ||
|
||
. "${env:LIBS_AUTOMATACI}\services\io\fs.ps1" | ||
|
||
|
||
|
||
|
||
# execute | ||
$__current_path = Get-Location | ||
$null = Set-Location "${env:PROJECT_PATH_ROOT}\${env:PROJECT_ANGULAR}" | ||
|
||
$null = FS-Remove-Silently "dist" | ||
$null = FS-Remove-Silently "node_modules" | ||
|
||
$null = Set-Location "${__current_path}" | ||
$null = Remove-Variable __current_path | ||
|
||
|
||
|
||
|
||
# report status | ||
return 0 |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#!/bin/sh | ||
# Copyright 2023 (Holloway) Chew, Kean Ho <[email protected]> | ||
# | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may not | ||
# use this file except in compliance with the License. You may obtain a copy of | ||
# the License at: | ||
|
@@ -38,7 +39,7 @@ fi | |
|
||
I18N_Build "$PROJECT_ANGULAR" | ||
__current_path="$PWD" && cd "${PROJECT_PATH_ROOT}/${PROJECT_ANGULAR}" | ||
ANGULAR_Build | ||
./build.sh.ps1 | ||
___process=$? | ||
cd "$__current_path" && unset __current_path | ||
if [ $___process -ne 0 ]; then | ||
|
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# Copyright 2023 (Holloway) Chew, Kean Ho <[email protected]> | ||
# | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may not | ||
# use this file except in compliance with the License. You may obtain a copy | ||
# of the License at: | ||
|
@@ -39,7 +40,7 @@ if ($___process -ne 0) { | |
$null = I18N-Build "${env:PROJECT_ANGULAR}" | ||
$__current_path = Get-Location | ||
$null = Set-Location "${env:PROJECT_PATH_ROOT}\${env:PROJECT_ANGULAR}" | ||
$___process = Angular-Build | ||
$___process = OS-Exec "./build.sh.ps1" | ||
$null = Set-Location "${__current_path}" | ||
$null = Remove-Variable __current_path | ||
if ($___process -ne 0) { | ||
|
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#!/bin/sh | ||
# Copyright 2023 (Holloway) Chew, Kean Ho <[email protected]> | ||
# | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may not | ||
# use this file except in compliance with the License. You may obtain a copy of | ||
# the License at: | ||
|
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# Copyright 2023 (Holloway) Chew, Kean Ho <[email protected]> | ||
# | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may not | ||
# use this file except in compliance with the License. You may obtain a copy | ||
# of the License at: | ||
|
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#!/bin/sh | ||
# Copyright 2023 (Holloway) Chew, Kean Ho <[email protected]> | ||
# | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may not | ||
# use this file except in compliance with the License. You may obtain a copy of | ||
# the License at: | ||
|
@@ -50,7 +51,7 @@ else | |
return 1 | ||
fi | ||
|
||
CHROME_BIN="${___browser}" ANGULAR_Test | ||
CHROME_BIN="${___browser}" ./test.sh.ps1 | ||
if [ $? -ne 0 ]; then | ||
I18N_Run_Failed | ||
return 1 | ||
|
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# Copyright 2023 (Holloway) Chew, Kean Ho <[email protected]> | ||
# | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may not | ||
# use this file except in compliance with the License. You may obtain a copy | ||
# of the License at: | ||
|
@@ -51,7 +52,7 @@ if ($(OS-Is-Run-Simulated) -eq 0) { | |
} | ||
$env:CHROME_BIN = $___browser | ||
|
||
$___process = ANGULAR-Test | ||
$___process = OS-Exec "./test.sh.ps1" | ||
if ($___process -ne 0) { | ||
$null = I18N-Run-Failed | ||
return 1 | ||
|
Oops, something went wrong.