<?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: Arnav</title>
    <description>The latest articles on DEV Community by Arnav (@arnavlimaye).</description>
    <link>https://dev.to/arnavlimaye</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%2F1226231%2F0dc95a65-0314-4286-a74a-012f53e8ce12.png</url>
      <title>DEV Community: Arnav</title>
      <link>https://dev.to/arnavlimaye</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/arnavlimaye"/>
    <language>en</language>
    <item>
      <title>Front-end Devbox Essentials</title>
      <dc:creator>Arnav</dc:creator>
      <pubDate>Tue, 05 Mar 2024 09:31:29 +0000</pubDate>
      <link>https://dev.to/arnavlimaye/front-end-devbox-essentials-11bo</link>
      <guid>https://dev.to/arnavlimaye/front-end-devbox-essentials-11bo</guid>
      <description>&lt;p&gt;Over the years, front-end code development has evolved a lot. Nowadays, frameworks like React, Angular, Vue, Svelte, etc provide a more structured way of building an immersive frontend experience for users. This has led to a substantial amount of code being written on the front end of the application. Having a lot of code on the front end can make it hard to manage. This problem becomes even more aggravated while working in big teams.&lt;br&gt;
Setting up a common dev box configuration for the team can help in collaborating effectively and crafting production-ready code.&lt;/p&gt;

&lt;p&gt;This configuration can be categorized into 2 categories :&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Planning&lt;/li&gt;
&lt;li&gt;Development&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Planning
&lt;/h2&gt;

&lt;p&gt;This phase includes all the setups a team needs to do to ensure the development experience is smooth. It generally includes the following -&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Setting up an IDE

&lt;ul&gt;
&lt;li&gt;Should be tailored for HTML, CSS, Javascript&lt;/li&gt;
&lt;li&gt;Should support quick navigation and intellisense&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;Finalising collaboration tools to be used for working. Especially explore various tools for screen sharing as pairing on the work needs to be effective. Few of the options are Zoom, Slack huddle etc.&lt;/li&gt;
&lt;li&gt; Setting up the repo

&lt;ul&gt;
&lt;li&gt;Employ git for version control&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;Decide which code formatter (e.g. &lt;a href="https://prettier.io/"&gt;Prettier&lt;/a&gt;) are you going to use and make sure all the IDEs being used by your team has that formatter's plugin installed in their IDE. This will maintain unifromity irrespective of the different IDEs.&lt;/li&gt;
&lt;li&gt;Decide which code linter (e.g. &lt;a href="https://eslint.org/"&gt;ESlint&lt;/a&gt;, &lt;a href="https://www.sonarsource.com/products/sonarqube/"&gt;SonarQube&lt;/a&gt; etc.) are you going to use and make sure all the IDEs being used by your team has that formatter's plugin installed in their IDE. This will maintain coding standards uniform irrespective of the different IDEs.&lt;/li&gt;
&lt;li&gt;Have IDE specific config to ensure uniformity. You can refer &lt;a href="https://code.visualstudio.com/docs/getstarted/settings#_settingsjson"&gt;this&lt;/a&gt; for VScode or you refer &lt;a href="https://www.jetbrains.com/help/idea/configure-project-settings.html#share-project-through-vcs"&gt;this&lt;/a&gt; for Intellij.&lt;/li&gt;
&lt;li&gt;Web browsers (Chrome, Brave)

&lt;ul&gt;
&lt;li&gt;Decide web browsers which provide better debugging tools and extensions for react apps such as &lt;strong&gt;&lt;a href="https://react.dev/learn/react-developer-tools"&gt;React Dev Tools&lt;/a&gt;&lt;/strong&gt; and &lt;strong&gt;&lt;a href="https://github.com/reduxjs/redux-devtools"&gt;Redux DevTools&lt;/a&gt;&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Development
&lt;/h2&gt;

&lt;p&gt;This phase includes following -&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Decide appropriate build tools (e.g. &lt;a href="https://webpack.js.org/"&gt;Webpack&lt;/a&gt;, &lt;a href="https://rollupjs.org/"&gt;Rollup&lt;/a&gt;, and &lt;a href="https://vitejs.dev/"&gt;Vite&lt;/a&gt;)

&lt;ul&gt;
&lt;li&gt;Simplified setups are available in frameworks like &lt;a href="https://legacy.reactjs.org/docs/create-a-new-react-app.html#create-react-app"&gt;CRA&lt;/a&gt; and &lt;a href="https://nextjs.org/"&gt;NextJS&lt;/a&gt;, &lt;a href="https://www.gatsbyjs.com/"&gt;Gatsby&lt;/a&gt; following React conventions.&lt;/li&gt;
&lt;li&gt;Must have tasks/scripts setup in your package.json. Some of the important scripts include &lt;strong&gt;build, test, local server&lt;/strong&gt; etc.&lt;/li&gt;
&lt;li&gt;Adding pre-commit hooks to have quicker feedback loop on code analysis, running unit tests before committing etc. You can use &lt;a href="https://typicode.github.io/husky/"&gt;husky&lt;/a&gt; or &lt;a href="https://pre-commit.com/"&gt;pre-commit&lt;/a&gt; for this.&lt;/li&gt;
&lt;li&gt;Good to have on local dev box setup, but must have on CI setup.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;Decide common package manager for a team (e.g. &lt;a href="https://www.npmjs.com/"&gt;npm&lt;/a&gt;, &lt;a href="https://yarnpkg.com/"&gt;yarn&lt;/a&gt;)

&lt;ul&gt;
&lt;li&gt;Having multiple package managers may result in package conflicts&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;Decide Test Framework

&lt;ul&gt;
&lt;li&gt;Choose a testing framework like &lt;a href="https://jestjs.io/"&gt;Jest&lt;/a&gt; and React Testing Library(&lt;a href="https://testing-library.com/docs/react-testing-library/intro/"&gt;RTL&lt;/a&gt;) for comprehensive testing. Use RTL so that it helps your team in writing behaviour driven tests.&lt;/li&gt;
&lt;li&gt;Ensure the framework has good mocking and stubbing support along with an extensive set of “matchers” for writing assertions&lt;/li&gt;
&lt;li&gt;Also decide on api mocking framework. You can use &lt;a href="https://mswjs.io/"&gt;msw&lt;/a&gt;/&lt;a href="https://github.com/nock/nock"&gt;nock&lt;/a&gt; etc. for this purpose.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;Decide API mocking framework

&lt;ul&gt;
&lt;li&gt;It helps to mock API so that front-end does not rely on back-end API completion. You can use msw/&lt;a href="https://miragejs.com/"&gt;miragejs&lt;/a&gt; etc. for this purpose.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;Type Checker

&lt;ul&gt;
&lt;li&gt;Consider adding &lt;a href="https://www.typescriptlang.org/"&gt;Typescript&lt;/a&gt; to your project for having type checking capabilities&lt;/li&gt;
&lt;li&gt;Ensure your IDE has plugins installed to get real time feedback&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;Containerize your application

&lt;ul&gt;
&lt;li&gt;Helps in making your app independent of local setup&lt;/li&gt;
&lt;li&gt;Also helps in setting up app locally for new team members&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;Accessibility Tools

&lt;ul&gt;
&lt;li&gt;Prioritize accessibility by incorporating tools like the &lt;a href="https://www.npmjs.com/package/eslint-plugin-jsx-a11y"&gt;ESLint accessibility plugin&lt;/a&gt;, &lt;a href="https://github.com/dequelabs/axe-core"&gt;axe-core&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Also use browser tools such as &lt;a href="https://wave.webaim.org/extension/"&gt;WAVE&lt;/a&gt; or &lt;a href="https://chromewebstore.google.com/detail/lera/neninfnjnhknniefcpognoooalfdaofc"&gt;LERA&lt;/a&gt; etc.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;This comprehensive Dev box setup ensures a smooth and efficient front-end development workflow, fostering collaboration, code quality, and adherence to best practices.&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>frontend</category>
      <category>webdev</category>
      <category>productivity</category>
      <category>devbox</category>
    </item>
  </channel>
</rss>
