Skip to content

Commit 1940c5a

Browse files
hollowaykeanhoJeanShuralyovcorygalyna
committed
root: upgraded Angular workspace to be static site generator
Since it's very common now to develop and deploy JAM stack web application and Angular is now fully capable of doing so, we can proceed to upgrade the default workspace here. Hence, let's do this. This patch upgrades Angular workspace to be the static site generator in root repository. Co-authored-by: Shuralyov, Jean <jean.shuralyov@proton.me> Co-authored-by: Galyna, Cory <cory.galyna@gmail.com> Co-authored-by: (Holloway) Chew, Kean Ho <me@hollowaykeanho.com> Signed-off-by: (Holloway) Chew, Kean Ho <me@hollowaykeanho.com>
1 parent 8018485 commit 1940c5a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+5122
-3019
lines changed

Angular/.ci/build_unix-any.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/bin/sh
22
# Copyright 2023 (Holloway) Chew, Kean Ho <hollowaykeanho@gmail.com>
33
#
4-
#
54
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
65
# use this file except in compliance with the License. You may obtain a copy of
76
# the License at:

Angular/.ci/build_windows-any.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Copyright 2023 (Holloway) Chew, Kean Ho <hollowaykeanho@gmail.com>
22
#
3-
#
43
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
54
# use this file except in compliance with the License. You may obtain a copy
65
# of the License at:

Angular/.ci/clean_unix-any.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/bin/sh
22
# Copyright 2024 (Holloway) Chew, Kean Ho <hollowaykeanho@gmail.com>
33
#
4-
#
54
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
65
# use this file except in compliance with the License. You may obtain a copy of
76
# the License at:

Angular/.ci/clean_windows-any.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Copyright 2024 (Holloway) Chew, Kean Ho <hollowaykeanho@gmail.com>
22
#
3-
#
43
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
54
# use this file except in compliance with the License. You may obtain a copy
65
# of the License at:

Angular/.ci/prepare_unix-any.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/bin/sh
22
# Copyright 2023 (Holloway) Chew, Kean Ho <hollowaykeanho@gmail.com>
33
#
4-
#
54
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
65
# use this file except in compliance with the License. You may obtain a copy of
76
# the License at:

Angular/.ci/prepare_windows-any.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Copyright 2023 (Holloway) Chew, Kean Ho <hollowaykeanho@gmail.com>
22
#
3-
#
43
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
54
# use this file except in compliance with the License. You may obtain a copy
65
# of the License at:

Angular/.ci/test_unix-any.sh

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,25 @@ if [ $(OS_Is_Run_Simulated) -eq 0 ]; then
4545
I18N_Simulate_Testing
4646
return 0
4747
else
48-
___browser="$(type -p google-chrome)"
49-
if [ $(STRINGS_Is_Empty "$___browser") -eq 0 ]; then
48+
___old_IFS="$IFS"
49+
while IFS="" read -r ___line || [ -n "$___line" ]; do
50+
___browser="$(type -p chromium)"
51+
if [ ! -z "$___browser" ]; then
52+
break
53+
fi
54+
done << EOF
55+
chromium
56+
google-chrome
57+
brave-browser
58+
EOF
59+
IFS="$___old_IFS" && unset ___old_IFS ___line
60+
61+
if [ "$___browser" = "" ]; then
5062
I18N_Run_Failed
5163
return 1
5264
fi
5365

54-
CHROME_BIN="${___browser}" ./test.sh.ps1
66+
CHROME_BIN="$___browser" ./test.sh.ps1
5567
if [ $? -ne 0 ]; then
5668
I18N_Run_Failed
5769
return 1

Angular/.gitignore

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
################################################################################
2+
# Project-Specific and User-Defined Files & Directories #
3+
# (1) Specify your project specific files and directories here. You should #
4+
# only touch this section. #
5+
################################################################################
6+
7+
8+
9+
10+
################################################################################
11+
# AutomataCI - Angular #
12+
# (1) These are auto-generated asset files. Leave them as it is in order to #
13+
# maintain good and proper performance. #
14+
################################################################################
15+
assets/.nojekyll
16+
assets/CNAME
17+
assets/browserconfig.xml
18+
assets/manifest.webmanifest
19+
assets/robots.txt
20+
assets/sitemap.xml
21+
assets/sitemaps/
22+
23+
24+
25+
26+
################################################################################
27+
# Angular & Node #
28+
# (1) These are Angular and Node disposable files. Leave them as it is in #
29+
# order to maintain good and proper performance. #
30+
################################################################################
31+
out-tsc
32+
bazel-out
33+
cache/
34+
coverage/
35+
dist/
36+
.sass-cache/
37+
connect.lock
38+
libpeerconnection.log
39+
testem.log
40+
typings

0 commit comments

Comments
 (0)