Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Add serve executor #44

Merged
merged 2 commits into from
Jul 31, 2022
Merged

Add serve executor #44

merged 2 commits into from
Jul 31, 2022

Conversation

domjtalbot
Copy link
Owner

Add serve executor

serve

Serves a GraphQL server.

This combines dev & start via a dev option toggle.

"targets": {
  "serve": {
    "executor": "@domjtalbot/nx-plugin-graphql-mesh:serve",
    "options": {
      "dir": "path/to/app/or/lib",
      "dev": true,
    },
    "configuration": {
      "production": {
        "dev": false,
      }
    }
  },
}

Options

Name Type Required Default Description
debug boolean false false Display debugging info by applying the DEBUG env variable.
dev string false false Run the server in dev or production mode.
dir string true - The path of the directory containing the GraphQL Mesh config.
port number false 4000 The port number to run on.
require string[] false [] Loads specific require.extensions before running the codegen and reading the configuration.

@changeset-bot
Copy link

changeset-bot bot commented Jul 31, 2022

🦋 Changeset detected

Latest commit: 7b5de20

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
nx-plugin-graphql-mesh Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@domjtalbot domjtalbot self-assigned this Jul 31, 2022
@domjtalbot domjtalbot added this to the v1.0.0 milestone Jul 31, 2022
@domjtalbot domjtalbot linked an issue Jul 31, 2022 that may be closed by this pull request
@domjtalbot domjtalbot added the feature Indicates new functionality label Jul 31, 2022
@domjtalbot domjtalbot merged commit 6b85c28 into main Jul 31, 2022
@domjtalbot domjtalbot deleted the feature/serve-executor branch July 31, 2022 17:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature Indicates new functionality
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Add serve executor
1 participant