Home / Companies / Nx / Blog / November 2024

November 2024 Summaries

3 posts from Nx

Filter
Month: Year:
Post Summaries Back to Blog
Nx has become a favored tool among developers for its ability to simplify project setups, allowing teams to concentrate on product development while it manages testing, linting, and dynamic CI/CD pipelines. With the advent of the Advent of Code event, which presents developers with daily programming puzzles throughout December, Nx has released an Advent of Code Starter Repo to provide an easy starting point for participants. This year, enhancements like the Nx Project Crystal have further minimized configuration requirements. The release of version 2.0.0 of the create-ts-aoc-starter and ts-aoc-starter packages introduces features like file watching and the ability to add custom data sets, streamlining the process for users. These improvements enable developers to focus on solving puzzles without the hassle of manual setup, as Nx automates the environment configuration, providing pre-configured directories and commands to seamlessly manage daily challenges.
Nov 30, 2024 782 words in the original blog post.
As monorepos become more complex, understanding the relationships between different codebase components can be challenging, prompting the introduction of a graph visualization feature in Nx that helps visualize these connections. This visualization, available locally, can now also be accessed from the perspective of a Continuous Integration (CI) environment using the affected project graph in Nx Cloud. This new feature provides insight into why certain projects are marked as affected by changes during CI, addressing the challenge of blindly handing work off to CI processes. By analyzing workspace structure, Nx identifies which projects are genuinely impacted by changes, thus optimizing task execution and reducing unnecessary resource expenditure. The affected project graph, accessible in all CI Pipeline Executions in Nx Cloud, allows users to explore and expand project connections to understand and address CI inefficiencies. For those not using Nx Cloud, it offers a free trial to experience these features, with additional resources available for further learning and implementation.
Nov 19, 2024 424 words in the original blog post.
Cross-Origin Resource Sharing (CORS) is a common issue for web developers, as it restricts web pages from making requests to a different domain than the one that served the initial web page, often leading to errors if not properly configured. The article illustrates a typical scenario where a CORS error occurs when trying to access a locally hosted API from a different origin, such as an Angular app. Developers can address CORS issues by setting the Access-Control-Allow-Origin header directly in the API or using middleware like the 'cors' package that handles various edge cases. Alternatively, developers can configure their development server to proxy requests, as demonstrated with Angular's proxy.conf.json file or through Vite configurations for frameworks like Vue and React. The text highlights the importance of understanding and addressing CORS issues to ensure smooth development workflows and successful project deployments.
Nov 14, 2024 960 words in the original blog post.