Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{
"plugins": [
"@babel/plugin-transform-react-jsx"
]
"plugins": ["@babel/plugin-transform-react-jsx"]
}
27 changes: 23 additions & 4 deletions .env.dist
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
# ACO Configuration
# The following values define the Commerce Optimizer instance data will be synchronized to.
# See ACO SDK documentation for more information: https://github.com/adobe-commerce/aco-ts-sdk?tab=readme-ov-file#get-your-tenant-id-region-and-environment
# ACO_TENANT_ID: The ID of your Commerce Optimizer instance (ie.XdAHsRLZSusTtmCu3Kzobk).
# ACO_REGION: The region your Commerce Optimizer instance is in (ie. na1)
# ACO_ENVIRONMENT_TYPE: The type of Commerce Optimizer instance (ie. sandbox or production).
# ACO_STOREFRONT_URL: The URL of your Commerce Optimizer storefront. Optional.
ACO_TENANT_ID=
ACO_REGION=
ACO_ENVIRONMENT_TYPE=
ACO_STOREFRONT_URL=

# ACO Server-to-Server Credentials
# AppBuilder Server-to-Server Credentials
# The following values can be copied from the Credential details page in AppBuilder under Organization > Project > Workspace > OAuth Server-to-Server
OAUTH_CLIENT_ID=
OAUTH_CLIENT_SECRET=
OAUTH_TECHNICAL_ACCOUNT_ID=
OAUTH_TECHNICAL_ACCOUNT_EMAIL=
OAUTH_ORG_ID=

# Workspace configs
# Workspace Configuration
# The following values can be copied from the JSON downloadable in AppBuilder from Organization > Project > Workspace
# IO_CONSUMER corresponds to project.org.id
# IO_PROJECT_ID corresponds to project.id
Expand All @@ -22,6 +28,15 @@ IO_PROJECT_ID=
IO_WORKSPACE_ID=

# SFCC Configuration
# The following values define the Salesforce Commerce Cloud instance data will be synchronized from.
# SFCC_API_BASE_URL: The base URL of your SFCC instance’s SCAPI endpoint.
# SFCC_REALM_ID: Your SFCC instance’s Realm ID.
# SFCC_INSTANCE_ID: Your SFCC instance’s instance ID.
# SFCC_ORGANIZATION_ID: Your SFCC instance’s organization ID.
# SFCC_SITE_URL: The URL of the frontend of your SFCC site. Optional.
# SFCC_ADMIN_SITE_URL: The URL of the Business Manager backend of your SFCC site. Optional.
# SFCC_SITE_ID: The id of the SFCC site to sync.
# SFCC_LOCALES_TO_SYNC: A comma separated list of the locales to sync (ie. en-US,fr).
SFCC_API_BASE_URL=
SFCC_REALM_ID=
SFCC_INSTANCE_ID=
Expand All @@ -32,11 +47,15 @@ SFCC_SITE_ID=
SFCC_LOCALES_TO_SYNC=

# SFCC Credentials
SFCC_AUTH_URL=
# The following values configure the Salesforce Commerce Cloud SCAPI client used to retrieve data.
# SFCC_AUTH_URL: The URL of the SFCC OAuth endpoint.
# SFCC_CLIENT_ID: The ID of the SFCC Admin API client.
# SFCC_CLIENT_SECRET: The client secret associated with the SFCC Admin API client above.
SFCC_AUTH_URL=https://account.demandware.com/dwsso/oauth2/access_token
SFCC_CLIENT_ID=
SFCC_CLIENT_SECRET=

# Open telemetry
# Open Telemetry
TELEMETRY_ENABLE=
NGROK_URL=

Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/pr-test-and-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Run Tests And Lint

on:
pull_request:
types: [opened, reopened, synchronize, closed]

jobs:
# Run Unit tests and Lint
unit-tests-and-lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install dependencies
run: npm install

- name: Run lint
run: npm run lint

- name: Check formatting
run: npm run format:check

- name: Run tests
run: npm run test
48 changes: 0 additions & 48 deletions .github/workflows/pr_test.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ config.json
.env*
!.env.dist
.aio
.npmrc

# Adobe I/O console config
console.json
Expand Down
Loading