Home / Companies / Nx / Blog / August 2023

August 2023 Summaries

4 posts from Nx

Filter
Month: Year:
Post Summaries Back to Blog
Creating an Expo monorepo with Nx involves setting up a workspace using @nx/expo to develop two apps, one for cat facts and another for dog facts, which share branding and components. The process includes creating an Nx workspace, installing necessary tech stacks like React Native Paper for design and @react-navigation for routing, and setting up a shared UI library. The apps are built using EAS (Expo Application Services) to generate binaries for different platforms, with options for local or hosted builds. Submission to app stores requires developer accounts and involves running production builds and using either manual uploads or EAS services for deployment. This approach facilitates scalability and future expansion of the monorepo by allowing reusable libraries and components for additional apps.
Aug 24, 2023 1,747 words in the original blog post.
The blog post explores the integration of Nx and Qwik to create a todo application, focusing on enhancing efficiency and modularity in web development. Qwik is highlighted for its performance optimization by minimizing JavaScript delivery to browsers, while Nx aids in building scalable and maintainable codebases. The article provides a detailed walkthrough of using the qwik-nx plugin to create a workspace, generate applications and routes, build a basic UI, and manage state using Qwik's Context. It also discusses organizing application logic into modular libraries with Nx, which helps improve project boundaries and CI times. The post concludes by emphasizing how the combination of Nx and Qwik facilitates efficient development and modular design, allowing developers to build high-performance web applications with improved developer experience.
Aug 15, 2023 3,417 words in the original blog post.
The text delves into the process of creating a custom Command Line Interface (CLI) using Nx, an open-source build system designed to enhance developer productivity. It explains how to write a CLI that replicates the functionality of the widely-used Create-React-App but with a personalized touch, leveraging the capabilities of Nx plugins. The article outlines the steps to create a CLI workspace, develop the CLI to integrate React and Nx, and customize it to scaffold React applications with specific configurations like a light or dark theme. It also covers the addition of a serve target to facilitate easy app running and emphasizes the importance of end-to-end testing to ensure reliability. The guide highlights how to use Nx to automate and optimize project setups and illustrates the potential for further customization and enhancements, such as adding unit tests or integrating other Nx plugins like Jest, ESLint, or Cypress.
Aug 10, 2023 4,201 words in the original blog post.
The introduction of new generators for Storybook interaction tests in Nx 16.6 aims to streamline the user experience by replacing default Cypress tests with integrated Storybook testing for projects already utilizing Storybook. Interaction tests in Storybook allow developers to assess the functional aspects of user interfaces by setting initial component states, simulating user actions, and verifying UI and component state updates, all within the browser environment where components are developed. The Storybook Test runner, powered by Jest and Playwright, independently executes these tests, while the interaction tests utilize a play function connected to stories, enabling the simulation and verification of user behavior. With Storybook's interactive debugging tools and the ability to reproduce errors easily, developers can efficiently diagnose issues, and the test-runner automates test execution, reducing manual review efforts. The focused testing environment Storybook provides allows for faster, more precise testing of component behavior without the setup overhead associated with full application end-to-end tests, offering a more efficient and integrated approach to ensuring component functionality.
Aug 03, 2023 708 words in the original blog post.