This monorepo is intended to be a home for various utilities which we use across a number of our projects. These utilities may include, but are not limited to:
- GraphQL-specific functions which don't necessarily belong in
graphql-js - Apollo-specific functions (i.e.
operationRegistrySignature) - Generic, commonly used JS/TS functions
- Commonly used TypeScript types
See CONTRIBUTING.md
- Run
npm init -w packages/<myNewPackage>and follow the prompts. If you're unsure of description, author, or other fields in thepackage.jsonfile, please refer to a neighbor package'spackage.jsonfor inspiration. - Add appropriate entries for your package to the
tsconfig.build.jsonandtsconfig.test.jsonfiles. - Create a
src/index.tsfile which is home to your top-level exports. - Create a
src/__tests__folder. Test files should be added here (and use the.test.tssuffix). - Copy the following files from a neighbor package and adjust appropriately (if necessary):
.npmignorejest.config.tsLICENSEtsconfig.jsonsrc/__tests__/tsconfig.json