### Installing Dependencies for Apollo Link Printer Development Source: https://github.com/egorlem/apollo-link-printer/blob/main/.ABOUT.md This command installs all required development and production dependencies for the `apollo-link-printer` project, typically using npm or yarn. ```shell npm install # or `yarn` ``` -------------------------------- ### Install Apollo Link Printer Source: https://github.com/egorlem/apollo-link-printer/blob/main/.ABOUT.md Installs the apollo-link-printer package using either npm or yarn. ```shell npm install apollo-link-printer ``` ```shell yarn add apollo-link-printer ``` -------------------------------- ### Install Apollo Link Printer Source: https://github.com/egorlem/apollo-link-printer/blob/main/README.md Installs the apollo-link-printer package using either npm or yarn. ```shell npm install apollo-link-printer ``` ```shell yarn add apollo-link-printer ``` -------------------------------- ### Installing Project Dependencies (npm/Yarn) Source: https://github.com/egorlem/apollo-link-printer/blob/main/README.md This command installs all required project dependencies listed in `package.json` using either npm or Yarn. It prepares the development environment for building and testing the library. ```shell npm install # or `yarn` ``` -------------------------------- ### Setup Apollo Client with PrinterLink Source: https://github.com/egorlem/apollo-link-printer/blob/main/README.md Demonstrates how to integrate PrinterLink into an Apollo Client configuration. It shows the import statements, defining options for the printer, and creating the ApolloClient instance with the PrinterLink and HttpLink. ```js import { ApolloClient, InMemoryCache, HttpLink, ApolloLink } from '@apollo/client'; import { PrinterLink } from 'apollo-link-printer'; // Define options const options = { print: true, collapsed: false, }; const client = new ApolloClient({ link: ApolloLink.from([ new PrinterLink(options), new HttpLink({ uri: 'http://localhost:4000' }), ]), cache: new InMemoryCache(), }); ``` -------------------------------- ### Setup Apollo Client with PrinterLink Source: https://github.com/egorlem/apollo-link-printer/blob/main/.ABOUT.md Demonstrates how to integrate PrinterLink into an Apollo Client configuration. It shows the import statements, defining options for the printer, and creating the ApolloClient instance with the PrinterLink and HttpLink. ```js import { ApolloClient, InMemoryCache, HttpLink, ApolloLink } from '@apollo/client'; import { PrinterLink } from 'apollo-link-printer'; // Define options const options = { print: true, collapsed: false, }; const client = new ApolloClient({ link: ApolloLink.from([ new PrinterLink(options), new HttpLink({ uri: 'http://localhost:4000' }), ]), cache: new InMemoryCache(), }); ``` -------------------------------- ### Contribute to Apollo Link Printer Source: https://github.com/egorlem/apollo-link-printer/blob/main/README.md Provides instructions for contributing to the project, including cloning the repository, installing dependencies, running tests, linking the library locally, and the Git workflow for submitting changes. ```shell git clone https://github.com/egorlem/apollo-link-printer.git cd apollo-link-printer npm install # or `yarn` npm test # or `yarn test` npm link npm link apollo-link-printer # In the project where you want to use the library ``` -------------------------------- ### Contribute to Apollo Link Printer Source: https://github.com/egorlem/apollo-link-printer/blob/main/.ABOUT.md Provides instructions for contributing to the project, including cloning the repository, installing dependencies, running tests, linking the library locally, and the Git workflow for submitting changes. ```shell git clone https://github.com/egorlem/apollo-link-printer.git cd apollo-link-printer npm install # or `yarn` npm test # or `yarn test` npm link npm link apollo-link-printer # In the project where you want to use the library ``` -------------------------------- ### Navigating to Project Directory (Shell) Source: https://github.com/egorlem/apollo-link-printer/blob/main/README.md This command changes the current directory in the terminal to the newly cloned `apollo-link-printer` repository. This is a necessary step before installing dependencies or running project-specific commands. ```shell cd apollo-link-printer ``` -------------------------------- ### Using Linked Local Library in Another Project (npm) Source: https://github.com/egorlem/apollo-link-printer/blob/main/README.md This command, executed in a separate project, creates a symlink to the globally linked `apollo-link-printer` package. This allows the other project to use the locally developed version of the library as if it were installed from npm. ```shell npm link apollo-link-printer # In the project where you want to use the library ``` -------------------------------- ### Cloning Apollo Link Printer Repository Source: https://github.com/egorlem/apollo-link-printer/blob/main/.ABOUT.md These commands clone the `apollo-link-printer` repository from GitHub and navigate into the project directory, preparing for local development. ```shell git clone https://github.com/egorlem/apollo-link-printer.git ``` ```shell cd apollo-link-printer ``` -------------------------------- ### Running Tests for Apollo Link Printer Source: https://github.com/egorlem/apollo-link-printer/blob/main/.ABOUT.md This command executes the test suite for the `apollo-link-printer` project, ensuring that all changes work as expected and no regressions are introduced. ```shell npm test # or `yarn test` ``` -------------------------------- ### Linking Apollo Link Printer Locally for Development Source: https://github.com/egorlem/apollo-link-printer/blob/main/.ABOUT.md These commands allow you to link the `apollo-link-printer` library locally, enabling you to test changes in another project without publishing to npm. ```shell npm link ``` ```shell npm link apollo-link-printer # In the project where you want to use the library ``` -------------------------------- ### Running Project Tests (npm/Yarn) Source: https://github.com/egorlem/apollo-link-printer/blob/main/README.md This command executes the test suite for the `apollo-link-printer` project using either npm or Yarn. It's crucial for verifying that changes haven't introduced regressions and that new features work as expected. ```shell npm test # or `yarn test` ``` -------------------------------- ### Cloning Apollo Link Printer Repository (Git) Source: https://github.com/egorlem/apollo-link-printer/blob/main/README.md This command clones the `apollo-link-printer` Git repository from GitHub to your local machine. It's the first step for contributing to the project or running it locally. ```shell git clone https://github.com/egorlem/apollo-link-printer.git ``` -------------------------------- ### Linking Local Library for Development (npm) Source: https://github.com/egorlem/apollo-link-printer/blob/main/README.md This command creates a global symlink to the current project, allowing it to be used as a dependency in other local projects without publishing it to npm. This is useful for local development and testing of the library. ```shell npm link ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.