Skip to content

Commit b3e136b

Browse files
Cleanup repo structure & naming (#1734)
1 parent bd550ae commit b3e136b

File tree

161 files changed

+67
-128
lines changed

Some content is hidden

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

161 files changed

+67
-128
lines changed

.changeset/great-geese-collect.md

+11

.devcontainer/avatax/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ WORKDIR /app
1010
RUN mkdir -p /app/.pnpm-store
1111
RUN chown -R node:node /app/.pnpm-store
1212

13-
RUN pnpm install --frozen-lockfile --filter=app-avatax
13+
RUN pnpm install --frozen-lockfile --filter=saleor-app-avatax

.devcontainer/cms-v2/Dockerfile .devcontainer/cms/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ WORKDIR /app
1010
RUN mkdir -p /app/.pnpm-store
1111
RUN chown -R node:node /app/.pnpm-store
1212

13-
RUN pnpm install --frozen-lockfile --filter=cms-v2
13+
RUN pnpm install --frozen-lockfile --filter=saleor-app-cms

.devcontainer/cms-v2/devcontainer.json .devcontainer/cms/devcontainer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "CMS app",
33
"dockerComposeFile": "docker-compose.yml",
4-
"service": "cms-v2",
5-
"workspaceFolder": "/app/apps/cms-v2",
4+
"service": "cms",
5+
"workspaceFolder": "/app/apps/cms",
66
"forwardPorts": [3000],
77
"portsAttributes": {
88
"3000": {

.devcontainer/cms-v2/docker-compose.yml .devcontainer/cms/docker-compose.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
name: saleor-app-cms-v2_devcontainer
1+
name: saleor-app-cms_devcontainer
22
services:
3-
cms-v2:
4-
image: cms-v2
3+
cms:
4+
image: cms
55
command: sleep infinity # keeps docker container running
66
build:
77
context: ../..
8-
dockerfile: .devcontainer/cms-v2/Dockerfile
8+
dockerfile: .devcontainer/cms/Dockerfile
99
volumes:
1010
- "../..:/app"
1111
- "pnpm-store:/app/.pnpm-store"

.devcontainer/klaviyo/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ WORKDIR /app
1010
RUN mkdir -p /app/.pnpm-store
1111
RUN chown -R node:node /app/.pnpm-store
1212

13-
RUN pnpm install --frozen-lockfile --filter=klaviyo
13+
RUN pnpm install --frozen-lockfile --filter=saleor-app-klaviyo

.devcontainer/products-feed/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ WORKDIR /app
1010
RUN mkdir -p /app/.pnpm-store
1111
RUN chown -R node:node /app/.pnpm-store
1212

13-
RUN pnpm install --frozen-lockfile --filter=products-feed
13+
RUN pnpm install --frozen-lockfile --filter=saleor-app-products-feed

.devcontainer/search/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ WORKDIR /app
1010
RUN mkdir -p /app/.pnpm-store
1111
RUN chown -R node:node /app/.pnpm-store
1212

13-
RUN pnpm install --frozen-lockfile --filter=search
13+
RUN pnpm install --frozen-lockfile --filter=saleor-app-search

.devcontainer/segment/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ WORKDIR /app
1010
RUN mkdir -p /app/.pnpm-store
1111
RUN chown -R node:node /app/.pnpm-store
1212

13-
RUN pnpm install --frozen-lockfile --filter=segment
13+
RUN pnpm install --frozen-lockfile --filter=saleor-app-segment

.devcontainer/smtp/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ WORKDIR /app
1010
RUN mkdir -p /app/.pnpm-store
1111
RUN chown -R node:node /app/.pnpm-store
1212

13-
RUN pnpm install --frozen-lockfile --filter=smtp
13+
RUN pnpm install --frozen-lockfile --filter=saleor-app-smtp

.github/labeler.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
"App: CMS":
1818
- changed-files:
19-
- any-glob-to-any-file: "apps/cms-v2/**/*"
19+
- any-glob-to-any-file: "apps/cms/**/*"
2020

2121
"App: SMTP":
2222
- changed-files:

.github/workflows/e2e.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
node-version-file: ".nvmrc"
3737
cache: "pnpm"
3838
- name: Install dependencies
39-
run: pnpm install --frozen-lockfile --filter=app-avatax
39+
run: pnpm install --frozen-lockfile --filter=saleor-app-avatax
4040
- name: Get Saleor snapshot
4141
run: |
4242
BACKUP=$(pnpm dlx saleor backup list --name="snapshot-ext-$SALEOR_VERSION-e2e" --latest --json)
@@ -60,5 +60,5 @@ jobs:
6060
AWS_ACCESS_KEY_ID: "op://Shop-ex/saleor-app-avatax-e2e-${{ env.SALEOR_VERSION }}/AWS_ACCESS_KEY_ID"
6161
AWS_SECRET_ACCESS_KEY: "op://Shop-ex/saleor-app-avatax-e2e-${{ env.SALEOR_VERSION }}/AWS_SECRET_ACCESS_KEY"
6262
- name: Run e2e tests
63-
run: pnpm --filter=app-avatax e2e
63+
run: pnpm --filter=saleor-app-avatax e2e
6464
# TODO: Add HTML report: https://linear.app/saleor/issue/SHOPX-304

README.md

+7-7

apps/avatax/CHANGELOG.md

+1-1

apps/avatax/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"name": "app-avatax",
2+
"name": "saleor-app-avatax",
33
"version": "1.12.8",
44
"scripts": {
5-
"build": " next build",
5+
"build": "next build",
66
"check-types": "tsc --noEmit",
77
"deploy": "tsx --require dotenv/config ./scripts/deploy.ts",
88
"dev": "NODE_OPTIONS='--inspect' next dev",
File renamed without changes.
File renamed without changes.
File renamed without changes.

apps/cms-v2/CHANGELOG.md apps/cms/CHANGELOG.md

+1-1
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

apps/cms-v2/package.json apps/cms/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "cms-v2",
2+
"name": "saleor-app-cms",
33
"version": "2.10.0",
44
"scripts": {
55
"build": "next build",
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

apps/cms-v2/src/modules/bulk-sync/bulk-sync-processor.ts apps/cms/src/modules/bulk-sync/bulk-sync-processor.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ export type BulkSyncProcessorHooks = {
99
export interface BulkSyncProcessor {
1010
uploadProducts(
1111
products: BulkImportProductFragment[],
12-
hooks: BulkSyncProcessorHooks
12+
hooks: BulkSyncProcessorHooks,
1313
): Promise<void>;
1414
}

apps/cms-v2/src/modules/bulk-sync/use-bulk-sync-products-state.ts apps/cms/src/modules/bulk-sync/use-bulk-sync-products-state.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { VariantsSyncStatusListItem } from "./variants-sync-status-list";
66
export const useBulkSyncProductsState = () => {
77
const [finished, setFinished] = useState(false);
88
const [productsStatusList, setProductsStatusList] = useState<VariantsSyncStatusListItem[] | null>(
9-
null
9+
null,
1010
);
1111

1212
useEffect(() => {
@@ -31,7 +31,7 @@ export const useBulkSyncProductsState = () => {
3131
})) ?? [];
3232

3333
return items;
34-
})
34+
}),
3535
);
3636
}, []),
3737
setItemStatus: useCallback(
@@ -46,10 +46,10 @@ export const useBulkSyncProductsState = () => {
4646
}
4747

4848
return item;
49-
})
49+
}),
5050
);
5151
},
52-
[]
52+
[],
5353
),
5454
};
5555
};

apps/cms-v2/src/modules/providers/datocms/datocms-client.ts apps/cms/src/modules/providers/datocms/datocms-client.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ApiError,buildClient, Client, SimpleSchemaTypes } from "@datocms/cma-client-browser";
1+
import { ApiError, buildClient, Client, SimpleSchemaTypes } from "@datocms/cma-client-browser";
22
import * as Sentry from "@sentry/nextjs";
33
import { z } from "zod";
44

apps/cms-v2/src/modules/shared/generate-id.test.ts apps/cms/src/modules/shared/generate-id.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { describe, expect,it } from "vitest";
1+
import { describe, expect, it } from "vitest";
22

33
import { generateId } from "./generate-id";
44

File renamed without changes.

apps/cms-v2/src/modules/trpc/create-instrumented-graphql-client.ts apps/cms/src/modules/trpc/create-instrumented-graphql-client.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { otelExchange } from "@saleor/apps-otel";
2-
import { createGraphQLClient,CreateGraphQLClientArgs } from "@saleor/apps-shared";
2+
import { createGraphQLClient, CreateGraphQLClientArgs } from "@saleor/apps-shared";
33

44
type CreateGraphQLClientProps = Omit<CreateGraphQLClientArgs, "opts">;
55

apps/cms-v2/src/modules/trpc/trpc-client.ts apps/cms/src/modules/trpc/trpc-client.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const trpcClient = createTRPCNext<AppRouter>({
2323

2424
if (!token || !saleorApiUrl) {
2525
console.error(
26-
"Can't initialize tRPC client before establishing the App Bridge connection"
26+
"Can't initialize tRPC client before establishing the App Bridge connection",
2727
);
2828
throw new Error("Token and Saleor API URL unknown");
2929
}

apps/cms-v2/src/modules/trpc/trpc-context.ts apps/cms/src/modules/trpc/trpc-context.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { SALEOR_API_URL_HEADER,SALEOR_AUTHORIZATION_BEARER_HEADER } from "@saleor/app-sdk/const";
1+
import { SALEOR_API_URL_HEADER, SALEOR_AUTHORIZATION_BEARER_HEADER } from "@saleor/app-sdk/const";
22
import { getAppBaseUrl } from "@saleor/apps-shared";
33
import { inferAsyncReturnType } from "@trpc/server";
44
import * as trpcNext from "@trpc/server/adapters/next";
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

apps/klaviyo/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "klaviyo",
2+
"name": "saleor-app-klaviyo",
33
"version": "1.12.20",
44
"scripts": {
55
"build": "next build",

apps/products-feed/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "products-feed",
2+
"name": "saleor-app-products-feed",
33
"version": "1.21.0",
44
"scripts": {
55
"build": "next build",

apps/search/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "search",
2+
"name": "saleor-app-search",
33
"version": "1.22.21",
44
"scripts": {
55
"build": "next build",

apps/segment/CHANGELOG.md

+1-1

apps/segment/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "segment",
2+
"name": "saleor-app-segment",
33
"version": "2.0.6",
44
"scripts": {
55
"build": "next build",

apps/smtp/CHANGELOG.md

+1-1

apps/smtp/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "smtp",
2+
"name": "saleor-app-smtp",
33
"version": "1.2.23",
44
"scripts": {
55
"build": "next build",

codecov.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ flags:
3131
- apps/avatax/
3232
cms:
3333
paths:
34-
- apps/cms-v2/
34+
- apps/cms/
3535
products-feed:
3636
paths:
3737
- apps/products-feed/

0 commit comments

Comments
 (0)