Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown argument: boilerplate #685

Open
pvijeh opened this issue Jan 3, 2020 · 2 comments
Open

Unknown argument: boilerplate #685

pvijeh opened this issue Jan 3, 2020 · 2 comments

Comments

@pvijeh
Copy link

pvijeh commented Jan 3, 2020

❯ graphql create my-app --boilerplate react-fullstack-basic
graphql create [directory]

Bootstrap a new GraphQL project

Options:
--dotenv Path to .env file [string]
-p, --project Project name [string]
--no-install Don't install project dependencies [boolean] [default: false]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
Unknown argument: boilerplate

@ACPK
Copy link

ACPK commented Jan 4, 2020

@pvijeh - You can try "graphql create my-site" and you'll be given a number of boilerplates to choose from.

However, it seems odd that the "react-fullstack-advanced" boilerplate is not listed in the list of templates that are provided to the user in the console (#573). As such, please note there are a lot of open issues.

@chris-hailstorm
Copy link

chris-hailstorm commented Feb 24, 2020

I can't vouch for the current state of the react-fullstack-advanced boilerplate, but it's easy enough to enable that variant for the CLI tool. After an npm install of graphql-cli, just edit the boilerplate list in node_modules/graphql-cli/dist/cmds/create/boilerplates.js and add an entry in the same form as the ones for /minimal and /basic, then run graphql create.

Maybe the exclusion of the react-fullstack-advanced boilerplate was intentional because the boilerplate itself isn't ready; I can't tell. But the names and URLs are all hardwired in that file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants