Skip to content

Commit 5862251

Browse files
committed
genesis
0 parents  commit 5862251

28 files changed

+10384
-0
lines changed

.eslintrc.js

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
module.exports = {
2+
env: {
3+
es2020: true,
4+
node: true,
5+
jest: true,
6+
},
7+
extends: [
8+
'eslint:recommended',
9+
'plugin:@typescript-eslint/recommended',
10+
'plugin:prettier/recommended',
11+
],
12+
parser: '@typescript-eslint/parser',
13+
plugins: ['@typescript-eslint', 'prettier'],
14+
rules: {
15+
// unused vars will be handled by the TS compiler
16+
'@typescript-eslint/no-unused-vars': 'off',
17+
'@typescript-eslint/ban-ts-comment': [
18+
'error',
19+
{
20+
'ts-expect-error': 'allow-with-description',
21+
},
22+
],
23+
},
24+
};

.github/FUNDING.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: enisdenjo

.github/ISSUE_TEMPLATE/bug_report.md

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: 🐞 Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
---
8+
9+
**Screenshot**
10+
Visualising is always helpful.
11+
12+
**Expected Behaviour**
13+
I expected it to do _this_ -
14+
15+
**Actual Behaviour**
16+
but instead it did _this_.
17+
18+
**Debug Information**
19+
Help us debug the bug?
20+
21+
**Further Information**
22+
Anything else you might find helpful.

.github/ISSUE_TEMPLATE/user_story.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: 🚀 User story
3+
about: Suggest a feature in a form of user story
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
---
8+
9+
### Story
10+
11+
As a _user or client or server_
12+
13+
I want _some feature_
14+
15+
So that _some value_
16+
17+
### Acceptance criteria
18+
19+
- _user or client or server type_ is able to...
20+
- _user or client or server type_ can add...
21+
- _user or client or server type_ can remove...
+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Build and release
2+
3+
on: workflow_dispatch
4+
5+
jobs:
6+
build:
7+
name: Build
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v2
12+
- name: Set up node
13+
uses: actions/setup-node@v2
14+
with:
15+
node-version: 18
16+
cache: 'yarn'
17+
- name: Install
18+
run: yarn install --immutable
19+
- name: Build
20+
run: yarn build
21+
- name: Upload build
22+
uses: actions/upload-artifact@v2
23+
with:
24+
name: build
25+
path: |
26+
lib
27+
umd
28+
29+
release:
30+
name: Release
31+
runs-on: ubuntu-latest
32+
needs: [build]
33+
environment: npm
34+
steps:
35+
- name: Checkout
36+
uses: actions/checkout@v2
37+
with:
38+
token: ${{ secrets.GH_TOKEN }}
39+
fetch-depth: 0 # necessary for correct CHANGELOGS
40+
- name: Set up node
41+
uses: actions/setup-node@v2
42+
with:
43+
node-version: 18
44+
cache: 'yarn'
45+
- name: Install
46+
run: yarn install --immutable
47+
- name: Download build
48+
uses: actions/download-artifact@v2
49+
with:
50+
name: build
51+
- name: Release
52+
env:
53+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
54+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
55+
run: yarn release

.github/workflows/codeql-analysis.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: 'CodeQL analysis'
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
types: [opened, synchronize, reopened]
9+
branches:
10+
- master
11+
schedule:
12+
- cron: '0 23 * * 0'
13+
14+
jobs:
15+
analyze:
16+
name: Analyze
17+
runs-on: ubuntu-latest
18+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v2
22+
- name: Initialize
23+
uses: github/codeql-action/init@v1
24+
with:
25+
languages: javascript
26+
- name: Perform analysis
27+
uses: github/codeql-action/analyze@v1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Continuous integration
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
types: [opened, synchronize, reopened]
9+
branches:
10+
- master
11+
12+
jobs:
13+
lint:
14+
name: Lint
15+
runs-on: ubuntu-latest
16+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
- name: Set up node
21+
uses: actions/setup-node@v2
22+
with:
23+
node-version: 18
24+
cache: 'yarn'
25+
- name: Install
26+
run: yarn install --immutable
27+
- name: Lint
28+
run: yarn lint
29+
30+
type-check:
31+
name: Type check
32+
runs-on: ubuntu-latest
33+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
34+
steps:
35+
- name: Checkout
36+
uses: actions/checkout@v2
37+
- name: Set up node
38+
uses: actions/setup-node@v2
39+
with:
40+
node-version: 18
41+
cache: 'yarn'
42+
- name: Install
43+
run: yarn install --immutable
44+
- name: Type check
45+
run: yarn type-check
46+
47+
test:
48+
name: Test
49+
runs-on: ubuntu-latest
50+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
51+
steps:
52+
- name: Checkout
53+
uses: actions/checkout@v2
54+
- name: Set up node
55+
uses: actions/setup-node@v2
56+
with:
57+
node-version: 18
58+
cache: 'yarn'
59+
- name: Install
60+
run: yarn install --immutable
61+
- name: Test
62+
run: yarn test --forceExit

.gitignore

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
**/.DS_Store
2+
node_modules
3+
lib
4+
umd
5+
dist
6+
.vscode
7+
.yarn/*
8+
!.yarn/releases
9+
!.yarn/plugins

.prettierrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"singleQuote": true,
3+
"trailingComma": "all"
4+
}

.releaserc

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"plugins": [
3+
"@semantic-release/commit-analyzer",
4+
"@semantic-release/release-notes-generator",
5+
"@semantic-release/changelog",
6+
[
7+
"@semantic-release/npm",
8+
{
9+
"tarballDir": "dist"
10+
}
11+
],
12+
[
13+
"@semantic-release/git",
14+
{
15+
"message": "chore(release): 🎉 ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
16+
}
17+
],
18+
[
19+
"@semantic-release/github",
20+
{
21+
"assets": "dist/*.tgz",
22+
"failComment": false,
23+
"failTitle": false,
24+
"labels": false
25+
}
26+
]
27+
]
28+
}

.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

+541
Large diffs are not rendered by default.

.yarn/releases/yarn-3.2.2.cjs

+783
Large diffs are not rendered by default.

.yarnrc.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
nodeLinker: node-modules
2+
3+
plugins:
4+
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
5+
spec: "@yarnpkg/plugin-interactive-tools"
6+
7+
yarnPath: .yarn/releases/yarn-3.2.2.cjs

CODE_OF_CONDUCT.md

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, sex characteristics, gender identity and expression,
9+
level of experience, education, socio-economic status, nationality, personal
10+
appearance, race, religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at [email protected]. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72+
73+
[homepage]: https://www.contributor-covenant.org
74+
75+
For answers to common questions about this code of conduct, see
76+
https://www.contributor-covenant.org/faq

CONTRIBUTING.md

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Contributing to `graphql-http`
2+
3+
## Reporting Issues
4+
5+
Issues are for bugs or features. Please consider the following checklist.
6+
7+
### Checklist
8+
9+
- [x] Does your title concisely summarize the problem?
10+
- [x] Is it possible for you to include a minimal, reproducable example? Is it an [SSCCE](http://sscce.org)?
11+
- [x] What OS and browser are you using? What versions?
12+
- [x] Did you use a Issue Template?
13+
14+
### General Guidelines
15+
16+
- **Keep it concise.** Longer issues are harder to understand.
17+
- **Keep it focused.** Solving three vague problems is harder than solving one specific problem.
18+
- **Be friendly!** Everyone is working hard and trying to be effective.
19+
20+
## [Git Commit Guidelines](https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#-git-commit-guidelines)
21+
22+
This repository follows the [Angular Commit Message Conventions](https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#-git-commit-guidelines) for auto-generating the documentation and keeping readability high.
23+
24+
## Comments in Code
25+
26+
We use a convention for comments in code:
27+
{NOTE/FIXME/TODO}-{initials}-{YYMMDD} descriptive text
28+
29+
so for example: // TODO-db-19001 leaving a todo note here for the next guy (or future me)

LICENSE.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 Denis Badurina
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)