graphql-boilerplates / typescript-graphql-server

Boilerplate code for scalable, production-ready GraphQL servers written in TypeScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Boilerplate

TAnas0 opened this issue · comments

The project generated by the boilerplate seems to be broken.

When running graphql create my-app --boilerplate typescript-advanced, this results in a folder that contains only files, as follow:

auth.ts           index.js  node_modules  post.ts  prisma-schema.ts  Query.ts   schema.graphql  Subscription.ts  User.ts   yarn.lock
datamodel.prisma  index.ts  package.json  Post.ts  prisma.yml        README.md  seed.graphql    tsconfig.json    utils.ts

None of the NPM scripts are available too and the resulting package.json is:

{
  "name": "install",
  "version": "0.0.0",
  "devDependencies": {
    "graphql-boilerplate-install": "0.1.9"
  }
}

Note I have the version 3.0.3 of the Graphql CLI

it looks like it's using the .install folder package.json file instead of the root one

I looked at the install script and seems the paths are relative to the root directory but it's picking the wrong file, I'm not sure what's going on.

Hi there, this is an issue with the graphql create command of the GraphQL CLI not working properly. Would you mind opening the same issue there as well since that's the proper place to report it 🙂

Hey 👋,

Thank you for reporting this! I have created a separate repository which handles boilerplates the way graphql-cli does. The issue with the current setup is that the loader is broken with the latest version. Maybe if someone would give it a shot and provide a bit of feedback, we could have this running in no time! 🙂

The repository that works;

https://github.com/maticzav/creato