Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkuhrt committed Jun 25, 2021
0 parents commit cdd0bba
Show file tree
Hide file tree
Showing 75 changed files with 12,556 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .eslintignore
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
26 changes: 26 additions & 0 deletions .eslintrc
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": "^_" }]
}
}
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE.md
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)
16 changes: 16 additions & 0 deletions .github/ISSUE_TEMPLATE/10-feature.md
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)
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/20-bug.md
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 -->
16 changes: 16 additions & 0 deletions .github/ISSUE_TEMPLATE/30-docs.md
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)
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/99-something-else.md
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
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
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
6 changes: 6 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
closes #...

#### TODO

- [ ] docs
- [ ] tests
41 changes: 41 additions & 0 deletions .github/renovate.json
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"
}
]
}
54 changes: 54 additions & 0 deletions .github/workflows/pr.yml
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
43 changes: 43 additions & 0 deletions .github/workflows/trunk.yml
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
108 changes: 108 additions & 0 deletions .gitignore
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
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dist-cjs
dist-esm
.next
Loading

0 comments on commit cdd0bba

Please sign in to comment.