small refactor
This commit is contained in:
parent
180dfb0286
commit
b34ef8149b
4 changed files with 31 additions and 19 deletions
|
@ -24,34 +24,44 @@ ALL_APPS = [
|
|||
workspace = false
|
||||
alias = "build"
|
||||
|
||||
[tasks.update-repos]
|
||||
workspace = false
|
||||
script = '''
|
||||
git submodule foreach --recursive git reset --hard
|
||||
git submodule update --recursive --remote
|
||||
'''
|
||||
|
||||
# Overrides the default build task
|
||||
[tasks.build]
|
||||
workspace = false
|
||||
alias = "build-all"
|
||||
|
||||
[tasks.build-all]
|
||||
workspace = false
|
||||
dependencies = [
|
||||
# "delete-images",
|
||||
run_task = { name = [
|
||||
"delete-images",
|
||||
"build-abandoned-checkouts",
|
||||
"build-stripe",
|
||||
"build-klarna",
|
||||
# "build-authorize-net", -- Error: 11.26 Type error: Cannot find module '../generated/graphql' or its corresponding type declarations.
|
||||
"build-authorize-net",
|
||||
"build-avatax",
|
||||
# "build-cms-v2", -- Error: Unable to find 'schema-ast'
|
||||
# "build-crm", -- Error: Unable to find 'schema-ast'
|
||||
"build-cms-v2",
|
||||
"build-crm",
|
||||
"build-data-importer",
|
||||
"build-emails-and-messages",
|
||||
"build-invoices",
|
||||
"build-klaviyo",
|
||||
"build-products-feed",
|
||||
"build-search",
|
||||
# "build-segment", -- Error: Unable to find 'schema-ast'
|
||||
"build-segment",
|
||||
"build-slack",
|
||||
"build-smtp",
|
||||
"build-taxjar",
|
||||
|
||||
]
|
||||
], parallel = true }
|
||||
# segment: -- Error: Unable to find 'schema-ast'
|
||||
# crm: -- Error: Unable to find 'schema-ast'
|
||||
# cms-v2: -- Error: Unable to find 'schema-ast'
|
||||
# avatax: -- x Could not find the following tasks in project: build
|
||||
# authorize-net: -- Error: 11.26 Type error: Cannot find module '../generated/graphql' or its corresponding type declarations.
|
||||
workspace = false
|
||||
|
||||
[tasks.apply-changes]
|
||||
workspace = false
|
||||
|
@ -80,8 +90,9 @@ docker push ${CONTAINER_PUSH_URL}/saleor-app-${APP}
|
|||
[tasks.delete-images]
|
||||
workspace = false
|
||||
script = '''
|
||||
for i in ${ALL_APPS[*]}; do
|
||||
docker rmi -f $(docker image ls -q --filter=label=service=saleor-app-$i) 2>&1 || true
|
||||
ALL_IMAGES=$(docker images -qa --filter "label=src=saleor-dockerize-all-apps" --format "{{.Repository}}:{{.Tag}}")
|
||||
for i in ${ALL_IMAGES[*]}; do
|
||||
docker rmi -f $i 2>&1 || true
|
||||
done
|
||||
'''
|
||||
|
||||
|
|
|
@ -74,7 +74,7 @@ find ./all_apps/apps -name "saleor-app.ts" -exec cargo run --package modify-sale
|
|||
echo "pached all_apps/apps/**/saleor-app.ts"
|
||||
|
||||
find ./all_apps/apps -name "next.config.js" -exec cargo run --package modify-next-config -- {} \; >/dev/null 2>&1
|
||||
echo "pached all_apps/apps/**/saleor-app.ts"
|
||||
echo "pached all_apps/apps/**/next.config.js"
|
||||
|
||||
find ./all_apps/saleor-app-abandoned-checkouts -name "saleor-app.ts" -exec cargo run --package modify-saleor-app -- {} \; >/dev/null 2>&1
|
||||
echo "pached all_apps/saleor-app-abandoned-checkouts/**/saleor-app.ts"
|
||||
|
|
|
@ -1 +1 @@
|
|||
const path = require("path");
|
||||
import * as path from "path";
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
REDIS_URL=redis://redis-apl:6379/1
|
||||
REDIS_URL=redis://localhost:6380/2
|
||||
PORT=3010
|
||||
APL=redis
|
||||
SECRET_KEY=idS8Oedýžfmg90S87Edfgnm90S87Dmfgiosuhbfs
|
||||
APP_IFRAME_BASE_URL=https://app-emails.kremik.sk
|
||||
APP_API_BASE_URL=https://app-emails.kremik.sk
|
||||
APP_LOG_LEVEL=info
|
||||
APP_IFRAME_BASE_URL=http://10.100.110.21:3010
|
||||
APP_API_BASE_URL=http://10.100.110.21:3010
|
||||
APP_LOG_LEVEL=trace
|
||||
|
|
Loading…
Reference in a new issue