Hi all,
4 years ago, we created a production application based on arcgis js cli. During these years, we have created a lot of custom widgets for this app, following esri documentation, and we have migrated from:
- JS version 4.13 to 4.26,
- AMD to ESM,
- webpack 4 to 5,
- typescript 3.1.1 to 4.7.4,
- calcite maps 0.0.9 to calcite design 1.0.7 (partially, still on going),
- ...
Everything is working like charm and all the necessary tools to deploy to a production environment were included with the cli e.g. service workers, minification, PWA, etc. It saved us a loot of time! We considered that the cli was the tool to build production custom web applications.
We want to start developing a new custom web app. We found out that the arcgis-js-cli is going to be deprecated (with a recommendation to use vite).
We have been looking at the repo https://github.com/Esri/jsapi-resources:
- The custom widget sample has a deprecation flag (with a comment to use the UI component library of our choice (like react? so it is recommended not to use the UI framework of custom widgets? ))
- We noticed also a strong promotion of vite at most of the samples, instead of webpack.
- There are not so many typescript samples, even though it is promoted from the documentation here.
What we are looking for is, a stable, "building for production", template to give us a boost start. So the question is, if we want to start creating a new custom web app, is there any official best practices/documentation/resources/recommended tools from esri?
I know there is no single answer, there are a lot of parameters to make a decision like that, just wondering if there is a consensus in the forum here or something that is already discussed between esri developers 😀
Thank you!
@DasaPaddock
@AndyGup
@ReneRubalcava
@BenElan