apollo-fetch
is a lerna project that contains multiple ApolloFetch
's including the core apollo-fetch
package.
If you are creating a new fetch and would like to included in the lerna repository, please open an Issue stating why your fetch should be included.
When creating a new fetch, copying the apollo-fetch
folder into <repository root>/packages
will provide a good starting point for a new fetch.
Make sure that the new fetch takes advantage of integration tests with apollo-fetch
.
In order to include your fetch in the repository's coverage, include a coverage:test
script in your package.json
.
A couple of useful commands that you will want to run in the root of the repository during your development are:
npm run bootstrap
: installs all dependencies in packages, symlinks shared dependencies, and builds moduleslerna bootstrap
: installs all dependencies in packages and symlinks shared dependencieslerna run test
: tests all projects in the lerna projectnpm run coverage
: runs coverage for all lerna packages, depends on each module to have acoverage:test
script.
Within a project, you are welcome to include your preferred workflow.