<?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 Esri Typescript for Production in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-typescript-for-production/m-p/260583#M24135</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Typescript developers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I`ve developed a lot with Esri JavaScript both 3.x and 4.x and since developers are more and more encouraged to use TypeScript, I want to use it as well for an upcoming project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I`ve started to play around with&lt;BR /&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/guide/typescript-setup/index.html" title="https://developers.arcgis.com/javascript/latest/guide/typescript-setup/index.html"&gt;TypeScript - Setting up your development environment | ArcGIS API for JavaScript 4.7&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which is very handy and easy to use for first tests.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what I need for deployment of my app is a bundled app.js. Is there a best practice guide how I can package modular code with Esri Types for production? I cannot get this to work with the example above. In the end it misses esri modules for me and I think it has something to do with esri dojo loader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A very simple description / build config for webpack or gulp would be absolutely amazing.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 May 2018 15:03:03 GMT</pubDate>
    <dc:creator>RichardReinicke</dc:creator>
    <dc:date>2018-05-29T15:03:03Z</dc:date>
    <item>
      <title>Esri Typescript for Production</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-typescript-for-production/m-p/260583#M24135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Typescript developers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I`ve developed a lot with Esri JavaScript both 3.x and 4.x and since developers are more and more encouraged to use TypeScript, I want to use it as well for an upcoming project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I`ve started to play around with&lt;BR /&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/guide/typescript-setup/index.html" title="https://developers.arcgis.com/javascript/latest/guide/typescript-setup/index.html"&gt;TypeScript - Setting up your development environment | ArcGIS API for JavaScript 4.7&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which is very handy and easy to use for first tests.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what I need for deployment of my app is a bundled app.js. Is there a best practice guide how I can package modular code with Esri Types for production? I cannot get this to work with the example above. In the end it misses esri modules for me and I think it has something to do with esri dojo loader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A very simple description / build config for webpack or gulp would be absolutely amazing.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2018 15:03:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-typescript-for-production/m-p/260583#M24135</guid>
      <dc:creator>RichardReinicke</dc:creator>
      <dc:date>2018-05-29T15:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Esri Typescript for Production</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-typescript-for-production/m-p/260584#M24136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There's a few different resources.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a webpack-plugin -&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Esri/arcgis-webpack-plugin" title="https://github.com/Esri/arcgis-webpack-plugin"&gt;GitHub - Esri/arcgis-webpack-plugin: Webpack plugin for the ArcGIS API for JavaScript&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's also a CLI to help you scaffold an application and custom widgets -&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Esri/arcgis-js-cli" title="https://github.com/Esri/arcgis-js-cli"&gt;GitHub - Esri/arcgis-js-cli: CLI to build a template application and widgets using the ArcGIS API for JavaScript&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a demo application in TypeScript using the webpack-plugin -&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Esri/jsapi-resources/tree/master/4.x/webpack/demo" title="https://github.com/Esri/jsapi-resources/tree/master/4.x/webpack/demo"&gt;jsapi-resources/4.x/webpack/demo at master · Esri/jsapi-resources · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also put together a blog post and video on the webpack-plugin&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://odoe.net/blog/put-arcgis-js-api-into-your-webpack/" title="http://odoe.net/blog/put-arcgis-js-api-into-your-webpack/"&gt;Put ArcGIS JS API into your webpack - odoenet&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2018 16:48:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-typescript-for-production/m-p/260584#M24136</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2018-05-29T16:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Esri Typescript for Production</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-typescript-for-production/m-p/260585#M24137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rene,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your explanations and links. The webpack plugin looks interesting, maybe I'll try this out in another project. For now I found another useful approach. I'm using &lt;STRONG&gt;gulp&lt;/STRONG&gt; and &lt;STRONG&gt;gulp-ts-package&lt;/STRONG&gt;&amp;nbsp;to bundle the ts files into one js with amd modules. Then I just had to modify index.html a little bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&amp;lt;html&amp;gt;
&amp;nbsp; &amp;lt;head&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;style&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; html,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; body {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; padding: 0;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; margin: 0;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; height: 100%;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; width: 100%;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/style&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;link rel="stylesheet" href="https://js.arcgis.com/4.7/esri/css/main.css"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script src="https://js.arcgis.com/4.7"&amp;gt;&amp;lt;/script&amp;gt;
&amp;nbsp; &amp;lt;/head&amp;gt;
&amp;nbsp; &amp;lt;body&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script src="./app.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script&amp;gt;require(["hwrm/main"]);&amp;lt;/script&amp;gt;
&amp;nbsp; &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;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;/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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:48:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-typescript-for-production/m-p/260585#M24137</guid>
      <dc:creator>RichardReinicke</dc:creator>
      <dc:date>2021-12-11T12:48:36Z</dc:date>
    </item>
  </channel>
</rss>

