Experience League site implementation on https://aem.live
- Preview: https://main--exlm--adobe-experience-league.hlx.page/
- Live: https://main--exlm--adobe-experience-league.hlx.live/
- Clone or fork this repo (see nopte bleow on forking)
- Create your brannch
- Install the AEM CLI:
npm install -g @adobe/aem-cli
- Install deopendecies
npm i
- Start Local Proxy:
aem up
(opens your browser athttp://localhost:3000
) - Start coding!
If you want/need to fork this repository remember to add the AEM Code Sync GitHub App to the fork repository.
The default content source is set in fstab.yaml
, by default it's pointing to the main exlm-converter action.
The action is the entry point for all HTML delivered to https://aem.live services.
while developing, and if you need to update the source HTML, you are free to deploy exlm-converter action to your own project on Adobe Runtime. (Remember to point your forked repon
fstab.yaml
to your own action).
npm run lint
npm run quality
this should happen on commit automatically, but you can run manually with:
npm run format
If you want to run all code quality scripts to ensure your PR will pass:
npm run quality
npm run up
The above command will run node sass-compile.js
in parallel with hlx up
which will start your local Helix Pages development environment.
The npm run up
will parse the styles
and blocks
directory for any .scss
files. Files that are found will be compiled to css and saved in the same location and name with a .css
extension. It will then continue to watch for changes to .scss
files and will compile to their associated CSS files on changes.
Examples:
{repo}/blocks/header/header.scss
will compile to{repo}/blocks/header/header.css
{repo}/styles/style.scss
will compile to{repo}/styles/styles.css
As both sass-compile.js
and hlx up
are watching for changes, changes made to your sass files while using the rpm run up
command will be reflected automatically in your localhost.
Note that using only the hlx up
command will not trigger updates on-change for sass files.