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

Boilerplate #410

Open
TAnas0 opened this issue Dec 31, 2018 · 3 comments
Open

Boilerplate #410

TAnas0 opened this issue Dec 31, 2018 · 3 comments

Comments

@TAnas0
Copy link

TAnas0 commented Dec 31, 2018

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

@b4dnewz
Copy link

b4dnewz commented Jan 7, 2019

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.

@nikolasburk
Copy link
Contributor

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 🙂

@maticzav
Copy link
Member

maticzav commented Jan 7, 2019

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

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

4 participants