Select to view content in your preferred language

Create module base code in JSAPI 3.4 & 3.6 version

725
2
Jump to solution
09-16-2013 11:31 PM
SunilPalkar
Deactivated User
Hello All,

I have almost 1000 lines of code and its difficult to maintain and trouble shoot the code. I have seen that few people are developed module based code.

So is it possible to create modules (few .js files) and integrate all those modules in single file (say index.html)  so that its easy to deploy and easy to use.

I am going though following resources :

1.http://geospatialscott.blogspot.in/2013/09/the-esri-api-for-javascriptdojo-build.html

2.http://backboneboilerplate.com/#/optimize

Any help regarding this will be great !!

thanks in advance : )
0 Kudos
1 Solution

Accepted Solutions
ReneRubalcava
Esri Frequent Contributor
If you want a single file building using the ArcGIS JS API, as of right now Scott's blog that you linked to is pretty much the only way to go. At least I haven't seen anyone else put another solution forward and I know myself and others have hacked away at options for a while. He did all the nitty gritty of building the exlusion list to get a single file Dojo build working. It's not pretty, but it does the job.

View solution in original post

0 Kudos
2 Replies
ReneRubalcava
Esri Frequent Contributor
If you want a single file building using the ArcGIS JS API, as of right now Scott's blog that you linked to is pretty much the only way to go. At least I haven't seen anyone else put another solution forward and I know myself and others have hacked away at options for a while. He did all the nitty gritty of building the exlusion list to get a single file Dojo build working. It's not pretty, but it does the job.
0 Kudos
SunilPalkar
Deactivated User
thanks for reply. I will try and let you know..

thank you..
0 Kudos