|
1 | 1 | #!/usr/bin/env node |
2 | 2 |
|
3 | | -import * as fs from 'fs'; |
4 | | -import * as path from 'path'; |
5 | | - |
6 | | -import * as express from 'express'; |
| 3 | +import * as bodyParser from 'body-parser'; |
7 | 4 | import * as chalk from 'chalk'; |
8 | | -import * as open from 'open'; |
9 | 5 | import * as cors from 'cors'; |
10 | | -import * as bodyParser from 'body-parser'; |
| 6 | +import * as express from 'express'; |
11 | 7 | import { graphqlHTTP } from 'express-graphql'; |
12 | | -import { Source, printSchema } from 'graphql'; |
| 8 | +import * as fs from 'fs'; |
| 9 | +import { printSchema, Source } from 'graphql'; |
13 | 10 | import { express as voyagerMiddleware } from 'graphql-voyager/middleware'; |
| 11 | +import * as open from 'open'; |
| 12 | +import * as path from 'path'; |
14 | 13 |
|
15 | 14 | import { parseCLI } from './cli'; |
| 15 | +import { buildWithFakeDefinitions, ValidationErrors } from './fake_definition'; |
| 16 | +import { fakeFieldResolver, fakeTypeResolver } from './fake_schema'; |
16 | 17 | import { getProxyExecuteFn } from './proxy'; |
17 | | -import { existsSync, readSDL, getRemoteSchema } from './utils'; |
18 | | -import { fakeTypeResolver, fakeFieldResolver } from './fake_schema'; |
19 | | -import { ValidationErrors, buildWithFakeDefinitions } from './fake_definition'; |
| 18 | +import { existsSync, getRemoteSchema, readSDL } from './utils'; |
20 | 19 |
|
21 | 20 | const log = console.log; |
22 | 21 |
|
|
0 commit comments