Git Product home page Git Product logo

graphql-mocks's Introduction

graphql-mocks

๐Ÿ‘‹ Welcome

Hello, you've reached the lerna mono repo for graphql-mocks.

Check out the website for an introduction on getting started with graphql-mocks.

The individual packages hosted in this repo can be found in the packages folder, they include:

  • graphql-mocks (folder: graphql-mocks) โ€” The main package containing graphql-mocks core functionality
  • graphql-paper (folder: paper) - GraphQL Paper, an in-memory store using GraphQL schema. Can be used on its own without graphql-mocks.
  • @graphql-mocks/sinon (folder: sinon) - Sinon spy integration with graphql-mocks, useful for test scenarios
  • @graphql-mocks/mirage (folder: mirage) - Mirage.js integration with graphql-mocks, automatically resolve data with Mirage
  • @graphql-mocks/docs (folder: docs) โ€” Contains the documentation published at www.graphql-mocks.com

๐Ÿ— Developing

Clone the repo, then:

  1. Run yarn to setup packages
  2. Run yarn bootstrap to bootstrap package dependencies
  3. Run yarn link-packages to cross-link packages within monorepo to respective package's dist folder

If changes are isolated to a single package then you should be all set.

If changes are in multiple packages where there is a dependency then changes will need to be rebuilt in dependent packages. Cross-dependencies are linked to dist folder in the dependency package-specific root (package/*) folder. It can be rebuilt by running yarn build in the dependency's root folder or yarn bootstrap from the monorepo root which rebuilds for all packages and is much slower.

graphql-mocks's People

Contributors

chadian avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.