bodymovin-extension
bodymovin-extension copied to clipboard
How to get Hot Reload to work
I was able to get the code running but code changes don't show up until I build the project again, I did the following:
I had node version 12.22.12 installed, not sure if that matters.
- Setup AE for debugging extensions (guide)
- Installed the CEF client for remote debugging
- Installed extension dependencies
npm i
and alsonpm audit fix
- Installed server dependencies cd
bundle/server && npm i
and alsonpm audit fix
- Installed gulp
npm install --global gulp-cli
- Inside gulpfile.js changed the path to my local path: var extensionDestination = "../../../tropi/AppData/Roaming/Adobe/CEP/extensions/bodymovin";
- Ran
npm run build
(from the main folder) - Ran
npm run start-dev
(from the main folder) - Removed bodymovin from AE since I had the released version installed
- Moved the build folder over to extensions folder
/Library/Application Support/Adobe/CEP/extensions
and renamed the build folder ascom.bodymovin.bodymovin
- Opened the CEF client and navigated to http://localhost:8092/
But the changes in code don't show up until I repeat steps 7 and 10 to build the code. Any idea how to make hot reloading work? Thank you.
I follow this step. The most critical step is to set the path. var extensionDestination = '/Users/jason/Library/Application Support/Adobe/CEP/extensions/com.body.react'; It is absolute path. I set the absolute path. You can see the real-time modified content.
I follow this step. The most critical step is to set the path. var extensionDestination = '/Users/jason/Library/Application Support/Adobe/CEP/extensions/com.body.react'; It is absolute path. I set the absolute path. You can see the real-time modified content.
Thank you. One quick question @cgeffect :
- Where do you put the bodymovin-extension-master project you downloaded?
Anywhere is OK. in gulpfile.js , as long as the path of (var extensiondestination) is set to the absolute path where Adobe stores the extensions. because every time the NPM command is executed (it should be npm run start-dev), the compiled content will be copied to the specified extensions path