Skip to content

Commit

Permalink
Revert "Serve command (#3)"
Browse files Browse the repository at this point in the history
This reverts commit 3cf6546.
  • Loading branch information
kamilkisiela authored Nov 18, 2018
1 parent 3cf6546 commit 98bfd65
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 50 deletions.
1 change: 0 additions & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"similar": "node ../dist/cli.js similar ./schemas/similar.graphql",
"similar:type": "node ../dist/cli.js similar ./schemas/similar.graphql --type Post",
"similar:loose": "node ../dist/cli.js similar ./schemas/similar.graphql --threshold 0.1",
"serve": "node ../dist/cli.js serve ./schemas/schema.graphql",
"open-help": "node ../dist/cli.js --help"
}
}
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"@types/jest": "23.3.9",
"@types/log-symbols": "2.0.0",
"@types/node-fetch": "2.1.3",
"@types/opn": "5.1.0",
"@types/string-similarity": "1.2.0",
"graphql": "14.0.2",
"graphql-tag": "2.10.0",
Expand All @@ -54,15 +53,13 @@
"typescript": "3.1.6"
},
"dependencies": {
"apollo-server": "2.2.2",
"chalk": "2.4.1",
"commander": "2.19.0",
"glob": "7.1.3",
"is-glob": "4.0.0",
"is-valid-path": "0.1.1",
"log-symbols": "2.2.0",
"node-fetch": "2.3.0",
"opn": "5.4.0",
"string-similarity": "2.0.0"
}
}
6 changes: 0 additions & 6 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import * as commander from 'commander';
import {diff} from './cli/commands/diff';
import {validate} from './cli/commands/validate';
import {similar} from './cli/commands/similar';
import {serve} from './cli/commands/serve';

commander
.command('diff <old> <new>')
Expand All @@ -26,9 +25,4 @@ commander
similar(schema, cmd.type, cmd.threshold);
});

commander
.command('serve <schema>')
.description('Serves a GraphQL API with GraphQL Playground')
.action(serve);

commander.parse(process.argv);
39 changes: 0 additions & 39 deletions src/cli/commands/serve.ts

This file was deleted.

1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"noUnusedParameters": true,

"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"baseUrl": "./",
"types": [],
"lib": [
Expand Down

0 comments on commit 98bfd65

Please # to comment.