<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Todd Pressley</title>
    <description>The latest articles on DEV Community by Todd Pressley (@toddpress).</description>
    <link>https://dev.to/toddpress</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F230206%2F995dd188-6ecb-4b5a-a430-e40138b31280.jpeg</url>
      <title>DEV Community: Todd Pressley</title>
      <link>https://dev.to/toddpress</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/toddpress"/>
    <language>en</language>
    <item>
      <title>Web component framework</title>
      <dc:creator>Todd Pressley</dc:creator>
      <pubDate>Fri, 21 Mar 2025 01:12:40 +0000</pubDate>
      <link>https://dev.to/toddpress/web-component-framework-1od4</link>
      <guid>https://dev.to/toddpress/web-component-framework-1od4</guid>
      <description></description>
      <category>webcomponents</category>
    </item>
    <item>
      <title>Flat-ai</title>
      <dc:creator>Todd Pressley</dc:creator>
      <pubDate>Mon, 17 Feb 2025 06:06:27 +0000</pubDate>
      <link>https://dev.to/toddpress/flat-ai-gkb</link>
      <guid>https://dev.to/toddpress/flat-ai-gkb</guid>
      <description></description>
    </item>
    <item>
      <title>How i fixed windows in two clicks</title>
      <dc:creator>Todd Pressley</dc:creator>
      <pubDate>Mon, 03 Feb 2025 01:02:17 +0000</pubDate>
      <link>https://dev.to/toddpress/how-i-fixed-windows-in-two-clicks-368h</link>
      <guid>https://dev.to/toddpress/how-i-fixed-windows-in-two-clicks-368h</guid>
      <description></description>
      <category>tutorial</category>
      <category>microsoft</category>
    </item>
    <item>
      <title>what’s your most captivating new tech find?</title>
      <dc:creator>Todd Pressley</dc:creator>
      <pubDate>Wed, 17 May 2023 01:17:54 +0000</pubDate>
      <link>https://dev.to/toddpress/whats-your-most-captivating-new-tech-find-2b8p</link>
      <guid>https://dev.to/toddpress/whats-your-most-captivating-new-tech-find-2b8p</guid>
      <description>&lt;p&gt;Hey there, fellow devs! 👋&lt;/p&gt;

&lt;p&gt;When it comes to exploring the ever-evolving world of technology, we all stumble upon exciting discoveries that leave us in awe. Whether it's an ingenious framework, a cutting-edge library, or a mind-boggling tool, I want to hear about the most fascinating new technology you've encountered.&lt;/p&gt;

&lt;p&gt;Drop a comment below and share the name of the technology (you can optionally include a link to its GitHub repository). It would be great if you could keep it concise and easily parseable—bonus points for that! Along with the name, give us a brief description of why it captivated you and how you're currently utilizing it or planning to use it in your projects.&lt;/p&gt;

&lt;p&gt;Let's learn from one another's discoveries and find fresh inspiration for our coding endeavors. I'm eagerly waiting to see what you have in store - teach me something! &lt;/p&gt;

&lt;p&gt;Happy coding and stay curious, friends! 🚀&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>poll</category>
      <category>programming</category>
      <category>discuss</category>
    </item>
    <item>
      <title>Fastest way to generate a LitElement project in 3 minutes</title>
      <dc:creator>Todd Pressley</dc:creator>
      <pubDate>Thu, 25 Feb 2021 12:01:49 +0000</pubDate>
      <link>https://dev.to/toddpress/fastest-way-to-generate-a-litelement-project-in-3-minutes-2en</link>
      <guid>https://dev.to/toddpress/fastest-way-to-generate-a-litelement-project-in-3-minutes-2en</guid>
      <description>&lt;p&gt;👋 Hi people! &lt;/p&gt;

&lt;p&gt;My name's Todd. I'm a software engineer with a passion for the web. This is my very first post on DEV 🎉  Any feedback is truly appreciated, even if you're a jerk about it 😉&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Today I want to show you the fastest &lt;em&gt;(and simplest)&lt;/em&gt; way I've found to create a fully-tooled LitElement project from scratch. All with a single command.&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;p&gt;For those of you just looking for a command to copy to get going,  let me empower you to do so:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;npm init @open-wc
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  LitElement Briefly
&lt;/h2&gt;

&lt;p&gt;This forward-thinking project from the Polymer team makes it easy to create stupidly-fast, standards-based web components. It has a similar developer experience to most mainstream component frameworks like React, for example... &lt;/p&gt;

&lt;p&gt;LitElement itself is a simply a lightweight base class based upon native web component spec.&lt;/p&gt;

&lt;p&gt;LitElement components can be used anywhere you can use HTML and JS! Sharing components is a breeze, across projects or even entire organizations! This portability can serve your team well for years to come. &lt;/p&gt;




&lt;h1&gt;
  
  
  Despite your current framework of choice, LitElement is definitely worth checking out!
&lt;/h1&gt;




&lt;h2&gt;
  
  
  Motivation
&lt;/h2&gt;

&lt;p&gt;While the &lt;a href="https://lit-element.polymer-project.org/guide/start" rel="noopener noreferrer"&gt;official documentation&lt;/a&gt;  is great overall, their "getting started" section is not exactly straightforward. Their suggested path to "Hello World" seemed rather wishy-washy and task-heavy for a truly quick start. This, coupled with the fact that they present both starting paths for Typescript &lt;em&gt;and&lt;/em&gt; Javascript in tandem, made for a less-than-straightforward first foray into LitElement. I appreciate simplicity when trying new tech.&lt;/p&gt;

&lt;p&gt;I want you to avoid the hassle altogether, and start building cool stuff today: &lt;br&gt;&lt;br&gt;
Enter  &lt;a href="https://open-wc.org/guides/developing-components/getting-started/" rel="noopener noreferrer"&gt;Open-WC project generator&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;
&lt;small&gt;

NOTE: This generator *is* suggested by the official docs as an alternative start; however, at the time of this writing the link is currently broken 😲 
As a concerned and empowered citizen of the web, I've submitted a [PR](https://github.com/Polymer/lit-element/pull/1160) to correct this issue).

&lt;small&gt;
&lt;/small&gt;&lt;/small&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  The Generator
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1614243807958%2FoQCtss88y.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1614243807958%2FoQCtss88y.gif" title="The CLI in action" alt="hello-lit.gif"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;First, open a terminal to your root development folder. Personally, I literally use a folder, &lt;code&gt;development&lt;/code&gt; in my root (&lt;code&gt;~/&lt;/code&gt;or home) directory (:&lt;/p&gt;

&lt;p&gt;Next, run these magical incantations:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight r"&gt;&lt;code&gt;&lt;span class="o"&gt;$&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;npm&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;init&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;@&lt;/span&gt;&lt;span class="n"&gt;open&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;wc&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This will download everything needed from npm and launch an interactive CLI.&lt;/p&gt;




&lt;p&gt;&lt;b&gt;"What's with the weird &lt;code&gt;npm init&lt;/code&gt;?"&lt;/b&gt;&lt;br&gt;
This command makes use of an initializer.&lt;br&gt;&lt;br&gt;
As mentioned in the npm docs:&lt;br&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;code&gt;npm init initializer&lt;/code&gt; can be used to set up a new or existing npm package.
&lt;/blockquote&gt;

&lt;p&gt;In this case, before npm runs our command, it's transformed from &lt;code&gt;npm init @open-wc&lt;/code&gt; into &lt;code&gt;npx @open-wc/create&lt;/code&gt;. &lt;/p&gt;

&lt;p&gt;This is uses npx to install our initializer, &lt;code&gt;@open-wc&lt;/code&gt;, then npx will automatically execute the main bin.&lt;/p&gt; 

&lt;p&gt;&lt;b&gt;Pretty neat, eh?&lt;/b&gt; I learned something new, and I hope you did too (:&lt;br&gt;
&lt;/p&gt;




&lt;p&gt;After launching, It will ask a few questions:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;What would you like to do today?
&lt;pre&gt;
✅ Scaffold a new project
› Upgrade an existing project
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;What would you like to scaffold?
&lt;pre&gt;
✅ Application
› Component&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;



&lt;ol&gt;
&lt;li&gt;What would you like to add?
&lt;pre&gt;
› Linting (es-lint &amp;amp; prettier)
› Testing (web-test-runner)
› Demoing (storybook)
✅ Building (rollup)
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Would you like to use typescript?
&lt;pre&gt;
✅ Yes
› No
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Would you like to scaffold examples files for?
&lt;pre&gt;
✅ Building (rollup)
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;What is the tag name of your application/web component?&lt;pre&gt;
hello-lit
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Do you want to write this file structure to disk?
&lt;pre&gt;
✅ Yes
› No
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Do you want to install dependencies?
&lt;pre&gt;
› No
› Yes, with yarn
✅ Yes, with npm
&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Get Crackin'
&lt;/h2&gt;

&lt;p&gt;Now you've got everything you need to make a web application with LitElement! Let's go ahead and start a live-reload dev server. Just &lt;code&gt;cd&lt;/code&gt; into your project directory and then run &lt;code&gt;npm run start&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;cd &lt;/span&gt;hello-lit &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; npm run start
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Open your project in your IDE of choice and get crackin'! If you're using VS Code like me, run this in a new terminal instance in your project's main directory:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;code &lt;span class="nb"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Congrats! You've now made a vanilla web-component-based app (stub) from scratch! Go forth and make something awesome!&lt;/p&gt;

&lt;p&gt;Take a peek at &lt;a href="https://lit-element.polymer-project.org/guide" rel="noopener noreferrer"&gt;LitElement's official docs&lt;/a&gt; for an in-depth look at the full (and fully awesome) API.&lt;/p&gt;

&lt;h2&gt;
  
  
  Thanks
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Thanks for reading my very first post.&lt;/strong&gt; 🎉 I hope you've found it useful! Any feedback is truly appreciated, even if you're a jerk about it (;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;If your interested in building an app with LitElement and Redux, show me some love and follow me for updates!&lt;strong&gt; &lt;/strong&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Additional Resources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;b&gt;LitElement&lt;/b&gt; - &lt;a href="https://lit-element.polymer-project.org/" rel="noopener noreferrer"&gt;https://lit-element.polymer-project.org/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;b&gt;Open WC Generator&lt;/b&gt; - &lt;a href="https://open-wc.org/guides/developing-components/getting-started/" rel="noopener noreferrer"&gt;https://open-wc.org/guides/developing-components/getting-started/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;b&gt;LitElement Material Components&lt;/b&gt; - &lt;a href="https://github.com/material-components/material-components-web-components" rel="noopener noreferrer"&gt;https://github.com/material-components/material-components-web-components&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>javascript</category>
      <category>litelement</category>
      <category>webcomponents</category>
      <category>polymer</category>
    </item>
  </channel>
</rss>
