Skip to content

Commit f4d5c07

Browse files
authored
Merge pull request #5 from adobe-rnd/merge
Get in Sync with June-25 release of aem-boilerplate-commerce
2 parents f7575c4 + 7b073ff commit f4d5c07

File tree

855 files changed

+12845
-20048
lines changed

Some content is hidden

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

855 files changed

+12845
-20048
lines changed

.eslintignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ tools/pdp-metadata
66
scripts/__dropins__
77
scripts/commerce-events-collector.js
88
scripts/commerce-events-sdk.js
9-
scripts/widgets
109
plugins/
1110
cypress/
1211
dompurify.min.js

.eslintrc.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ module.exports = {
1616
},
1717
rules: {
1818
'import/extensions': ['error', { js: 'always' }], // require js file extensions in imports
19+
'import/prefer-default-export': 'off', // allow named exports for single exports
20+
'import/no-cycle': 'off', // allow circular dependencies for browser code
21+
'import/no-relative-packages': 'off', // allow relative imports for browser code
1922
'linebreak-style': ['error', 'unix'], // enforce unix linebreaks
2023
'no-param-reassign': [2, { props: false }], // allow modifying properties of param
2124
'no-use-before-define': [2, { functions: false }],
@@ -26,5 +29,14 @@ module.exports = {
2629
},
2730
],
2831
'no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
32+
'no-underscore-dangle': 'off', // allow all underscore properties
2933
},
34+
overrides: [
35+
{
36+
files: ['build.mjs'],
37+
rules: {
38+
'import/no-extraneous-dependencies': 'off',
39+
},
40+
},
41+
],
3042
};

.github/workflows/run-e2e-tests-saas.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
working-directory: cypress
2222
wait-on: 'http://localhost:3000'
2323
command: npm run cypress:saas:run
24+
env:
25+
AEM_ASSETS_PRIVATE_USER: ${{ secrets.AEM_ASSETS_PRIVATE_USER }}
2426
- uses: actions/upload-artifact@v4
2527
if: failure()
2628
with:

.github/workflows/run-e2e-tests.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
working-directory: cypress
2222
wait-on: 'http://localhost:3000'
2323
command: npm run cypress:run
24+
env:
25+
AEM_ASSETS_PRIVATE_USER: ${{ secrets.AEM_ASSETS_PRIVATE_USER }}
2426
- uses: actions/upload-artifact@v4
2527
if: failure()
2628
with:

.stylelintrc.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
{
2-
"extends": ["stylelint-config-standard"]
2+
"extends": ["stylelint-config-standard"],
3+
"rules": {
4+
"media-feature-range-notation": "prefix",
5+
"selector-class-pattern": null
6+
}
37
}

404.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
if (!match) return;
3636

3737
const { root, placeholders } = match;
38-
38+
3939
if (root) {
4040
const rootMeta = document.createElement('meta');
4141
rootMeta.name = 'root';

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,16 @@
22
This project boilerplate is for AEM Authoring with Edge Delivery Services (aka Crosswalk) projects that integrate with Adobe Commerce.
33

44
## Documentation
5-
https://experienceleague.adobe.com/developer/commerce/storefront/
5+
6+
Before using the boilerplate, we recommend you to go through the documentation on https://experienceleague.adobe.com/developer/commerce/storefront/ and more specifically:
7+
8+
1. [Storefront Developer Tutorial](https://experienceleague.adobe.com/developer/commerce/storefront/get-started/)
9+
1. [AEM Docs](https://www.aem.live/docs/)
10+
1. [AEM Developer Tutorial](https://www.aem.live/developer/tutorial)
11+
1. [The Anatomy of an AEM Project](https://www.aem.live/developer/anatomy-of-a-project)
12+
1. [Web Performance](https://www.aem.live/developer/keeping-it-100)
13+
1. [Markup, Sections, Blocks, and Auto Blocking](https://www.aem.live/developer/markup-sections-blocks)
14+
615

716
## Environments
817
- Preview: https://main--{repo}--{owner}.aem.page/

blocks/columns/columns.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
display: block;
2020
}
2121

22-
@media (width >= 900px) {
22+
@media (min-width: 900px) {
2323
.columns > div {
2424
align-items: center;
2525
flex-direction: unset;
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
/* eslint-disable import/no-unresolved */
2-
/* eslint-disable import/no-extraneous-dependencies */
3-
import { Header, provider as uiProvider } from '@dropins/tools/components.js';
1+
import { Header, provider as UI } from '@dropins/tools/components.js';
42
import { readBlockConfig } from '../../scripts/aem.js';
53

64
export default function decorate(block) {
@@ -10,5 +8,5 @@ export default function decorate(block) {
108

119
block.innerHTML = '';
1210

13-
return uiProvider.render(Header, { title })(block);
11+
return UI.render(Header, { title })(block);
1412
}

blocks/commerce-account-sidebar/commerce-account-sidebar.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@media (width >= 900px) {
1+
@media (min-width: 900px) {
22
body.columns main > .section.commerce-account-sidebar-container {
33
max-width: var(--column-width);
44
}

0 commit comments

Comments
 (0)