From f76ba2eeacf70e96b8c570d329b4bec6abc934da Mon Sep 17 00:00:00 2001 From: "S. Amir Mohammad Najafi" Date: Tue, 16 Jan 2024 16:02:03 +0330 Subject: [PATCH] chore: change project name from pmpa to new --- .github/workflows/publish-container.yml | 10 +++++----- README.md | 2 +- deploy/env/production.env | 16 ++++++++-------- package.json | 4 ++-- packages/api/package.json | 10 +++++----- packages/api/src/lib/config.ts | 2 +- packages/api/src/route/home.ts | 2 +- packages/app/package.json | 10 +++++----- packages/app/script/logger.mjs | 2 +- packages/app/site/_ts/lib/config.ts | 2 +- 10 files changed, 30 insertions(+), 30 deletions(-) diff --git a/.github/workflows/publish-container.yml b/.github/workflows/publish-container.yml index 98ee1e5..7536c48 100644 --- a/.github/workflows/publish-container.yml +++ b/.github/workflows/publish-container.yml @@ -29,12 +29,12 @@ jobs: fail-fast: false matrix: include: - - name: pmpa-app + - name: soffit-order-admin-app path: ./packages/app context: . - - name: pmpa-api - path: ./packages/api - context: . + # - name: soffit-order-admin-api + # path: ./packages/api + # context: . permissions: contents: read @@ -101,7 +101,7 @@ jobs: labels: | org.opencontainers.image.title="alwatr/${{matrix.name}}" org.opencontainers.image.vendor="Alwatr" - org.opencontainers.image.documentation="https://github.com/Alwatr/pmpa" + org.opencontainers.image.documentation="https://github.com/Alwatr/soffit-order-admin" org.opencontainers.image.authors="S. Ali Mihandoost (https://ali.mihandoost.com), S. Amir Mohammad Najafi (https://www.njfamirm.ir)" - name: 🚀 Build and push container image diff --git a/README.md b/README.md index 374a455..d9191c9 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ -# Alwatr PMPA +# Soffit Order Admin Progressive Multi Page (Web) Application. diff --git a/deploy/env/production.env b/deploy/env/production.env index ebb8abd..079ec9d 100644 --- a/deploy/env/production.env +++ b/deploy/env/production.env @@ -1,16 +1,16 @@ -appId='pmpa' +appId='soffit-order-admin' deployHost='mci2.alwatr.ir' deployPath="/srv/${appId}" -appForceDomain='pmpa.alwatr.ir' -domain="pmpa.alwatr.ir" +appForceDomain='admin.order.soffit.co' +domain="admin.order.soffit.co" -appImage='ghcr.io/alwatr/pmpa-app:next' -apiImage='ghcr.io/alwatr/pmpa-api:next' +appImage='ghcr.io/alwatr/soffit-order-admin-app:next' +# apiImage='ghcr.io/alwatr/soffit-order-admin-api:next' -storageAccessToken='your_secret_token' +# storageAccessToken='your_secret_token' -apiDebug=1 -storageApiDebug=1 +# apiDebug=1 +# storageApiDebug=1 # appAccessLog=off # storageAccessLog=off diff --git a/package.json b/package.json index 2b2f45f..79385e8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { - "name": "@alwatr/pmpa-monorepo", + "name": "@alwatr/soffit-order-admin-monorepo", "description": "Progressive Multi Page (Web) Application.", - "repository": "https://github.com/Alwatr/pmpa", + "repository": "https://github.com/Alwatr/soffit-order-admin", "author": "S. Ali Mihandoost (https://ali.mihandoost.com)", "license": "MIT", "type": "module", diff --git a/packages/api/package.json b/packages/api/package.json index 9fd602e..5d74f1f 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { - "name": "@alwatr/pmpa-api", - "version": "1.1.1", + "name": "@alwatr/soffit-order-admin-api", + "version": "0.0.0", "description": "Alwatr Progressive Multi Page (Web) Application.", "author": "S. Ali Mihandoost ", "private": true, @@ -12,12 +12,12 @@ }, "repository": { "type": "git", - "url": "https://github.com/Alwatr/pmpa", + "url": "https://github.com/Alwatr/soffit-order-admin", "directory": "packages/api" }, - "homepage": "https://github.com/Alwatr/pmpa#readme", + "homepage": "https://github.com/Alwatr/soffit-order-admin#readme", "bugs": { - "url": "https://github.com/Alwatr/pmpa/issues" + "url": "https://github.com/Alwatr/soffit-order-admin/issues" }, "prettier": "@alwatr/prettier-config", "nano-build-development": { diff --git a/packages/api/src/lib/config.ts b/packages/api/src/lib/config.ts index c3c70e9..b34b345 100644 --- a/packages/api/src/lib/config.ts +++ b/packages/api/src/lib/config.ts @@ -2,7 +2,7 @@ import {definePackage} from '@alwatr/logger'; import type {} from '@alwatr/nano-build' -export const logger = definePackage('@alwatr/pmpa-api', __package_version__); +export const logger = definePackage('@alwatr/soffit-order-admin-api', __package_version__); if (process.env.NODE_ENV === 'production') { if (process.env.STORAGE_TOKEN == null) { diff --git a/packages/api/src/route/home.ts b/packages/api/src/route/home.ts index 415e30b..d14135f 100644 --- a/packages/api/src/route/home.ts +++ b/packages/api/src/route/home.ts @@ -5,7 +5,7 @@ import type {StringifyableRecord} from '@alwatr/type'; nanoServer.route('GET', '/', () => ({ ok: true, data: { - app: '..:: Alwatr PMPA API ::..', + app: '..:: Soffit Order Admin API ::..', message: 'Hello ;)', }, })); diff --git a/packages/app/package.json b/packages/app/package.json index 5b0e49c..f0d656a 100644 --- a/packages/app/package.json +++ b/packages/app/package.json @@ -1,6 +1,6 @@ { - "name": "@alwatr/pmpa-app", - "version": "1.1.1", + "name": "@alwatr/soffit-order-admin-app", + "version": "0.0.0", "description": "Alwatr Progressive Multi Page (Web) Application.", "author": "S. Ali Mihandoost ", "private": true, @@ -14,12 +14,12 @@ }, "repository": { "type": "git", - "url": "https://github.com/Alwatr/pmpa", + "url": "https://github.com/Alwatr/soffit-order-admin", "directory": "packages/app" }, - "homepage": "https://github.com/Alwatr/pmpa#readme", + "homepage": "https://github.com/Alwatr/soffit-order-admin#readme", "bugs": { - "url": "https://github.com/Alwatr/pmpa/issues" + "url": "https://github.com/Alwatr/soffit-order-admin/issues" }, "prettier": "@alwatr/prettier-config", "nano-build-development": { diff --git a/packages/app/script/logger.mjs b/packages/app/script/logger.mjs index e62630f..7f08b09 100644 --- a/packages/app/script/logger.mjs +++ b/packages/app/script/logger.mjs @@ -1,6 +1,6 @@ import {definePackage} from '@alwatr/logger'; -export const logger = definePackage('@alwatr/pmpa-app-build', '1.x', true); +export const logger = definePackage('@alwatr/soffit-order-admin-app-build', '1.x', true); export const devMode = process.env.NODE_ENV !== 'production'; logger.logProperty?.('devMode', devMode); diff --git a/packages/app/site/_ts/lib/config.ts b/packages/app/site/_ts/lib/config.ts index cf104da..75f87c9 100644 --- a/packages/app/site/_ts/lib/config.ts +++ b/packages/app/site/_ts/lib/config.ts @@ -4,7 +4,7 @@ import {getLocalStorageItem} from '@alwatr/util'; import type {} from '@alwatr/nano-build' import type {ServerRequestConfig} from '@alwatr/server-context'; -export const logger = definePackage('@alwatr/pmpa-app', __package_version__); +export const logger = definePackage('@alwatr/soffit-order-admin-app', __package_version__); /** * Debug API.