-
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.
* adding graphql packages * valid e2e tests, esm packages, passing unit tests * adding build steps to workflow files * removing xmlkit from the equation * fixing e2e path * reorganizing build scripts * adding new check for sign up test Co-authored-by: Charlie ⚡ <[email protected]>
- Loading branch information
1 parent
42b085e
commit b7b8401
Showing
73 changed files
with
4,528 additions
and
602 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,2 @@ | ||
node_modules | ||
npm-debug.log |
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
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,20 @@ | ||
FROM node:18-alpine | ||
|
||
# Create app directory | ||
WORKDIR /usr/src/app | ||
RUN npm install -g turbo | ||
|
||
# Install app dependencies | ||
# A wildcard is used to ensure both package.json AND package-lock.json are copied | ||
# where available (npm@5+) | ||
COPY package*.json ./ | ||
COPY turbo.json ./ | ||
|
||
RUN npm install | ||
RUN npm run build | ||
|
||
# Bundle app source | ||
COPY . . | ||
|
||
EXPOSE 4000 | ||
CMD ["npm", "start"] |
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
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,28 @@ | ||
import { mapSchema, getDirective, MapperKind } from "@graphql-tools/utils"; | ||
import { defaultFieldResolver, GraphQLSchema } from "graphql"; | ||
|
||
export function upperDirectiveTransformer(schema: GraphQLSchema, directiveName: string) { | ||
return mapSchema(schema, { | ||
// Executes once for each object field in the schema | ||
[MapperKind.OBJECT_FIELD]: (fieldConfig) => { | ||
// Check whether this field has the specified directive | ||
const upperDirective = getDirective(schema, fieldConfig, directiveName)?.[0]; | ||
|
||
if (upperDirective) { | ||
// Get this field's original resolver | ||
const { resolve = defaultFieldResolver } = fieldConfig; | ||
|
||
// Replace the original resolver with a function that *first* calls | ||
// the original resolver, then converts its result to upper case | ||
fieldConfig.resolve = async function (source, args, context, info) { | ||
const result = await resolve(source, args, context, info); | ||
if (typeof result === "string") { | ||
return result.toUpperCase(); | ||
} | ||
return result; | ||
}; | ||
return fieldConfig; | ||
} | ||
}, | ||
}); | ||
} |
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
Oops, something went wrong.
b7b8401
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
reubin – ./
reubin.app
alpha.reubin.app
reubin-hephaestus.vercel.app
pre-alpha.reubin.app
reubin-site.vercel.app
reubin-git-main-hephaestus.vercel.app