Comprehensive Angular plugin for Nx workspaces providing executors, generators, and utilities for managing Angular applications and libraries.
90
Build a command-line utility that configures remote cache backends for an Nx workspace. The tool should update the workspace configuration to enable remote caching with different storage providers.
Your implementation should provide the following capabilities:
Configure Remote Cache in nx.json
Validate Cache Configuration
Support Multiple Storage Providers
setup-cache.js or setup-cache.tssetup-cache.test.js or setup-cache.test.tsSetup: Create a test nx.json file with basic configuration.
Action:
Configure remote cache with URL: https://cache.example.com/nx-cache
Expected Result:
Setup: Prepare an nx.json file.
Action: Attempt to configure remote cache without providing a cache URL.
Expected Result: The tool should report an error indicating that the cache URL is required.
Setup:
https://old-cache.example.comAction:
https://new-cache.example.comExpected Result:
Provides the build system and task execution framework with remote cache support.
cache-config.js or cache-config.ts: Main implementationcache-config.test.js or cache-config.test.ts: Test cases demonstrating the functionalityInstall with Tessl CLI
npx tessl i tessl/npm-nx--angularevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10