Select to view content in your preferred language

Build own dojo custom build an use it with esri dojo

1331
5
12-10-2013 04:41 AM
MatthiasHahn
Occasional Contributor
Does anyone know how to do a custom build of own "dojo packages" an use this package with the esri dojo?

Is there a tutorial somewhere? ...of course I know the dojo tutorial of custom build http://dojotoolkit.org/documentation/tutorials/1.8/build/ but I need the combination with the esri dojo.

If that does NOT work I switch to jQuery 🙂 I swear !
0 Kudos
5 Replies
derekswingley1
Deactivated User
We don't have any official docs on doing custom builds. The closest thing to doing what you want is a series of posts available from the Utah AGRC.

We are working on addressing this. Early next year we're planning to release a web app we're calling the JS API Web Optimizer. I don't want to share a ton of detail yet but the idea is you tell us which modules you're using (provide a URL to your app for us to crawl, upload your zipped source code, upload a list of module identifiers or manually select the modules you want) and we'll generate a custom JS API build for you (the app will also bundle custom modules you've written as long as they're AMD compatible). You can then download your custom build and host it yourself or you can select an option for us (esri) to host it for you on js.arcgis.com. An ArcGIS.com organizational or developer will be required to use this app.
0 Kudos
MatthiasHahn
Occasional Contributor
Hm.. I don´t know if "JS Web Optimizer" is a way I will go..
This sounds all like "sign in with your ArcGIS Online account and we will host your code in the cloud" ...
What is if I don´t want to share my code?

But thank you for the link. Maybe this workaround is a way to go.
0 Kudos
derekswingley1
Deactivated User
From my post:

You can then download your custom build and host it yourself or you can select an option for us (esri) to host it for you on js.arcgis.com.


Sharing your custom code will be required to use this app and generate a custom build.
0 Kudos
ReneRubalcava
Esri Frequent Contributor
I know no details yet, but a REST API would be a great way to include this in current build systems. I'm just saying.
0 Kudos
YinShi
by
Regular Contributor
I just completed a boilerplate example using ASP.NET Web API, Dojo and ArcGIS API for JavaScript. There is a section on building JavaScript code using local Dojo modules and the ESRI CDN. You can get the synopsis of this boilerplate/tutorial at https://github.com/yinshi/WebApi-Dojo-ArcgisApi-Boilerplate/wiki

The repository is at https://github.com/yinshi/WebApi-Dojo-ArcgisApi-Boilerplate/

The example provides instructions on building REST services using ASP.NET Web API, but you can skip the server section if you are only interested in the client side.
0 Kudos