This file contains hidden or 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
const express = require('express') | |
const graphqlHTTP = require('express-graphql') | |
const makeExecutableSchema = require('graphql-tools').makeExecutableSchema | |
const schema = makeExecutableSchema({ | |
typeDefs: ` | |
type Query { | |
user: User | |
} |
This file contains hidden or 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
#!/usr/bin/env bash | |
# | |
# Determine divergence from create-react-app! | |
# Use this if you've ejected from create-react-app and want to see how its | |
# latest output would differ in key areas (package.json, config, scripts). | |
# | |
# - Assumes you can run create-react-app, so make sure it's installed. | |
# - Only shows files you've modified or removed from create-react-app. | |
# - Runs $FORMAT_COMMAND below on the create-react-app directory so formatting | |
# differences don't show up. Use something like Prettier, eslint --fix, etc. |
This file contains hidden or 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 is based on some transpiled Babel code causing the `default` export | |
// to be undefined. If you look at the ultimate code that ends up in the Next.js | |
// bundle, `Object` method references are changed to strange `@babel/runtime` | |
// references, which seems to potentially cause a circular import (?) resulting | |
// in it being undefined. | |
exports.__esModule = true; | |
exports.default = DebugProvider; | |
exports.DebugContext = void 0; | |
var _react = _interopRequireWildcard(require("react")); |
This file contains hidden or 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
/** | |
* Parses ICU message syntax into an AST. | |
* Supports these features: | |
* - Apostrophe escapes (uses DOUBLE_OPTIONAL mode). | |
* - {simple} substitution. | |
* - {var, type} substitution. | |
* - {var, type, format} substitution, where format can contain complex nesting | |
* of additional ICU messages, for example: | |
* “I’ve invited {n, plural, offset:1 | |
* =0 {nobody!} |
OlderNewer