<?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>rss.livelink.thread@place:occasion</title>
    <link>https://community.sap.com/t5/devtoberfest/how-to-build-a-cap-plugin-with-node-js/ec-p/13918244#M967</link>
    <description>&lt;P&gt;Hello everyone,&lt;BR /&gt;I was wondering if it is possible to develop design time plugins (e.g. cds add &amp;lt;plugin&amp;gt;) using TypeScript. I couldn't find a way to use the &lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1815938"&gt;@Priya0&lt;/a&gt;/cds-dk package since it doesn't come with type definitions. Am I missing something obvious or it isn't effectively possible (possibly without allowing Js code and any types in the tsconfig &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; )?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 24 Oct 2024 12:24:09 GMT</pubDate>
    <dc:creator>FedericoBelotti</dc:creator>
    <dc:date>2024-10-24T12:24:09Z</dc:date>
    <item>
      <title>🟢 How to build a CAP plugin with Node.js</title>
      <link>https://community.sap.com/t5/devtoberfest/how-to-build-a-cap-plugin-with-node-js/ec-p/13856124#M723</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Learn how to develop your first plugin in CAP Node.js and connect it with a CAP application. Enrich the plugin with functionality, learning the different techniques on how a plugin can interact with the base app.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Speakers:&amp;nbsp;&lt;STRONG&gt;Daniel Schlachter, Ram Prasad&amp;nbsp;&lt;/STRONG&gt;and&amp;nbsp;&lt;STRONG&gt;Robin De Silva&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Validation tutorial for todays sessions will be available by the end of the day here:&amp;nbsp;&lt;A href="https://developers.sap.com/tutorials/devtoberfest2024-week3-cap-session-validation.html" target="_blank"&gt;https://developers.sap.com/tutorials/devtoberfest2024-week3-cap-session-validation.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 09:14:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/devtoberfest/how-to-build-a-cap-plugin-with-node-js/ec-p/13856124#M723</guid>
      <dc:creator>KevinR</dc:creator>
      <dc:date>2024-10-14T09:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: 🟢 How to build a CAP plugin with Node.js</title>
      <link>https://community.sap.com/t5/devtoberfest/how-to-build-a-cap-plugin-with-node-js/ec-p/13918244#M967</link>
      <description>&lt;P&gt;Hello everyone,&lt;BR /&gt;I was wondering if it is possible to develop design time plugins (e.g. cds add &amp;lt;plugin&amp;gt;) using TypeScript. I couldn't find a way to use the &lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1815938"&gt;@Priya0&lt;/a&gt;/cds-dk package since it doesn't come with type definitions. Am I missing something obvious or it isn't effectively possible (possibly without allowing Js code and any types in the tsconfig &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; )?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 12:24:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/devtoberfest/how-to-build-a-cap-plugin-with-node-js/ec-p/13918244#M967</guid>
      <dc:creator>FedericoBelotti</dc:creator>
      <dc:date>2024-10-24T12:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: 🟢 How to build a CAP plugin with Node.js</title>
      <link>https://community.sap.com/t5/devtoberfest/how-to-build-a-cap-plugin-with-node-js/ec-p/13921039#M973</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/128503"&gt;@FedericoBelotti&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;you have to manually install the type definitions :).&lt;BR /&gt;&lt;A href="https://cap.cloud.sap/docs/tools/cds-typer" target="_blank"&gt;https://cap.cloud.sap/docs/tools/cds-typer&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You can also take a look at the following sessions and blog posts:&lt;BR /&gt;-&amp;nbsp;&lt;A href="https://community.sap.com/t5/devtoberfest/it-s-time-for-typescript-cap-edition/ev-p/13856083" target="_blank"&gt;https://community.sap.com/t5/devtoberfest/it-s-time-for-typescript-cap-edition/ev-p/13856083&lt;/A&gt;&lt;BR /&gt;-&amp;nbsp;&lt;A href="https://community.sap.com/t5/technology-blogs-by-members/why-the-typescript-sheriff-has-come-to-clean-up-your-javascript-part-1-of-3/ba-p/13550500" target="_blank"&gt;https://community.sap.com/t5/technology-blogs-by-members/why-the-typescript-sheriff-has-come-to-clean-up-your-javascript-part-1-of-3/ba-p/13550500&lt;/A&gt;&lt;BR /&gt;-&amp;nbsp;&lt;A href="https://cap.cloud.sap/docs/node.js/typescript#using-typescript" target="_blank"&gt;https://cap.cloud.sap/docs/node.js/typescript#using-typescript&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2024 10:13:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/devtoberfest/how-to-build-a-cap-plugin-with-node-js/ec-p/13921039#M973</guid>
      <dc:creator>KevinR</dc:creator>
      <dc:date>2024-10-28T10:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: 🟢 How to build a CAP plugin with Node.js</title>
      <link>https://community.sap.com/t5/devtoberfest/how-to-build-a-cap-plugin-with-node-js/ec-p/13921204#M974</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1423549"&gt;@KevinR&lt;/a&gt;,&lt;BR /&gt;I may have been explained myself poorly. What I meant wasn't that I couldn't use TypeScript &lt;EM&gt;at all&lt;/EM&gt; within a CAP application, but rather that I couldn't use the '@&lt;EM&gt;sap/&lt;STRONG&gt;cds-dk&lt;/STRONG&gt;'&lt;/EM&gt; package imports inside a &lt;EM&gt;.ts&lt;/EM&gt; file to create a CDS plugin with TypeScript rather than the '&lt;EM&gt;@sap/&lt;STRONG&gt;cds&lt;/STRONG&gt;&lt;/EM&gt;' package. The resources you suggested are fine and I can have them working in a CAP application.&lt;BR /&gt;I have set up an empty, dummy node application that uses TypeScript and inside the cds-plugin.ts file I tried to import something from &lt;EM&gt;'@sap/&lt;STRONG&gt;cds-dk&lt;/STRONG&gt;'&lt;/EM&gt;&amp;nbsp;trying to replicate what is explained &lt;A href="https://cap.cloud.sap/docs/tools/apis/cds-add#create-a-plugin-from-scratch" target="_blank" rel="noopener"&gt;here&lt;/A&gt; but all I get is:&lt;BR /&gt;&lt;SPAN&gt;&lt;EM&gt;"Could not find a declaration file for module '@sap/cds-dk'.&lt;/EM&gt; &lt;EM&gt;'&amp;lt;PATH&amp;gt;/cap-plugin-ts/node_modules/@sap/cds-dk/lib/index.js' implicitly has an 'any' type.&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;EM&gt;Try `npm i --save-dev @types/sap__cds-dk` if it exists or add a new declaration (.d.ts) file containing `declare module '@sap/cds-dk';`"&lt;BR /&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;@types/sap__cds-dk &lt;/EM&gt;declarations&amp;nbsp;do not exist as they do for &lt;EM&gt;'@sap/cds'&lt;/EM&gt;, so it doesn't seem to be possible to use the sdk in a &lt;EM&gt;.ts&lt;/EM&gt; file.&lt;BR /&gt;&lt;BR /&gt;Thanks for any help,&lt;BR /&gt;Federico&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2024 11:35:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/devtoberfest/how-to-build-a-cap-plugin-with-node-js/ec-p/13921204#M974</guid>
      <dc:creator>FedericoBelotti</dc:creator>
      <dc:date>2024-10-28T11:35:07Z</dc:date>
    </item>
  </channel>
</rss>

