What is @nrwl/nx-cloud?
@nrwl/nx-cloud is a powerful tool designed to enhance the capabilities of the Nx build system by providing distributed caching, task orchestration, and other cloud-based features. It helps teams to speed up their CI/CD pipelines and improve the efficiency of their development workflows.
What are @nrwl/nx-cloud's main functionalities?
Distributed Caching
Distributed caching allows you to share build artifacts across different environments, reducing redundant work and speeding up the build process. The code sample shows how to configure cacheable operations in your Nx workspace.
module.exports = { cacheableOperations: ['build', 'test', 'lint'] };
Task Orchestration
Task orchestration helps in managing and running tasks efficiently across multiple machines. The code sample demonstrates how to set up Nx Cloud as the default tasks runner with an access token.
module.exports = { tasksRunnerOptions: { default: { runner: '@nrwl/nx-cloud', options: { accessToken: 'your-access-token' } } } };
Real-time Insights
Real-time insights provide visibility into the build process, helping teams to identify bottlenecks and optimize their workflows. The code sample shows how to enable the Nx Cloud dashboard for real-time monitoring.
module.exports = { nxCloud: { showDashboard: true } };
Other packages similar to @nrwl/nx-cloud
turbo
Turbo is a build system that offers similar features like distributed caching and task orchestration. It is designed to work with monorepos and provides fast, incremental builds. Compared to @nrwl/nx-cloud, Turbo focuses more on performance optimizations and has a different approach to task scheduling.