Skip to content

Latest commit

 

History

History
54 lines (44 loc) · 1.17 KB

CONTRIBUTING.md

File metadata and controls

54 lines (44 loc) · 1.17 KB

How to contribute

  1. Fork this repository;
  2. Clone the forked version of create-graphql:
git clone git@github.com:<your_username>/create-graphql.git
  1. Install lerna/lerna
yarn global add lerna@prerelease # With NPM: `npm install --global lerna@prerelease`
  1. Install the main package dependencies
yarn # With NPM: `npm install`
  1. Bootstrap all packages
lerna bootstrap

This will install all dependencies of all subpackages and link them properly

  1. Link the generator package
cd packages/generator && yarn link # With NPM: `npm link`
  1. Watch all packages (create-graphql and generator)
yarn watch # With NPM: `npm run watch`
  1. Create a new branch
git checkout -b feature/more_awesomeness
  1. Make your changes
  2. Run the CLI with your changes
node packages/create-graphql/dist --help
  1. Commit your changes and push your branch
git add .
git commit -m 'more awesome for create-graphql'
git push origin feature/more_awesomeness
  1. Open your Pull Request
  2. Have your Pull Request merged! 😎