Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep feature branch integrate-commerce-sdk-react up to date #960

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
95a0a8e
New year, new look! (#876)
wjhsf Jan 5, 2023
4939ba7
Update from 2.5.0 (#881)
alexvuong Jan 6, 2023
b04e633
Set commerce-sdk-react package to private (#882)
vcua-mobify Jan 6, 2023
f15520e
test-commerce: comment out not-implemented customer hooks (#877)
vmarta Jan 9, 2023
1c1ae36
Change padding (#899)
GoodNightBuddy Jan 11, 2023
6ef48f6
[Snyk] Security upgrade eslint-import-resolver-webpack from 0.10.0 to…
snyk-bot Jan 12, 2023
3a2f185
Cache SLAS callback using request processor (#884)
kevinxh Jan 12, 2023
cc45783
Rotate fingerprint ssh for deploy commerce sdk doc (#905)
alexvuong Jan 12, 2023
b25895d
Feature/megamenu fixes (#875)
yunakim714 Jan 19, 2023
4f545d9
Mega menu fixes (#910)
wjhsf Jan 19, 2023
e235c3a
GitHub Actions (#854)
adamraya Jan 19, 2023
e3e95eb
GitHub Actions fixes (#915)
adamraya Jan 19, 2023
90ce08c
Remove Circle CI config, fix IS_NOT_FORK (#921)
adamraya Jan 20, 2023
aea0894
Fix develop branch name (#923)
adamraya Jan 20, 2023
34608a0
Fix wrong proptypes (#924)
alexvuong Jan 24, 2023
6d8563a
Update createOrder to send SLAS USID (#920)
vcua-mobify Jan 24, 2023
37c932e
Upgrade prettier to v2 (#926)
wjhsf Jan 24, 2023
e86673a
Remove unnecessary map statement (#929)
alexvuong Jan 24, 2023
febe11c
fix: packages/pwa-kit-runtime/package.json & packages/pwa-kit-runtime…
cc-prodsec Jan 25, 2023
1279de5
Update `develop` with v2.6.0 (#939)
adamraya Jan 26, 2023
bdb7309
Allow support for multiple sites concurrently w/ `commerce-sdk-react`…
bendvc Jan 26, 2023
c033ed0
@W-11920099 Re-write 'npm push' in Typescript, warn if Node deprecate…
olibrook Jan 26, 2023
6dc369c
Fix broken CI – confusing path to package.json in the 'dist' director…
olibrook Jan 27, 2023
7cb2532
fix: handle special characters in `boldString` util (#942)
breadadams Jan 30, 2023
40e2c18
Replace isomorphic jest mocks with msw handlers (#944)
yunakim714 Jan 30, 2023
48cf774
Remove the PersistentCache functionality (#949)
kieran-sf Jan 30, 2023
057dc83
Update customer baskets cache when there is a basket mutation (#945)
alexvuong Jan 31, 2023
c078552
Fix layout shift for mega menu (#952)
yunakim714 Jan 31, 2023
4b63fc4
Serialize category data once only (#953)
yunakim714 Jan 31, 2023
7e34838
chore: update pwa-kit-dev eslint config (#950)
breadadams Feb 1, 2023
e53aa12
merge develop
kevinxh Feb 4, 2023
31e6a06
resolving testing/merge errors
yunakim714 Feb 6, 2023
8b235fa
Add Shopper Experience hooks (#958)
adamraya Feb 6, 2023
79e4848
add changelog
alexvuong Feb 6, 2023
eb301b9
Apply changes from commerce react sdk in feature branch (#964)
alexvuong Feb 8, 2023
95030c8
Merge branch 'develop' into merge2_feature/integrate-commerce-sdk-react
alexvuong Feb 8, 2023
ffd841d
Remove wrong changlog
alexvuong Feb 8, 2023
d78fd83
keep the same as develop
alexvuong Feb 8, 2023
484317c
linting
alexvuong Feb 8, 2023
fe8aed0
fix formatMessage
alexvuong Feb 9, 2023
a440751
bump sizes temporarily
alexvuong Feb 9, 2023
a8691cd
fix product list tests
yunakim714 Feb 9, 2023
9a0484a
fix header tests
alexvuong Feb 10, 2023
7355ee7
fix add to cart modal
alexvuong Feb 10, 2023
b089b02
skip tests and low test coverate temporarily
alexvuong Feb 11, 2023
848f1b5
linting
alexvuong Feb 13, 2023
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
473 changes: 0 additions & 473 deletions .circleci/config.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
**/package-lock.json binary linguist-generated=true
* text=auto
* text=auto eol=lf
12 changes: 12 additions & 0 deletions .github/actions/check_clean/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: check_clean
runs:
using: composite
steps:
- name: Check Repository Clean
run: |-
# Print status for debugging on CircleCI.
git status
# Fail the build if any step leaves uncommitted changes in the repo
# that would prevent Lerna from publishing (Lerna gets this right).
git diff --exit-code
shell: bash
18 changes: 18 additions & 0 deletions .github/actions/count_deps/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: count_deps
runs:
using: composite
steps:
- name: Count Generated Project Dependencies
# TODO: Can TOTAL_PACKAGES be exported in a cleaner way?
run: |-
MAX_PACKAGES="2260"
total=$(./scripts/count-dependencies.js generated-${{ matrix.template }})
echo "TOTAL_PACKAGES=${total}" >> $GITHUB_ENV

if [ "$total" -gt "$MAX_PACKAGES" ]; then
echo "Error: Found $TOTAL_PACKAGES installed packages (max $MAX_PACKAGES).";
exit 1;
else
echo "Found $TOTAL_PACKAGES installed packages (max $MAX_PACKAGES).";
fi
shell: bash
14 changes: 14 additions & 0 deletions .github/actions/create_mrt/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: create_mrt
inputs:
mobify_user:
description: "Mobify user email"
mobify_api_key:
description: "Mobify user API key"
runs:
using: composite
steps:
- name: Create MRT credentials file
run: |-
# Add credentials file at ~/.mobify so we can upload to Mobify Cloud
npm run save-credentials --prefix packages/template-retail-react-app -- --user "${{inputs.mobify_user}}" --key "${{inputs.mobify_api_key}}"
shell: bash
16 changes: 16 additions & 0 deletions .github/actions/datadog/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: datadog
inputs:
datadog_api_key:
description: "Datadog API key"
TOTAL_PACKAGES:
description: "Total # of packages"
runs:
using: composite
steps:
- name: Send metrics to Datadog
run : |
# Add a dogrc so we can submit metrics to datadog
printf "[Connection]\napikey = ${{inputs.datadog_api_key}}\nappkey =\n" > ~/.dogrc

dog metric post mobify_platform_sdks.generated_project_total_packages ${{ inputs.TOTAL_PACKAGES }}
shell: bash
7 changes: 7 additions & 0 deletions .github/actions/lighthouse_ci/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: lighthouse_ci
runs:
using: composite
steps:
- name: Run Lighthouse CI on the PWA
run: npm run test:lighthouse --prefix packages/template-retail-react-app
shell: bash
21 changes: 21 additions & 0 deletions .github/actions/publish_to_npm/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: publish_to_npm
inputs:
NODE_AUTH_TOKEN:
description: "Node auth token"
runs:
using: composite
steps:
# TODO: Figure out a way to specify whether to publish to "latest" or "next" tag
- name: Publish to NPM
run: |-
# Add NPM token to allow publishing
echo "//registry.npmjs.org/:_authToken=${{ inputs.NODE_AUTH_TOKEN }}" > ~/.npmrc

# Publish all changed packages. The "from-package" arg means "look
# at the version numbers in each package.json file and if that doesn't
# exist on NPM, publish"
npm run lerna -- publish from-package --yes --no-verify-access

# Cleanup
rm ~/.npmrc
shell: bash
18 changes: 18 additions & 0 deletions .github/actions/push_to_mrt/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: push_to_mrt
inputs:
CWD:
description: Project directory
TARGET:
description: MRT target
runs:
using: composite
steps:
- name: Push Bundle to MRT
run: |-
cd ${{ inputs.CWD }}
project="scaffold-pwa"
build="build ${{ github.run_id }} on ${{ github.ref }} (${{ github.sha }})"
if [[ ${{ inputs.TARGET }} ]]; then
npm run push -- -s $project --message "$build" --target ${{ inputs.TARGET }}
fi
shell: bash
35 changes: 35 additions & 0 deletions .github/actions/setup_ubuntu/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: setup_ubuntu
inputs:
cwd:
required: false
default: "${PWD}"
description: "Setup Ubuntu Machine"
runs:
using: composite
steps:
- name: Install Dependencies
run: |-
# Install system dependencies
sudo apt-get update -yq
sudo apt-get install python2 python3-pip time -yq
sudo pip install -U pip setuptools
sudo pip install awscli==1.18.85 datadog==0.40.1

# Install node dependencies
node ./scripts/gtime.js monorepo_install npm ci

# Build the PWA
npm run lerna -- run analyze-build --scope "retail-react-app"

# Report bundle sizes
node ./scripts/report-bundle-size.js

# Check that packages are all using the same versions of compilers, etc.
node ./scripts/check-dependencies.js

# Install Snyk CLI
sudo npm install -g snyk

# Install Lighthouse CI CLI
sudo npm install -g @lhci/cli
shell: bash
14 changes: 14 additions & 0 deletions .github/actions/setup_windows/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: setup_windows
inputs:
cwd:
required: false
default: "${PWD}"
description: "Setup Windows Machine"
runs:
using: composite
steps:
- name: Install Dependencies
run: |-
# Install node dependencies
npm ci
shell: bash
14 changes: 14 additions & 0 deletions .github/actions/smoke_tests/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: smoke_tests
inputs:
dir:
required: false
# The path to a project to test
default: "./packages/template-retail-react-app"
runs:
using: composite
steps:
- name: Smoke test scripts
run: |-
# Basic smoke-tests for uncommonly run scripts in a project
node ./scripts/smoke-test-npm-scripts.js --dir ${{ inputs.dir }}
shell: bash
15 changes: 15 additions & 0 deletions .github/actions/snyk/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: snyk
inputs:
snyk_token:
description: "Snyk token"
DEVELOP:
description: "Is this the 'develop' branch?"
runs:
using: composite
steps:
- name: Audit Generated Project
run: |-
# Run snyk auth - authenticate snyk using environment variables to add the token
snyk auth ${{ inputs.snyk_token }}
snyk monitor --ignore-policy --remote-repo-url='https://github.com/SalesforceCommerceCloud/pwa-kit.git' --project-name='generated-scaffold-pwa'
shell: bash
27 changes: 27 additions & 0 deletions .github/actions/unit_tests/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: unit_tests
inputs:
cwd:
required: false
default: "${PWD}"
description: "Run tests action description"
runs:
using: composite
steps:
- name: Run tests step
# TODO: The pilefile policy is a legacy of CircleCI. Is it still needed?
run: |-
# Explicitly set pipefile policy. This is the default for non-windows, but seems
# that is needs to be set on windows to fail immediately.
set -eo pipefail

cd ${{ inputs.cwd }}

# Note: Each of these test commands need to be exposed on the monorepo
# root and *also* on the PWA package. This section is run on both.

# Ensure bundlesize is in check
npm run test:max-file-size

# Always run fast unit tests
npm run test
shell: bash
Loading