From 8b59a247e6d89ebe58a0777d94e8a1f8b0bbcfbb Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Mon, 25 May 2020 10:50:47 -0700 Subject: [PATCH] feat(graphql): add `npm run demo` script --- extensions/graphql/README.md | 3 +-- extensions/graphql/package.json | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/graphql/README.md b/extensions/graphql/README.md index a2a47c37023a..4aabaee22026 100644 --- a/extensions/graphql/README.md +++ b/extensions/graphql/README.md @@ -63,8 +63,7 @@ npm install --save @loopback/graphql ## Try it out ```sh -npm run build -node dist/__tests__/fixtures/graphql-test/src/index.js +npm run demo ``` You should see the following messages: diff --git a/extensions/graphql/package.json b/extensions/graphql/package.json index 75947c9e01e8..ab71980c875e 100644 --- a/extensions/graphql/package.json +++ b/extensions/graphql/package.json @@ -15,6 +15,7 @@ "integration": "lb-mocha \"dist/__tests__/integration/**/*.js\"", "test": "lb-mocha \"dist/__tests__/**/*.js\"", "unit": "lb-mocha \"dist/__tests__/unit/**/*.js\"", + "demo": "npm run build && node dist/__tests__/fixtures/graphql-test/src/index.js", "verify": "npm pack && tar xf loopback-graphql*.tgz && tree package && npm run clean" }, "author": "IBM Corp.",