<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: NPM Package? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/npm-package/m-p/459851#M42500</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Who says that Bower is being deprecated?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: I am not seeing anything on the Bower website about support ending or anything like that, and the project seems to still be active on GitHub. What is the basis for saying that it is "deprecated"?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Dec 2015 17:49:28 GMT</pubDate>
    <dc:creator>JeffJacobson</dc:creator>
    <dc:date>2015-12-17T17:49:28Z</dc:date>
    <item>
      <title>NPM Package?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/npm-package/m-p/459848#M42497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will the 4.0+ js library be available as a npm package?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2015 03:33:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/npm-package/m-p/459848#M42497</guid>
      <dc:creator>JoshKing</dc:creator>
      <dc:date>2015-11-25T03:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: NPM Package?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/npm-package/m-p/459849#M42498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm assuming you mean as a Bower package, like we've added for 3.x - &lt;A href="https://developers.arcgis.com/javascript/jshelp/inside_bower_custom_builds.html"&gt;https://developers.arcgis.com/javascript/jshelp/inside_bower_custom_builds.html&lt;/A&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, the plan is to do this for the "4.0" production release (but probably not for the betas).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 23:55:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/npm-package/m-p/459849#M42498</guid>
      <dc:creator>BjornSvensson</dc:creator>
      <dc:date>2015-12-11T23:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: NPM Package?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/npm-package/m-p/459850#M42499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think he really means a NPM package as in Node Package Manager.&lt;/P&gt;&lt;P&gt;Bower is being deprecated in favor of NPM module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would really help to have a NPM module in order to use the API easily whih other loaders such as SystemJS (Angular 2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 11:23:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/npm-package/m-p/459850#M42499</guid>
      <dc:creator>NathanLe_Ray</dc:creator>
      <dc:date>2015-12-16T11:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: NPM Package?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/npm-package/m-p/459851#M42500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Who says that Bower is being deprecated?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: I am not seeing anything on the Bower website about support ending or anything like that, and the project seems to still be active on GitHub. What is the basis for saying that it is "deprecated"?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2015 17:49:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/npm-package/m-p/459851#M42500</guid>
      <dc:creator>JeffJacobson</dc:creator>
      <dc:date>2015-12-17T17:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: NPM Package?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/npm-package/m-p/459852#M42501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Agreed.&amp;nbsp; Many shops are moving away from Bower.&amp;nbsp; My current web projects just have a package.json utilized from Webpack.&amp;nbsp; So as long as I can do a npm install, that would be great.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2015 18:24:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/npm-package/m-p/459852#M42501</guid>
      <dc:creator>JoshKing</dc:creator>
      <dc:date>2015-12-17T18:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: NPM Package?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/npm-package/m-p/459853#M42502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The 4.0 API won't be available on NPM for a few reasons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Dojo dependencies which include dojox/dijit/dgrid/xstyle/put-selector and the build tools in util are not available via NPM, so dependency management via NPM wouldn't work very well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NPM also doesn't lend itself well to downloading files to specific directories as shown in &lt;A href="https://github.com/Esri/jsapi-resources/tree/master/bower/dojo"&gt;the samples&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;When building with AMD, you'd ideally want each package in your src directory. You can setup dojoConfig to work around this, but again, you'd be pointing to bower_components for some deps and node_modules for others. This gets ugly quickly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Bower is not being deprecated&lt;/STRONG&gt;, they are just looking for more maintainers. That was more unfounded internet rumors that spread around.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Truth be told, by using Bower, we can make sure that users get the correct dependencies to do local builds. In our case, it really is the best choice at the moment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can see a demo using 3.x to &lt;A href="https://github.com/odoe/esrijs-generator-demo"&gt;do local builds here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's not to say that there won't be an NPM release in the future, just not with 4.0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2015 19:42:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/npm-package/m-p/459853#M42502</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2015-12-17T19:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: NPM Package?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/npm-package/m-p/459854#M42503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mind sharing how you're using webpack with the arcgis js api? That would be a huge help to the increasing number of webpack devs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2016 07:11:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/npm-package/m-p/459854#M42503</guid>
      <dc:creator>DanielBaternik1</dc:creator>
      <dc:date>2016-08-24T07:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: NPM Package?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/npm-package/m-p/459855#M42504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FYI, most of the dependencies mentioned are now available in NPM:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.npmjs.com/package/dojox" title="https://www.npmjs.com/package/dojox"&gt;dojox&lt;/A&gt;&amp;nbsp;/&amp;nbsp;&lt;A class="link-titled" href="https://www.npmjs.com/package/dijit" title="https://www.npmjs.com/package/dijit"&gt;dijit&lt;/A&gt;&amp;nbsp;/&amp;nbsp;&lt;A class="link-titled" href="https://www.npmjs.com/package/dgrid" title="https://www.npmjs.com/package/dgrid"&gt;dgrid&lt;/A&gt;&amp;nbsp;/&amp;nbsp;&lt;A class="link-titled" href="https://www.npmjs.com/package/put-selector" title="https://www.npmjs.com/package/put-selector"&gt;put-selector&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And it's not a matter of whether or not Bower is supported, but that it's not the best choice&amp;nbsp;for a lot of developers anymore, particularly when using ES6 modules or TypeScript. &amp;nbsp;Considering we currently have to mitigate&amp;nbsp;the Dojo AMD loader interfering with the module loader we actually want to use,&amp;nbsp;having it&amp;nbsp;be part of the reason for not having an NPM module is doubly frustrating.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 16:27:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/npm-package/m-p/459855#M42504</guid>
      <dc:creator>MichaelMatuszak</dc:creator>
      <dc:date>2016-09-27T16:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: NPM Package?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/npm-package/m-p/459856#M42505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe at this time they could reconsider adding a npm package with the 3.18 build or even best 4.0 and 3.8, cuz how @michael says, now a lot fo things are in npm and bower is not being used too much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways i worked on a &lt;A href="https://github.com/darklilium/ReactWPackArcGisJS"&gt;repository&lt;/A&gt; with the help of&amp;nbsp;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;@lobsteropteryx and @tomwayson to set up the api for some users that have problems with react + webpack config.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;I hope can be useful.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 17:38:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/npm-package/m-p/459856#M42505</guid>
      <dc:creator>EvelynHernandez</dc:creator>
      <dc:date>2016-09-27T17:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: NPM Package?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/npm-package/m-p/459857#M42506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Build scenarios for these are currently being evaluated. There are still things that need to be tested. Even when using ES6 or TS, it still would need to be transpiled to AMD for use with the Dojo loader and loader plugins. There is already a system-js loader that will work with Angular 2 and other systemjs based frameworks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 19:59:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/npm-package/m-p/459857#M42506</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2016-09-27T19:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: NPM Package?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/npm-package/m-p/459858#M42507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The TypeScript compiler is capable of outputting AMD. See the module flag in the &lt;A href="http://www.typescriptlang.org/docs/handbook/compiler-options.html"&gt;Compiler Options documentation&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 20:41:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/npm-package/m-p/459858#M42507</guid>
      <dc:creator>JeffJacobson</dc:creator>
      <dc:date>2016-09-27T20:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: NPM Package?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/npm-package/m-p/459859#M42508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correct, and you would still need to output babel or TS to AMD in order for custom builds to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The configuration to require to set up via NPM would like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;window&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;dojoConfig &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp; packages&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'esri'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; location&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'node_modules/arcgis-js-api'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'dojo'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; location&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'node_modules/dojo'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;// etc&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's because NPM doesn't allow you to change the install location such as Bower does.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using ES6 or TS doesn't make using NPM over Bower any easier in most cases. The source and dependencies are still provided as AMD and most loaders/build tools are incompatible with Dojo loader plugins which are crucial for various dynamic loading tasks such as internationalization, dynamic loading of modules based on browser support and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The exception to outputting to &lt;EM&gt;needing&lt;/EM&gt; AMD output is when using SystemJS, because we're able to do some trickery in that regard with the loaders.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/Esri/esri-system-js" title="https://github.com/Esri/esri-system-js" rel="nofollow noopener noreferrer" target="_blank"&gt;GitHub - Esri/esri-system-js: Load ArcGIS API for JavaScript modules using SystemJS&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We also have tools for Ember&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Esri/ember-cli-amd" title="https://github.com/Esri/ember-cli-amd" rel="nofollow noopener noreferrer" target="_blank"&gt;GitHub - Esri/ember-cli-amd: Ember CLI Addon for using AMD libraries&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In all cases, they still require using the Dojo loader in conjunction with other loaders and the Dojo build tools are still the recommended way to build JSAPI apps. Although the r.sj optimizer can come close.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a dojo webpack loader, but it still does not work 100% with all dependencies.&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Nordth/dojo-webpack-loader" title="https://github.com/Nordth/dojo-webpack-loader" rel="nofollow noopener noreferrer" target="_blank"&gt;GitHub - Nordth/dojo-webpack-loader: Webpack loader for Dojo Toolkit 1.x&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We'll eventually have an NPM release of the API, I just can't say when that will happen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/people/Michael.Matuszak" target="_blank"&gt;Michael.Matuszak&lt;/A&gt;‌ if you have an app config and tooling you'd like me to test an NPM release on, please feel free to contact me. I'm always looking for various scenarios that users might be using that I have not thought of yet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:28:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/npm-package/m-p/459859#M42508</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2021-12-11T20:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: NPM Package?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/npm-package/m-p/459860#M42509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see. &lt;A href="http://dojotoolkit.org/community/roadmap/"&gt;Dojo 2 is supposed to be built with TypeScript&lt;/A&gt;. Maybe once the ArcGIS API is using Dojo 2 (which I assume will be quite a while after Dojo 2 is actually released due to the complexity of the migration) the NPM stuff will become easier to implement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 23:25:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/npm-package/m-p/459860#M42509</guid>
      <dc:creator>JeffJacobson</dc:creator>
      <dc:date>2016-09-27T23:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: NPM Package?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/npm-package/m-p/459861#M42510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to add to what&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/6443"&gt;Rene Rubalcava&lt;/A&gt;‌&amp;nbsp;said above, I would&amp;nbsp;say that whether or not Esri releases an npm distribution of&amp;nbsp;the JSAPI is not actually that important.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems like many devs&amp;nbsp;want an npm distribution is because they&amp;nbsp;are using a module loader like webpack&amp;nbsp;and a framework like angular2 or react where&amp;nbsp;it is becoming more the norm to install libraries via npm than via bower. The thing is, an npm distribution isn't going to work any better in those situations than the current bower distribution, which is to say, it basically won't work with those tools until the &lt;A href="https://github.com/Nordth/dojo-webpack-loader/issues"&gt;issues with the dojo-webpack-loader&lt;/A&gt; are resolved, or until someone writes a similar plugin&amp;nbsp;for Rollup.js or browserify, or whatever module loader you're using. Even then, I have my&amp;nbsp;doubts about those bundlers ever being able to produce a smaller and/or faster build of the JSAPI than Dojo does.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, there are a couple of patterns you can follow to&amp;nbsp;use the JSAPI in applications built with a module loader like webpack. I describe how those patterns work and why you'd use one or the other in &lt;A class="link-titled" href="http://tomwayson.com/2016/11/27/using-the-arcgis-api-for-javascript-in-applications-built-with-webpack/" title="http://tomwayson.com/2016/11/27/using-the-arcgis-api-for-javascript-in-applications-built-with-webpack/"&gt;Using the ArcGIS API for JavaScript in Applications built with webpack | Tom Wayson&lt;/A&gt;. You do not need to download/install the JSAPI (via bower or npm) to use those patterns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're using Dojo instead of webpack or other module bundlers, I don't see how&amp;nbsp;getting the JSAPI via npm would be that helpful. In that case you probably want to base your app on&amp;nbsp;either&amp;nbsp;&lt;A class="link-titled" href="https://github.com/odoe/generator-arcgis-js-app" title="https://github.com/odoe/generator-arcgis-js-app"&gt;GitHub - odoe/generator-arcgis-js-app: Generator for ArcGIS JS API applications&lt;/A&gt;&amp;nbsp;or &lt;A class="link-titled" href="https://github.com/csnover/dojo-boilerplate" title="https://github.com/csnover/dojo-boilerplate"&gt;GitHub - csnover/dojo-boilerplate: A starting point for developing with Dojo&lt;/A&gt;, which use bower and git submodules respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, in my experience, how you get the JSAPI modules (bower, CDN, etc) isn't as important as understanding that you &lt;EM&gt;have&lt;/EM&gt; to use Dojo (not webpack, not browserify, etc) to load them. If you prefer to write your application following the conventions of your framework of choice, there are libraries like &lt;A class="link-titled" href="https://github.com/Esri/ember-cli-amd" title="https://github.com/Esri/ember-cli-amd"&gt;ember-cli-amd&lt;/A&gt;, &lt;A href="https://github.com/Esri/esri-system-js"&gt;esri-system-js&lt;/A&gt;,&amp;nbsp;and &lt;A class="link-titled" href="https://github.com/tomwayson/esri-loader" title="https://github.com/tomwayson/esri-loader"&gt;esri-loader&lt;/A&gt;&amp;nbsp;that can abstract working with the Dojo loader, but you may&amp;nbsp;find yourself in trouble if you don't understand that under the hood they're still using Dojo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 06:18:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/npm-package/m-p/459861#M42510</guid>
      <dc:creator>TomWayson</dc:creator>
      <dc:date>2016-12-06T06:18:57Z</dc:date>
    </item>
  </channel>
</rss>

