February 2023 Summaries
5 posts from Nx
Filter
Month:
Year:
Post Summaries
Back to Blog
Building a Node API can be streamlined by using Nx to create a project with Fastify as the chosen framework, celebrated for its speed and plugin architecture. Fastify's popularity is evidenced by over a million weekly downloads on npm. This guide demonstrates how to create a Node API project using the `create-nx-workspace` command with Fastify and Docker support, and provides insights into running tests, building for production with esbuild, and deploying using Docker. Nx facilitates testing with unit and E2E tests, leveraging Fastify's plugin architecture, and uses esbuild for efficient bundling, with a caching feature that optimizes repeated commands. Docker support is integrated, simplifying the creation of a Docker image that encapsulates the app bundle, allowing for easy deployment on platforms like Fly.io. The process is designed to be user-friendly, with Nx handling dependencies and automating tasks to ensure a seamless transition from development to production.
Feb 28, 2023
1,498 words in the original blog post.
Lerna, a widely-used JavaScript monorepo tool, experienced a period of being unmaintained until Nx took over its maintenance in May 2022, leading to significant updates and improvements. With the release of Lerna version 6.5, several new features were introduced, including idempotency for the `lerna publish from-git` command, the ability to run multiple scripts in a single `lerna run` command, and a new `--include-private` option to help manage private packages. The update also involved a substantial refactor to improve Typescript support and simplify Lerna's codebase, making it more accessible for contributors. Additionally, Lerna and Nx have launched initiatives to support open-source projects, offering free consulting to help optimize their use of Lerna's features. Looking forward, Lerna v7 is anticipated for Q2 2023, promising further enhancements and new features to support the tool's versioning and publishing capabilities.
Feb 22, 2023
918 words in the original blog post.
Version 15 of NgRx introduces Standalone APIs, facilitating its integration with Angular applications that use Standalone Components, and Nx provides tools to streamline this process. The article demonstrates how to create a new Standalone Component-based Angular application and add NgRx using only Nx Generators. By following a series of commands, users can set up a new Nx Workspace, generate a root state, and create and integrate a new feature library for user management. This setup leverages the latest NgRx Standalone APIs, showcasing the addition of NgRx functionalities like provideStore and provideEffects within Angular applications. The guide emphasizes the simplicity and efficiency of using Nx for these tasks, aligning with Angular's shift towards Standalone Components as the preferred development approach. It also highlights resources for further learning and assistance, such as video tutorials and example repositories.
Feb 21, 2023
937 words in the original blog post.
The latest Nx release introduces several updates and features, enhancing its capabilities and support for developers. This release celebrates reaching 10,000 YouTube subscribers, highlighting the platform's commitment to providing educational content on developer tooling and monorepos. Key updates include the introduction of first-class Node support, allowing for improved development of Node-based applications with frameworks like ExpressJS, Fastify, and Koa, along with Angular version detachment, which offers flexibility in using different Angular versions. Additionally, the release includes enhancements to the Nx Plugin Guides, support for Storybook 7.0 beta, and more flexible Webpack configurations. Lockfile parsing and pruning have been improved to handle different package manager formats, and the release introduces the ability to generate package.json and lock files for Docker packaging. The update also outlines the process for upgrading Nx and hints at future developments, such as Deno support, improvements to Nx Console, and expansion into non-JS environments.
Feb 16, 2023
1,515 words in the original blog post.
Tailwind CSS, a popular utility-first CSS framework, has gained significant traction among frontend developers, sparking debates similar to those about code formatting preferences. The framework offers various setup options with tools like Tailwind CLI and PostCSS, and it requires configuration of the tailwind.config.js file to efficiently manage CSS files. Developers using Create-React-App (CRA) may encounter challenges but can explore alternative setups such as Nx-based React projects, which streamline the integration of Tailwind through code generators. These generators assist in scaffolding projects and adding features like Tailwind, with Nx providing a straightforward way to transition from CRA to a more flexible setup that supports both Vite and Webpack. The process involves using specific commands to configure the environment, install necessary dependencies like PostCSS and Autoprefixer, and update the main CSS file, ensuring developers can easily incorporate Tailwind into their projects.
Feb 09, 2023
557 words in the original blog post.