This guide explains how to upgrade your ADF v3.0 project to work with v3.1.
Do not skip this task, if you want your application to be updated to a most recent version of ADF. Upgrades of multiple versions of ADF cannot be done in one step only, but should follow the chain of sequential updates.
Note: the steps described below might involve making changes to your code. If you are working with a versioning system then you should commit any changes you are currently working on. If you aren't using versioning then be sure to make a backup copy of your project before going ahead with the upgrade.
If your application has few changes from the original app created by the Yeoman generator then you may be able to update your project with the following steps:
Update the Yeoman generator to the latest version (3.1.0). Note that
you might need to run these commands with sudo
on Linux or MacOS:
npm uninstall -g generator-alfresco-adf-app npm install -g generator-alfresco-adf-app
Run the new yeoman app generator:
yo alfresco-adf-app
Clean your old distribution and dependencies by deleting the node_modules
folder
and the package-lock.json
file.
Install the dependencies:
npm install
At this point, the generator might have overwritten some of your code where it differs from the original generated app. Be sure to check for any differences from your project code (using a versioning system might make this easier) and if there are any differences, retrofit your changes. When you have done this, you should be able to start the application as usual:
npm run start
After starting the app, if everything is working fine, that's all and you don't need to do anything else. However, if things don't work as they should then recover the original version of the project and try the manual approach.
Update the package.json
file with the latest library versions:
"dependencies": {
...
"@alfresco/adf-core": "3.1.0",
"@alfresco/adf-content-services": "3.1.0",
"@alfresco/adf-process-services-cloud": "3.1.0",
"@alfresco/adf-insights": "3.1.0",
"@alfresco/js-api": "3.1.0",
...
Clean your old distribution and dependencies by deleting node_modules
and package-lock.json
.
Reinstall your dependencies
npm install
© 2023 Alfresco Software, Inc. All Rights Reserved.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.