-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit cdd0bba
Showing
75 changed files
with
12,556 additions
and
0 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,9 @@ | ||
.yalc | ||
.vscode | ||
.github | ||
node_modules | ||
dist-cjs | ||
dist-esm | ||
tests | ||
jest.config.ts | ||
src/ui |
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 @@ | ||
{ | ||
"root": true, | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"project": ["tsconfig.json", "tests/tsconfig.json"] | ||
}, | ||
"plugins": ["@typescript-eslint", "only-warn"], | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/eslint-recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:@typescript-eslint/recommended-requiring-type-checking", | ||
"prettier" | ||
], | ||
"overrides": [], | ||
"rules": { | ||
// TypeScript makes these safe & effective | ||
"no-case-declarations": "off", | ||
// This rule marks nameof as a warning which is annoying if | ||
// using nameof heavily. Alternative is to keep this enabled and | ||
// just disable ESLint around usage of nameof in codebase. | ||
"@typescript-eslint/no-unsafe-call": "off", | ||
// Same approach used by TypeScript noUnusedLocals | ||
"@typescript-eslint/no-unused-vars": ["warn", { "varsIgnorePattern": "^_", "argsIgnorePattern": "^_" }] | ||
} | ||
} |
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,17 @@ | ||
For **questions**, please use the repo's [GitHub Discussions](https://github.com/graphql-nexus/nexus/discussions) | ||
|
||
--- | ||
|
||
For **feature requests**, please fill out the [feature request template](https://github.com/graphql-nexus/nexus/issues/new?template=1-feature.md) | ||
|
||
--- | ||
|
||
For **bug reports**, please fill out the [bug report issue template](https://github.com/graphql-nexus/nexus/issues/new?template=2-bug.md) | ||
|
||
--- | ||
|
||
For **documentation issues**, please fill out the [documentation issue template](https://github.com/graphql-nexus/nexus/issues/new?template=3-docs.md) | ||
|
||
--- | ||
|
||
For **something else**, please fill out the [something else template](https://github.com/graphql-nexus/nexus/issues/new?template=5-other.md) |
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 @@ | ||
--- | ||
name: 🚀 Feature | ||
about: You have an idea for a new capability or a refinement to an existing one | ||
title: '' | ||
labels: type/feat | ||
assignees: '' | ||
--- | ||
|
||
<!-- Instructions --> | ||
<!-- --> | ||
<!-- 1. Remove sections/details you do not complete --> | ||
<!-- 2. Add sections/details useful to you --> | ||
|
||
#### Perceived Problem | ||
|
||
#### Ideas / Proposed Solution(s) |
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,18 @@ | ||
--- | ||
name: 🐛 Bug | ||
about: You encountered something that is not working the way it should | ||
title: '' | ||
labels: type/bug | ||
assignees: '' | ||
--- | ||
|
||
<!-- Instructions --> | ||
<!-- --> | ||
<!-- 1. Remove sections/details you do not complete --> | ||
<!-- 2. Add sections/details useful to you --> | ||
|
||
#### Screenshot | ||
|
||
#### Description <!-- If screenshot not obvious enough --> | ||
|
||
#### Repro Steps/Link <!-- If known/available & screenshot not obvious enough --> |
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 @@ | ||
--- | ||
name: 📗 Docs | ||
about: You have feedback or ideas about the documentation | ||
title: '' | ||
labels: type/docs | ||
assignees: '' | ||
--- | ||
|
||
<!-- Instructions --> | ||
<!-- --> | ||
<!-- 1. Remove sections/details you do not complete --> | ||
<!-- 2. Add sections/details useful to you --> | ||
|
||
#### Perceived Problem | ||
|
||
#### Ideas / Proposed Solution(s) |
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,18 @@ | ||
--- | ||
name: 🤷♂️ Something Else | ||
about: You have something to say that doesn't obviously fit another category here | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
--- | ||
|
||
<!-- Instructions --> | ||
<!-- --> | ||
<!-- 1. Remove sections/details you do not complete --> | ||
<!-- 2. Add sections/details useful to you --> | ||
|
||
#### What | ||
|
||
#### Why | ||
|
||
#### How |
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 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: ✋ Question | ||
about: You have a question about something you're not sure about | ||
url: https://github.com/prisma-labs/bema/discussions/new |
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,6 @@ | ||
closes #... | ||
|
||
#### TODO | ||
|
||
- [ ] docs | ||
- [ ] tests |
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 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": ["config:js-lib"], | ||
"labels": ["type/deps"], | ||
"major": { | ||
"semanticCommitType": "deps", | ||
"semanticCommitScope": "" | ||
}, | ||
"packageRules": [ | ||
{ | ||
"groupName": "renovate-meta", | ||
"updateTypes": ["lockFileMaintenance", "pin"], | ||
"labels": ["type/chore"], | ||
"semanticCommitType": "chore", | ||
"semanticCommitScope": "deps" | ||
}, | ||
{ | ||
"groupName": "dependencies (non-major)", | ||
"depTypeList": ["dependencies"], | ||
"updateTypes": ["patch", "minor"], | ||
"labels": ["type/deps"], | ||
"semanticCommitType": "deps" | ||
}, | ||
{ | ||
"groupName": "devDependencies (major)", | ||
"depTypeList": ["devDependencies"], | ||
"updateTypes": ["major"], | ||
"labels": ["type/chore"], | ||
"semanticCommitType": "chore", | ||
"semanticCommitScope": "deps" | ||
}, | ||
{ | ||
"groupName": "devDependencies (non-major)", | ||
"depTypeList": ["devDependencies"], | ||
"updateTypes": ["patch", "minor"], | ||
"labels": ["type/chore"], | ||
"semanticCommitType": "chore", | ||
"semanticCommitScope": "deps" | ||
} | ||
] | ||
} |
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,54 @@ | ||
name: pr | ||
|
||
on: | ||
- pull_request | ||
|
||
jobs: | ||
format-imports: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 16.x | ||
- name: Install Dependencies | ||
run: yarn --frozen-lockfile | ||
- run: yarn -s format:check:imports | ||
|
||
prettier: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 16.x | ||
- name: Install Dependencies | ||
run: yarn --frozen-lockfile | ||
- run: yarn -s format:check:prettier | ||
|
||
eslint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 16.x | ||
- name: Install Dependencies | ||
run: yarn --frozen-lockfile | ||
- run: yarn -s lint:check | ||
|
||
test: | ||
strategy: | ||
matrix: | ||
os: ['ubuntu-latest', 'macos-latest', 'windows-latest'] | ||
node-version: [14.x, 16.x] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: yarn --frozen-lockfile | ||
- run: yarn -s build | ||
- run: yarn -s test |
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,43 @@ | ||
name: trunk | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
os: ['ubuntu-latest', 'macos-latest', 'windows-latest'] | ||
node-version: [14.x, 16.x] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Install Dependencies | ||
run: yarn --frozen-lockfile | ||
- run: yarn -s build | ||
- run: yarn -s test | ||
|
||
release-canary: | ||
needs: [test] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 16.x | ||
- name: Install Dependencies | ||
run: yarn --frozen-lockfile | ||
- name: Release Canary | ||
env: | ||
NPM_TOKEN: ${{secrets.NPM_TOKEN}} | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
run: | | ||
yarn -s dripip preview --json > result.json | ||
jq '.' < result.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,108 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
lerna-debug.log* | ||
|
||
# Diagnostic reports (https://nodejs.org/api/report.html) | ||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
*.lcov | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
|
||
# TypeScript v1 declaration files | ||
typings/ | ||
|
||
# TypeScript cache | ||
*.tsbuildinfo | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Microbundle cache | ||
.rpt2_cache/ | ||
.rts2_cache_cjs/ | ||
.rts2_cache_es/ | ||
.rts2_cache_umd/ | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
.env.test | ||
|
||
# parcel-bundler cache (https://parceljs.org/) | ||
.cache | ||
|
||
# Next.js build output | ||
.next | ||
|
||
# Nuxt.js build / generate output | ||
.nuxt | ||
dist | ||
|
||
# Gatsby files | ||
.cache/ | ||
# Comment in the public line in if your project uses Gatsby and *not* Next.js | ||
# https://nextjs.org/blog/next-9-1#public-directory-support | ||
# public | ||
|
||
# vuepress build output | ||
.vuepress/dist | ||
|
||
# Serverless directories | ||
.serverless/ | ||
|
||
# FuseBox cache | ||
.fusebox/ | ||
|
||
# DynamoDB Local files | ||
.dynamodb/ | ||
|
||
# TernJS port file | ||
.tern-port | ||
|
||
# This library | ||
dist-esm | ||
dist-cjs |
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,3 @@ | ||
dist-cjs | ||
dist-esm | ||
.next |
Oops, something went wrong.