The Franklin based project for creative cloud pages on www.adobe.com. Based off of milo-college.
https://github.com/adobecom/cc/wiki
- Install the AEM CLI:
sudo npm install -g @adobe/aem-cli
- Run
aem up
this repo's folder. (opens your browser athttp://localhost:3000
) - Open this repo's folder in your favorite editor and start coding.
- Run 'aem up' in this folder to ensure the cc site is running locally.
- Make changes in milo, and then from the milo folder, run
npm run libs
. - Milo will run at:
http://localhost:6456
- On your
localhost:3000/
or themain-<project>-<owner>
versions of your site, add the URL params:?milolibs=local
- You should see milo changes occuring on cc pages.
- When needing to test on a cc page while making a PR for milo, add the URL params:
?milolibs=<name-of-milo-branch>
to your test URLs.
When creating new blocks, first vet any requirements/author-experience in milo-community. There may be a way to acheive your goals with what currently exists in milo.
npm run test
or:
npm run test:watch
This will give you several options to debug tests. Note: coverage may not be accurate.
To run the linter run:
npm run lint
To lint just js or css files, run
npm run lint:css
or:
npm run lint:js
If you need to lint just one file, you can run:
npx eslint file1.js