react-fullstack-graphql
react-fullstack-graphql copied to clipboard
Unknown argument: boilerplate
❯ 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
@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 (https://github.com/graphql-boilerplates/react-fullstack-graphql/issues/573). As such, please note there are a lot of open issues.
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.