Skip to content
This repository was archived by the owner on Mar 8, 2024. It is now read-only.

Commit b2d5d1b

Browse files
committed
Initial repo setup
0 parents  commit b2d5d1b

24 files changed

Lines changed: 4346 additions & 0 deletions

.eslintignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Do not lint generated files.
2+
src/generated
3+
build
4+
dist
5+
6+
# Don't ever lint node_modules
7+
node_modules

.eslintrc.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
module.exports = {
2+
root: true,
3+
4+
parser: '@typescript-eslint/parser', // Make ESLint compatible with TypeScript
5+
parserOptions: {
6+
// Enable linting rules with type information from our tsconfig
7+
tsconfigRootDir: __dirname,
8+
project: ['./tsconfig.eslint.json'],
9+
10+
sourceType: 'module', // Allow the use of imports / ES modules
11+
12+
ecmaFeatures: {
13+
impliedStrict: true, // Enable global strict mode
14+
},
15+
},
16+
17+
// Specify global variables that are predefined
18+
env: {
19+
node: true, // Enable node global variables & Node.js scoping
20+
es2020: true, // Add all ECMAScript 2020 globals and automatically set the ecmaVersion parser option to ES2020
21+
},
22+
23+
plugins: [],
24+
extends: ['@xpring-eng/eslint-config-base'],
25+
26+
rules: {},
27+
overrides: [],
28+
}
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
name: Bug Report
3+
about: File a bug report to help us improve!
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
---
8+
9+
<!--- Provide a general summary of the issue in the Title above. -->
10+
<!--- TODO:(hbergren) Add a link to the Code of Conduct when that gets merged. -->
11+
12+
## Expected Behavior
13+
14+
<!--- A clear and concise description of what you expected to happen. -->
15+
16+
## Actual Behavior
17+
18+
<!--- A detailed description of what the bug is, and what the actual behavior is. -->
19+
20+
## Context
21+
22+
<!--- How has this issue affected you? What are you trying to accomplish? -->
23+
<!--- Providing context helps us come up with a solution that is most useful in the real world. -->
24+
25+
## Potential Solution
26+
27+
<!--- If you have a potential solution for how to address this, please suggest it. -->
28+
29+
## Steps to Reproduce
30+
31+
1. Step one
32+
2. Step two
33+
3. Step three
34+
35+
## Environment
36+
37+
- Node version:
38+
- NPM version:
39+
- Operating System and version:
40+
- PayID server version:
41+
- PayID Version header (if applicable):
42+
43+
### Screenshots
44+
45+
If applicable, add screenshots to help explain your problem.
46+
47+
## Bonus
48+
49+
**Are you willing to submit a pull request to fix this bug?**

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: PayID Protocol Change
4+
url: https://github.com/payid-org/rfcs/tree/master
5+
about: Please submit an RFC here.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
name: Feature Request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
---
8+
9+
<!--- Provide a general summary of the issue in the Title above. -->
10+
11+
## Detailed Description
12+
13+
<!--- Provide a detailed description of the change or addition you are proposing. -->
14+
15+
## Context
16+
17+
<!--- Why is this change important to you? How would you use it? -->
18+
<!--- How can it benefit other users? -->
19+
20+
## Possible Implementation
21+
22+
<!--- Not obligatory, but suggest an idea for implementing addition or change. -->
23+
24+
### Alternatives Considered
25+
26+
<!--- A clear and concise description of any alternative solutions or features you've considered. -->
27+
28+
## Additional Context
29+
30+
<!--- Add any other context or screenshots about the feature request here. -->
31+
32+
## Bonus
33+
34+
**Are you willing to submit a pull request to implement this change?**

.github/dependabot.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Dependabot configuration
2+
# https://help.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates
3+
version: 2
4+
updates:
5+
# GitHub Actions
6+
- package-ecosystem: 'github-actions'
7+
directory: '/'
8+
schedule:
9+
interval: 'weekly'
10+
11+
# NPM Dependencies
12+
- package-ecosystem: 'npm'
13+
directory: '/'
14+
schedule:
15+
interval: 'weekly'
16+
versioning-strategy: widen

.github/pull_request_template.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
## High Level Overview of Change
2+
3+
<!--
4+
Please include a summary/list of the changes.
5+
If too broad, please consider splitting into multiple PRs.
6+
If a relevant Asana task, please link it here.
7+
-->
8+
9+
### Context of Change
10+
11+
<!--
12+
Please include the context of a change.
13+
If a bug fix, when was the bug introduced? What was the behavior?
14+
If a new feature, why was this architecture chosen? What were the alternatives?
15+
If a refactor, how is this better than the previous implementation?
16+
17+
If there is a design document for this feature, please link it here.
18+
-->
19+
20+
### Type of Change
21+
22+
<!--
23+
Please check relevant options, delete irrelevant ones.
24+
-->
25+
26+
- [ ] Bug fix (non-breaking change which fixes an issue)
27+
- [ ] New feature (non-breaking change which adds functionality)
28+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
29+
- [ ] Refactor (non-breaking change that only restructures code)
30+
- [ ] Tests (You added tests for code that already exists, or your new feature included in this PR)
31+
- [ ] Documentation Updates
32+
- [ ] Release
33+
34+
## Before / After
35+
36+
<!--
37+
If just refactoring / back-end changes, this can be just an in-English description of the change at a technical level.
38+
If a UI change, screenshots should be included.
39+
-->
40+
41+
## Test Plan
42+
43+
<!--
44+
Please describe the tests that you ran to verify your changes and provide instructions so that others can reproduce.
45+
-->
46+
47+
<!--
48+
## Future Tasks
49+
For future tasks related to PR.
50+
-->

.gitignore

Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
2+
# Created by https://www.gitignore.io/api/osx,node
3+
# Edit at https://www.gitignore.io/?templates=osx,node
4+
5+
### Node ###
6+
# Logs
7+
logs
8+
*.log
9+
npm-debug.log*
10+
yarn-debug.log*
11+
yarn-error.log*
12+
lerna-debug.log*
13+
14+
# Diagnostic reports (https://nodejs.org/api/report.html)
15+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
16+
17+
# Runtime data
18+
pids
19+
*.pid
20+
*.seed
21+
*.pid.lock
22+
23+
# Directory for instrumented libs generated by jscoverage/JSCover
24+
lib-cov
25+
26+
# Coverage directory used by tools like istanbul
27+
coverage
28+
*.lcov
29+
30+
# nyc test coverage
31+
.nyc_output
32+
33+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
34+
.grunt
35+
36+
# Bower dependency directory (https://bower.io/)
37+
bower_components
38+
39+
# node-waf configuration
40+
.lock-wscript
41+
42+
# Anything in the build directory
43+
build/
44+
45+
# Dependency directories
46+
node_modules/
47+
jspm_packages/
48+
49+
# TypeScript v1 declaration files
50+
typings/
51+
52+
# TypeScript cache
53+
*.tsbuildinfo
54+
55+
# Optional npm cache directory
56+
.npm
57+
58+
# Optional eslint cache
59+
.eslintcache
60+
61+
# Optional REPL history
62+
.node_repl_history
63+
64+
# Output of 'npm pack'
65+
*.tgz
66+
67+
# Yarn Integrity file
68+
.yarn-integrity
69+
70+
# dotenv environment variables file
71+
.env
72+
.env.test
73+
74+
# parcel-bundler cache (https://parceljs.org/)
75+
.cache
76+
77+
# next.js build output
78+
.next
79+
80+
# nuxt.js build output
81+
.nuxt
82+
83+
# rollup.js default build output
84+
dist/
85+
86+
# Uncomment the public line if your project uses Gatsby
87+
# https://nextjs.org/blog/next-9-1#public-directory-support
88+
# https://create-react-app.dev/docs/using-the-public-folder/#docsNav
89+
# public
90+
91+
# Storybook build outputs
92+
.out
93+
.storybook-out
94+
95+
# vuepress build output
96+
.vuepress/dist
97+
98+
# Serverless directories
99+
.serverless/
100+
101+
# FuseBox cache
102+
.fusebox/
103+
104+
# DynamoDB Local files
105+
.dynamodb/
106+
107+
# Temporary folders
108+
tmp/
109+
temp/
110+
111+
### OSX ###
112+
# General
113+
.DS_Store
114+
.AppleDouble
115+
.LSOverride
116+
117+
# Icon must end with two \r
118+
Icon
119+
120+
# Thumbnails
121+
._*
122+
123+
# Files that might appear in the root of a volume
124+
.DocumentRevisions-V100
125+
.fseventsd
126+
.Spotlight-V100
127+
.TemporaryItems
128+
.Trashes
129+
.VolumeIcon.icns
130+
.com.apple.timemachine.donotpresent
131+
132+
# Directories potentially created on remote AFP share
133+
.AppleDB
134+
.AppleDesktop
135+
Network Trash Folder
136+
Temporary Items
137+
.apdisk
138+
139+
# IntelliJ nonsense
140+
/.idea
141+
142+
# Lefthook
143+
/.lefthook-local
144+
lefthook-local.yml

.gitlab-ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
###
2+
3+
stages:
4+
- test
5+
6+
lint:
7+
stage: test
8+
image:
9+
name: node:12
10+
before_script:
11+
- npm i --cache .npm --prefer-offline --no-audit --progress=false
12+
script:
13+
- npm run lintNoFix
14+
15+
code coverage:
16+
stage: test
17+
image:
18+
name: node:12
19+
before_script:
20+
- npm i --cache .npm --no-audit --progress=false --prefer-offline -g nyc codecov
21+
- npm i --cache .npm --no-audit --progress=false --prefer-offline
22+
script:
23+
- npm run build
24+
- nyc npm test
25+
- mkdir coverage
26+
- nyc report --reporter=text-lcov > coverage/coverage.json
27+
- codecov
28+
29+
link checker:
30+
stage: test
31+
image:
32+
name: golang:1.14-alpine
33+
before_script:
34+
- apk add git
35+
- export GO111MODULE=on
36+
- go get -u github.com/raviqqe/liche
37+
script:
38+
- liche -r ${CI_PROJECT_DIR}

.mocharc.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
'use strict'
2+
3+
module.exports = {
4+
require: ['ts-node/register', 'source-map-support/register'],
5+
extension: ['ts'],
6+
7+
// Do not look for mocha opts file
8+
opts: false,
9+
10+
// Warn if test exceed 75ms duration
11+
slow: 75,
12+
13+
// Fail if tests exceed 10000ms
14+
timeout: 10000,
15+
16+
// Check for global variable leaks
17+
'check-leaks': true,
18+
}

0 commit comments

Comments
 (0)