forked from apollographql/apollo-server
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(monorepo): moved original code into one directory (WIP)
TODO: [ ] Pending new lerna version with root-dev patch. (lerna/lerna#357) [ ] Pending new name for apollo-server to be chosen. (apollographql#163) [ ] Need to Create GitHub labels and modify lerna.json according it. [ ] Add Different README.md for each package ?? [ ] Make sure tests/coverage are working
- Loading branch information
Showing
51 changed files
with
574 additions
and
131 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"lerna": "2.0.0-beta.29", | ||
"version": "0.3.2", | ||
"changelog": { | ||
"repo": "apollostack/apollo-server", | ||
"labels": { | ||
"tag: spec compliancy": ":eyeglasses: Spec Compliancy", | ||
"tag: breaking change": ":boom: Breaking Change", | ||
"tag: new feature": ":rocket: New Feature", | ||
"tag: bug fix": ":bug: Bug Fix", | ||
"tag: polish": ":nail_care: Polish", | ||
"tag: documentation": "Documentation", | ||
"tag: internal": ":house: Internal" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,98 +1,41 @@ | ||
{ | ||
"name": "apollo-server", | ||
"version": "0.3.2", | ||
"description": "Production-ready Node.js GraphQL server for Express, Hapi, Koa", | ||
"main": "dist/index.js", | ||
"directories": { | ||
"test": "test" | ||
"private": true, | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/apollostack/apollo-server.git" | ||
}, | ||
"scripts": { | ||
"compile": "tsc", | ||
"typings": "typings install", | ||
"compile": "lerna exec -- npm run compile", | ||
"lint": "tslint ./packages/**/src/**/*.ts", | ||
"prebootstrap": "npm install", | ||
"bootstrap": "lerna bootstrap", | ||
"pretest": "npm run compile", | ||
"test": "npm run testonly --", | ||
"posttest": "npm run lint", | ||
"lint": "tslint ./src/**/*.ts", | ||
"watch": "tsc -w", | ||
"testonly": "mocha --compilers js:babel-core/register --reporter spec --full-trace ./dist/test/tests.js", | ||
"coverage": "babel-node ./node_modules/istanbul/lib/cli.js cover _mocha -- --full-trace ./dist/test/tests.js", | ||
"testonly": "mocha --compilers js:babel-core/register --reporter spec --full-trace ./test/tests.js", | ||
"coverage": "babel-node ./node_modules/istanbul/lib/cli.js cover _mocha -- --full-trace ./test/tests.js", | ||
"postcoverage": "remap-istanbul --input coverage/coverage.raw.json --type lcovonly --output coverage/lcov.info" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/apollostack/apollo-server.git" | ||
}, | ||
"keywords": [ | ||
"GraphQL", | ||
"Apollo", | ||
"Hapi", | ||
"Koa", | ||
"Express", | ||
"Javascript" | ||
], | ||
"author": "Jonas Helfer <jonas@helfer.email>", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/apollostack/apollo-proxy/issues" | ||
}, | ||
"homepage": "https://github.com/apollostack/apollo-proxy#readme", | ||
"dependencies": { | ||
"@types/body-parser": "0.0.33", | ||
"@types/boom": "0.0.32", | ||
"@types/chai": "^3.4.34", | ||
"@types/connect": "^3.4.30", | ||
"@types/cookies": "^0.5.30", | ||
"@types/express": "^4.0.33", | ||
"@types/express-serve-static-core": "^4.0.36", | ||
"@types/fibers": "0.0.29", | ||
"@types/hapi": "^13.0.35", | ||
"@types/http-errors": "^1.3.29", | ||
"@types/koa": "^2.0.33", | ||
"@types/koa-bodyparser": "^3.0.19", | ||
"@types/koa-router": "^7.0.21", | ||
"@types/mime": "0.0.29", | ||
"@types/multer": "0.0.32", | ||
"@types/node": "^6.0.41", | ||
"@types/serve-static": "^1.7.31", | ||
"boom": "^4.0.0", | ||
"http-errors": "^1.5.0", | ||
"source-map-support": "^0.4.2", | ||
"typed-graphql": "^1.0.2" | ||
}, | ||
"devDependencies": { | ||
"@types/chai": "^3.4.34", | ||
"@types/mocha": "^2.2.32", | ||
"@types/node": "^6.0.42", | ||
"@types/sinon": "^1.16.31", | ||
"babel-cli": "^6.11.4", | ||
"babel-core": "^6.11.4", | ||
"babel-polyfill": "^6.9.1", | ||
"babel-preset-es2015": "^6.9.0", | ||
"body-parser": "^1.15.2", | ||
"chai": "^3.5.0", | ||
"connect": "^3.4.1", | ||
"express": "^4.14.0", | ||
"fibers": "^1.0.13", | ||
"graphql": "^0.7.0", | ||
"hapi": "^15.0.3", | ||
"istanbul": "1.0.0-alpha.2", | ||
"koa": "^2.0.0-alpha.4", | ||
"koa-bodyparser": "^3.0.0", | ||
"koa-router": "^7.0.1", | ||
"meteor-promise": "^0.7.3", | ||
"lerna": "^2.0.0-beta.29", | ||
"mocha": "^3.0.0", | ||
"multer": "^1.1.0", | ||
"remap-istanbul": "^0.6.4", | ||
"sinon": "^1.17.5", | ||
"sinon": "^1.17.6", | ||
"supertest": "^2.0.0", | ||
"supertest-as-promised": "^4.0.0", | ||
"tslint": "^3.13.0", | ||
"typescript": "^2.0.3", | ||
"typings": "^1.3.2" | ||
}, | ||
"peerDependencies": { | ||
"graphql": "^0.6.1 || ^0.7.0" | ||
}, | ||
"typings": "dist/index.d.ts", | ||
"typescript": { | ||
"definition": "dist/index.d.ts" | ||
"typescript": "^2.0.3" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
* | ||
!dist | ||
!dist/**/* | ||
dist/**/*.test.* | ||
!package.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"name": "apollo-server-core", | ||
"version": "0.3.2", | ||
"description": "Core engine ffor Apollo GraphQL server", | ||
"main": "dist/index.js", | ||
"scripts": { | ||
"compile": "tsc", | ||
"prepublish": "npm run compile" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/apollostack/apollo-server/tree/master/packages/apollo-server-core" | ||
}, | ||
"keywords": [ | ||
"GraphQL", | ||
"Apollo", | ||
"Server", | ||
"Javascript" | ||
], | ||
"author": "Jonas Helfer <jonas@helfer.email>", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/apollostack/apollo-server/issues" | ||
}, | ||
"homepage": "https://github.com/apollostack/apollo-server#readme", | ||
"dependencies": { | ||
"typed-graphql": "^1.0.2" | ||
}, | ||
"devDependencies": { | ||
"@types/fibers": "0.0.29", | ||
"fibers": "^1.0.13", | ||
"meteor-promise": "^0.7.3" | ||
}, | ||
"peerDependencies": { | ||
"graphql": "^0.6.1 || ^0.7.0" | ||
}, | ||
"typings": "dist/index.d.ts", | ||
"typescript": { | ||
"definition": "dist/index.d.ts" | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
src/integrations/apolloOptions.ts → ...s/apollo-server-core/src/apolloOptions.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export { runQuery, LogFunction, LogMessage, LogStep, LogAction } from './runQuery' | ||
export { default as ApolloOptions} from './apolloOptions' |
1 change: 1 addition & 0 deletions
1
src/core/runQuery.test.ts → ...s/apollo-server-core/src/runQuery.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
import { expect } from 'chai'; | ||
import { stub } from 'sinon'; | ||
import 'mocha'; | ||
|
||
import { | ||
GraphQLSchema, | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "es6", | ||
"module": "commonjs", | ||
"moduleResolution": "node", | ||
"sourceMap": true, | ||
"declaration": true, | ||
"noImplicitAny": false, | ||
"rootDir": "./src", | ||
"outDir": "./dist", | ||
"allowSyntheticDefaultImports": false, | ||
"pretty": true, | ||
"removeComments": true, | ||
"typeRoots": [ | ||
"node_modules/@types" | ||
], | ||
"types": [ | ||
"typed-graphql", | ||
"@types/node" | ||
] | ||
}, | ||
"exclude": [ | ||
"node_modules", | ||
"dist" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
* | ||
!dist | ||
!dist/**/* | ||
dist/**/*.test.* | ||
!package.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"name": "apollo-server-express", | ||
"version": "0.3.2", | ||
"description": "Production-ready Node.js GraphQL server for Express, Connect", | ||
"main": "dist/index.js", | ||
"scripts": { | ||
"compile": "tsc", | ||
"prepublish": "npm run compile" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/apollostack/apollo-server/tree/master/packages/apollo-server-express" | ||
}, | ||
"keywords": [ | ||
"GraphQL", | ||
"Apollo", | ||
"Server", | ||
"Express", | ||
"Connect", | ||
"Javascript" | ||
], | ||
"author": "Jonas Helfer <jonas@helfer.email>", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/apollostack/apollo-server/issues" | ||
}, | ||
"homepage": "https://github.com/apollostack/apollo-server#readme", | ||
"dependencies": { | ||
"@types/express": "^4.0.33", | ||
"apollo-server-core": "^0.3.2", | ||
"apollo-server-graphiql": "^0.3.2" | ||
}, | ||
"devDependencies": { | ||
"@types/body-parser": "0.0.33", | ||
"@types/connect": "^3.4.30", | ||
"@types/multer": "0.0.32", | ||
"apollo-server-integration-testsuite": "^0.3.2", | ||
"body-parser": "^1.15.2", | ||
"connect": "^3.4.1", | ||
"express": "^4.14.0", | ||
"multer": "^1.2.0", | ||
"typed-graphql": "^1.0.2" | ||
}, | ||
"peerDependencies": { | ||
"graphql": "^0.6.1 || ^0.7.0" | ||
}, | ||
"typings": "dist/index.d.ts", | ||
"typescript": { | ||
"definition": "dist/index.d.ts" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
src/integrations/connectApollo.test.ts → ...-server-express/src/connectApollo.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
5 changes: 3 additions & 2 deletions
5
src/integrations/expressApollo.test.ts → ...-server-express/src/expressApollo.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export { ExpressApolloOptionsFunction, ExpressHandler, apolloExpress, graphiqlExpress } from './expressApollo'; | ||
export { apolloConnect, graphiqlConnect } from './connectApollo'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "es6", | ||
"module": "commonjs", | ||
"moduleResolution": "node", | ||
"sourceMap": true, | ||
"declaration": true, | ||
"noImplicitAny": false, | ||
"rootDir": "./src", | ||
"outDir": "./dist", | ||
"allowSyntheticDefaultImports": false, | ||
"pretty": true, | ||
"removeComments": true, | ||
"typeRoots": [ | ||
"node_modules/@types" | ||
], | ||
"types": [ | ||
"typed-graphql", | ||
"@types/node" | ||
] | ||
}, | ||
"exclude": [ | ||
"node_modules", | ||
"dist" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
* | ||
!dist | ||
!dist/**/* | ||
dist/**/*.test.* | ||
!package.json |
Oops, something went wrong.