forked from gatsbyjs/gatsby
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move schema inference to separate module
See gatsbyjs#1116 for the reason behind this change.
- Loading branch information
Showing
29 changed files
with
242 additions
and
93 deletions.
There are no files selected for viewing
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,30 @@ | ||
# Logs | ||
logs | ||
*.log | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (http://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directory | ||
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git | ||
node_modules | ||
|
||
decls | ||
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,2 @@ | ||
src | ||
flow-typed |
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 @@ | ||
# gatsby-infer-schema | ||
Infer GraphQL schema types from Gatsby's [node interface](https://www.gatsbyjs.org/docs/node-interface/). |
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,55 @@ | ||
{ | ||
"name": "gatsby-infer-schema", | ||
"description": "GraphQL schema inference for Gatsby", | ||
"version": "1.9.92", | ||
"author": "Kyle Mathews <mathews.kyle@gmail.com>", | ||
"bugs": { | ||
"url": "https://github.com/gatsbyjs/gatsby/issues" | ||
}, | ||
"dependencies": { | ||
"babel-runtime": "^6.26.0", | ||
"bluebird": "^3.5.0", | ||
"common-tags": "^1.4.0", | ||
"flat": "^2.0.1", | ||
"gatsby-cli": "^1.1.17", | ||
"graphql": "^0.11.7", | ||
"graphql-skip-limit": "^1.0.7", | ||
"invariant": "^2.2.2", | ||
"lodash": "^4.17.4", | ||
"minimatch": "^3.0.4", | ||
"sift": "^3.2.6", | ||
"type-of": "^2.0.1" | ||
}, | ||
"devDependencies": { | ||
"babel-cli": "^6.26.0", | ||
"cross-env": "^5.0.5", | ||
"iflow-debug": "^1.0.15", | ||
"iflow-lodash": "^1.1.24", | ||
"iflow-react-router": "^1.2.1", | ||
"nyc": "^7.0.0", | ||
"rimraf": "^2.6.1" | ||
}, | ||
"engines": { | ||
"node": ">4.0.0" | ||
}, | ||
"resolutions": { | ||
"graphql": "^0.11.7" | ||
}, | ||
"keywords": [ | ||
"gatsby", | ||
"graphql" | ||
], | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/gatsbyjs/gatsby.git" | ||
}, | ||
"scripts": { | ||
"build": "rimraf dist && npm run build:src", | ||
"build:src": "babel src --out-dir dist --source-maps --ignore __tests__", | ||
"clean-test-bundles": "find test/ -type f -name bundle.js* -exec rm -rf {} +", | ||
"prepublish": "cross-env NODE_ENV=production npm run build", | ||
"test-coverage": "node_modules/.bin/nyc --reporter=lcov --reporter=text npm test", | ||
"watch": "rimraf dist && mkdir dist && npm run build:src -- --watch" | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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
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 |
---|---|---|
|
@@ -42,6 +42,7 @@ module.exports = function createSortField( | |
}, | ||
}), | ||
}, | ||
__proto__: null, | ||
}, | ||
}), | ||
} | ||
|
File renamed without changes.
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,4 @@ | ||
/* @flow */ | ||
|
||
export const buildNodeTypes = require(`./build-node-types`) | ||
export const buildNodeConnections = require(`./build-node-connections`) |
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
Oops, something went wrong.