### Run Uniswap Widgets Locally with Cosmos Viewer Source: https://github.com/uniswap/widgets/blob/main/CONTRIBUTING.md Start the local development server and open the Cosmos viewer for real-time feedback on widget changes. ```bash yarn start ``` -------------------------------- ### Install Uniswap Widgets Package Source: https://github.com/uniswap/widgets/blob/main/README.md Instructions for installing the `@uniswap/widgets` library, a collection of React components for Uniswap Protocol functionality, using either Yarn or npm package managers. ```Shell yarn add @uniswap/widgets ``` ```Shell npm i --save @uniswap/widgets ``` -------------------------------- ### Create Production Build for Uniswap Widgets Source: https://github.com/uniswap/widgets/blob/main/CONTRIBUTING.md Compile TypeScript and generate a production-ready build of the widgets. The `--watch` flag enables continuous rebuilding on file changes. ```bash yarn tsc yarn build yarn build --watch ``` -------------------------------- ### Run Unit Tests for Uniswap Widgets Source: https://github.com/uniswap/widgets/blob/main/CONTRIBUTING.md Execute unit tests for the project. The `--watch` flag can be used for continuous feedback during development. ```bash yarn test yarn test --watch ``` -------------------------------- ### Run Integration Tests with Hardhat Node Source: https://github.com/uniswap/widgets/blob/main/CONTRIBUTING.md Execute end-to-end integration tests. This requires a Hardhat node to be running in the background. ```bash yarn hardhat & yarn test:e2e ``` -------------------------------- ### Configure JSON RPC Provider for E2E Tests Source: https://github.com/uniswap/widgets/blob/main/CONTRIBUTING.md Before running end-to-end tests or the Cosmos viewer, configure the `JSON_RPC_PROVIDER` environment variable with a valid JSON RPC endpoint in your `.env` file. ```plaintext JSON_RPC_PROVIDER='' ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.