-
Notifications
You must be signed in to change notification settings - Fork 2
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
1 parent
84003d6
commit 8baf0c8
Showing
1 changed file
with
45 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#!/bin/bash | ||
. ../../scripts/lively-next-flatn-env.sh | ||
lively_next_flatn_env "$(dirname "$(dirname "$(pwd)")")" | ||
export FLATN_DEV_PACKAGE_DIRS=$FLATN_DEV_PACKAGE_DIRS:$(pwd); | ||
|
||
|
||
# Set default value for lang | ||
lang="en" | ||
|
||
# Parse command line options | ||
while [[ $# -gt 0 ]] | ||
do | ||
key="$1" | ||
|
||
case $key in | ||
--lang) | ||
lang="$2" | ||
shift | ||
shift | ||
;; | ||
*) | ||
echo "Unknown option: $key" | ||
exit 1 | ||
;; | ||
esac | ||
done | ||
|
||
# Set path based on language | ||
case $lang in | ||
en) | ||
path="./tools/build-en.mjs" | ||
;; | ||
jp) | ||
path="./tools/build-jp.mjs" | ||
;; | ||
*) | ||
echo "Invalid language option: $lang" | ||
exit 1 | ||
;; | ||
esac | ||
|
||
echo "Selected language: $lang" | ||
echo "Path: $path" | ||
|
||
node --no-warnings --experimental-import-meta-resolve --experimental-loader ../../flatn/resolver.mjs ${path} |