- Fork this repository;
- Clone the forked version of create-graphql:
git clone git@github.com:<your_username>/create-graphql.git
- Install lerna/lerna
yarn global add lerna@prerelease # With NPM: `npm install --global lerna@prerelease`
- Install the main package dependencies
yarn # With NPM: `npm install`
- Bootstrap all packages
lerna bootstrap
This will install all dependencies of all subpackages
and link them properly
- Link the
generator
package
cd packages/generator && yarn link # With NPM: `npm link`
- Watch all packages (create-graphql and generator)
yarn watch # With NPM: `npm run watch`
- Create a new branch
git checkout -b feature/more_awesomeness
- Make your changes
- Run the CLI with your changes
node packages/create-graphql/dist --help
- Commit your changes and push your branch
git add .
git commit -m 'more awesome for create-graphql'
git push origin feature/more_awesomeness
- Open your Pull Request
- Have your Pull Request merged! 😎