In this Tutorial, I would like to help you to update your project created with theADF Yeoman app genera. Many people have asked on ourgitterchannelwhich are the correct steps to upgrade from version2.5.0to version2.6.1
In order to understand the possible ways to update a project I did some different experiments with old projects and I finally find out the following two different approaches:
Automatic update of the project using the Yeoman Generator.
Manually update the project.
If you are not using a versioning system on your project I suggest you execute a backup copy of it before to following one of this approach.
A. Automatic update of the project using the Yeoman Generator
If your application is mainly just the output of the generated app, you can try to follow these steps:
At this point, the generator could have maybe overwritten some of your changes. Remember to check the differences with the original source code (this is one of the reasons you should use a versioning system) and, if this is the case, retrofit the changes. Once done, it's time to start the application using the npm run start command.
After starting the app, if everything is working fine, that's all and you don't need to do anything else. On the contrary, if you have bugs and nothing really work, recover the original version of the project and try the manual approach.
B. Manually update the project
Considering that a project generated using the scaffolder is probablycustomised, its automatic update could not be an option. The following method is moresurgical and would request a bit of elbow grease. As an example, I created a new project with the Yeoman generator version2.5.0You can find this example in the folder belonging to the2.6.1update in theADF examples update from 2.5.0 to 2.6.1repository. As you can see, each commit represents a separate step in the upgrade process, which I now describe one by one.
1. Generation of an ADF project using the app generator 2.6.3
Nothing to describe here. In case of our planned modifications, you should have a similar project.