wpengine / wp-graphql-content-blocks

Plugin that extends WPGraphQL to support querying (Gutenberg) Blocks as data
https://faustjs.org/docs/gutenberg/wp-graphql-content-blocks
GNU General Public License v2.0
110 stars 14 forks source link

composer installation #309

Closed Messa1 closed 1 month ago

Messa1 commented 1 month ago

Would be nice if you can offer an installation method through Composer.

justlevine commented 1 month ago

Just add this repo to composer.json's repositories and it should work just fine.

https://getcomposer.org/doc/04-schema.md#repositories

Messa1 commented 1 month ago

If someone need


  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/wpengine/wp-graphql-content-blocks"
    }
  ],
 "require": {
    // Rest ...
    "wp-graphql/wp-graphql": "^1.29",
    "wpengine/wp-graphql-content-blocks": "dev-main"
  },
justlevine commented 1 month ago
 "require": {
    // Rest ...
    "wp-graphql/wp-graphql": "^1.29",
    "wpengine/wp-graphql-content-blocks": "dev-main"
  },

One note, you should not use wp-graphql/wp-graphql but rather the official distribution at wpackagist-plugin/wp-graphql https://wpackagist.org/

Messa1 commented 1 month ago

@justlevine They wrote it, like I use, in there docu. https://www.wpgraphql.com/docs/quick-start#install-with-composer Bildschirmfoto 2024-10-07 um 15 09 10

justlevine commented 1 month ago

Be that as it may, it's a mistake in the docs 🤷‍♂️

If you have issue with the IDE or missing deps, that's because the wp-graphql/wp-graphql version isn't the built distribution version