Skip to content

Commit 16cdc6f

Browse files
authored
GraphQL CLI integration (#1535)
1 parent 97a8fb6 commit 16cdc6f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+2204
-670
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,23 @@ about: Create a bug report to help us improve
44
---
55

66
**Describe the bug**
7-
<!-- A clear and concise description of what the bug is. -->
7+
8+
<!-- A clear and concise description of what the bug is. -->
89

910
**To Reproduce**
1011
Steps to reproduce the behavior:
1112

1213
**Expected behavior**
14+
1315
<!-- A clear and concise description of what you expected to happen. -->
1416

1517
**Environment:**
1618

17-
- OS:
18-
- `@graphql-inspector/...`:
19-
- `graphql`:
20-
- NodeJS:
19+
- OS:
20+
- `@graphql-inspector/...`:
21+
- `graphql`:
22+
- NodeJS:
2123

2224
**Additional context**
25+
2326
<!-- Add any other context about the problem here. -->

.prettierignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
packages/*/dist
2-
dist/functions/
3-
website/live/build/
2+
dist/
3+
website/
44
website/build/
55
public/
66
lib/
7+
.vscode/
8+
.github/
9+
action/

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Use GraphQL Inspector however you want:
3838

3939
## Installation and Usage
4040

41-
Visit our website [**graphql-inspector.com**](https://graphql-inspector.com/) to learn more about the project.
41+
Visit our website [**graphql-inspector.com**](https://graphql-inspector.com/) to learn more about the project.
4242

4343
## Documentation
4444

action/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bob.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ module.exports = {
1313
],
1414
commands: {
1515
test: {
16-
track: ['jest.config.js', '<project>/jest.config.js', '<project>/__tests__/**'],
16+
track: [
17+
'jest.config.js',
18+
'<project>/jest.config.js',
19+
'<project>/__tests__/**',
20+
],
1721
run(affected) {
1822
return [`yarn`, ['test', '--passWithNoTests', ...affected.paths]];
1923
},

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
"npmClient": "yarn",
33
"useWorkspaces": true,
44
"version": "2.0.1"
5-
}
5+
}

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"affected:test": "bob run test",
2626
"build": "tsc --project tsconfig.json && bob build",
2727
"test": "jest",
28+
"prebuild": "rimraf \"packages/**/dist/\"",
2829
"now-build": "yarn build && (cd website && yarn && yarn build && mv build ../public)",
2930
"action": "ncc build packages/action/src/action.ts --out action --minify --transpile-only",
3031
"bundle": "webpack",
@@ -43,14 +44,16 @@
4344
"@types/yargs": "15.0.5",
4445
"@zeit/ncc": "0.22.2",
4546
"axios": "0.19.2",
46-
"bob-the-bundler": "1.0.2",
47+
"bob-the-bundler": "1.0.3-alpha.0",
4748
"graphql": "15.0.0",
49+
"graphql-config": "^3.0.2",
4850
"jest": "26.0.1",
4951
"jsesc": "3.0.1",
5052
"lint-staged": "10.2.7",
5153
"lodash": "4.17.15",
5254
"nock": "12.0.3",
5355
"prettier": "2.0.5",
56+
"rimraf": "3.0.2",
5457
"smee-client": "1.1.0",
5558
"strip-ansi": "6.0.0",
5659
"ts-jest": "26.1.0",
@@ -67,7 +70,8 @@
6770
"workspaces": [
6871
"packages/*",
6972
"packages/commands/*",
70-
"packages/loaders/*"
73+
"packages/loaders/*",
74+
"packages/graphql-cli/*"
7175
],
7276
"lint-staged": {
7377
"*.{js,json,md,ts,graphql}": [

packages/action/src/action.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
import * as core from '@actions/core';
66
import {run} from './run';
77

8-
run().catch(e => {
8+
run().catch((e) => {
99
core.setFailed(e.message || e);
1010
});

packages/action/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as core from '@actions/core';
22
import {run} from './run';
33

4-
run().catch(e => {
4+
run().catch((e) => {
55
core.setFailed(e.message || e);
66
});

packages/action/src/run.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const CHECK_NAME = 'GraphQL Inspector';
1717

1818
function getCurrentCommitSha() {
1919
const sha = execSync(`git rev-parse HEAD`).toString().trim();
20-
20+
2121
try {
2222
const msg = execSync(`git show ${sha} -s --format=%s`).toString().trim();
2323
const PR_MSG = /Merge (\w+) into \w+/i;

0 commit comments

Comments
 (0)