generated from domanost/degen-template
-
Notifications
You must be signed in to change notification settings - Fork 0
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 7d944d1
Showing
55 changed files
with
5,534 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,2 @@ | ||
node_modules | ||
**/test/** |
Empty file.
Empty file.
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 @@ | ||
# Discord application | ||
DISCORD_BOT_TOKEN= | ||
DISCORD_BOT_PUBLIC_KEY= | ||
DISCORD_BOT_APPLICATION_ID= | ||
DISCORD_OWNER_ID= | ||
|
||
# MongoDB | ||
MONGODB_PREFIX= | ||
MONGODB_USERNAME= | ||
MONGODB_PASS= | ||
MONGODB_CLUSTER= | ||
|
||
# Logger | ||
LOGDNA_APP_NAME= | ||
LOGDNA_DEFAULT_LEVEL= | ||
LOGDNA_TOKEN= | ||
|
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,67 @@ | ||
module.exports = { | ||
env: { | ||
browser: true, | ||
commonjs: true, | ||
es2020: true, | ||
node: true, | ||
}, | ||
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'], | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
ecmaVersion: 12, | ||
}, | ||
plugins: ['@typescript-eslint'], | ||
ignorePatterns: '*.test.js', | ||
rules: { | ||
'@typescript-eslint/no-var-requires': 0, | ||
'brace-style': ['error', '1tbs', { allowSingleLine: true }], | ||
'comma-dangle': ['error', 'always-multiline'], | ||
'comma-spacing': 'error', | ||
'comma-style': 'error', | ||
curly: ['error', 'multi-line', 'consistent'], | ||
'dot-location': ['error', 'property'], | ||
'handle-callback-err': 'off', | ||
indent: ['error', 'tab'], | ||
'max-nested-callbacks': ['error', { max: 4 }], | ||
'max-statements-per-line': ['error', { max: 2 }], | ||
'no-console': 'error', | ||
'no-empty-function': 'error', | ||
'no-floating-decimal': 'error', | ||
'no-inline-comments': 'error', | ||
'no-multi-spaces': 'error', | ||
'no-multiple-empty-lines': ['error', { max: 2, maxEOF: 1, maxBOF: 0 }], | ||
'no-shadow': ['error', { allow: ['err', 'resolve', 'reject'] }], | ||
'no-trailing-spaces': ['error', { 'skipBlankLines': true, 'ignoreComments': true }], | ||
'no-var': 'error', | ||
'object-curly-spacing': ['error', 'always'], | ||
'prefer-const': 'error', | ||
quotes: ['error', 'single'], | ||
semi: ['error', 'always'], | ||
'space-before-blocks': 'error', | ||
'space-before-function-paren': [ | ||
'error', | ||
{ | ||
anonymous: 'never', | ||
named: 'never', | ||
asyncArrow: 'always', | ||
}, | ||
], | ||
'space-in-parens': 'error', | ||
'space-infix-ops': 'error', | ||
'space-unary-ops': 'error', | ||
'spaced-comment': 'error', | ||
yoda: 'error', | ||
'@typescript-eslint/explicit-function-return-type': 0, | ||
'@typescript-eslint/explicit-member-accessibility': 0, | ||
'@typescript-eslint/indent': 0, | ||
'@typescript-eslint/member-delimiter-style': 0, | ||
'@typescript-eslint/no-explicit-any': 0, | ||
'@typescript-eslint/no-use-before-define': 0, | ||
'@typescript-eslint/no-unused-vars': [ | ||
2, | ||
{ | ||
'argsIgnorePattern': '^_', | ||
}, | ||
], | ||
}, | ||
}; |
Validating CODEOWNERS rules …
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,4 @@ | ||
# This is a comment. | ||
# Each line is a file pattern followed by one or more owners. | ||
* @nonsensecodes @amaredeus @banklessdao/devops | ||
/.github/ @banklessdao/devops |
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,38 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Desktop (please complete the following information):** | ||
- OS: [e.g. iOS] | ||
- Browser [e.g. chrome, safari] | ||
- Version [e.g. 22] | ||
|
||
**Smartphone (please complete the following information):** | ||
- Device: [e.g. iPhone6] | ||
- OS: [e.g. iOS8.1] | ||
- Browser [e.g. stock browser, safari] | ||
- Version [e.g. 22] | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
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 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
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,24 @@ | ||
name: Build and Test | ||
on: | ||
push: | ||
branches: | ||
- '**' | ||
pull_request: | ||
branches: | ||
- '**' | ||
jobs: | ||
build-test: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16.10.0' | ||
- name: Install dependencies | ||
run: yarn install | ||
- name: Lint Code | ||
run: yarn lint | ||
- name: Build and Compile Typescript | ||
run: yarn build | ||
- name: Run test cases | ||
run: yarn test --watchAll=false |
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 @@ | ||
name: Deploy to Production Environment | ||
on: | ||
push: | ||
branches: | ||
- 'DEGEN' | ||
jobs: | ||
deploy-prod: | ||
environment: | ||
name: production | ||
url: url-logdna-here | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16.10.0' | ||
- name: Install dependencies | ||
run: yarn install | ||
- name: Lint Code | ||
run: yarn lint | ||
- name: Build and Compile Typescript | ||
run: yarn build | ||
- name: Run test cases | ||
run: yarn test --watchAll=false | ||
- name: Deploy to Heroku Shared Test Environment | ||
uses: AkhileshNS/[email protected] | ||
with: | ||
heroku_api_key: ${{secrets.PROD_HEROKU_API_KEY}} | ||
heroku_app_name: 'heroku-app-name-here' | ||
heroku_email: 'emaul-here' | ||
procfile: 'worker: yarn prod' | ||
env: | ||
HD_DISCORD_BOT_TOKEN: ${{secrets.PROD_DISCORD_TOKEN}} | ||
HD_DISCORD_BOT_PUBLIC_KEY: ${{secrets.PROD_BOT_PUBLIC_KEY}} | ||
HD_DISCORD_BOT_APPLICATION_ID: ${{secrets.PROD_BOT_APPLICATION_ID}} | ||
HD_DISCORD_OWNER_ID: ${{secrets.PROD_DISCORD_OWNER_ID}} | ||
HD_MONGODB_USERNAME: ${{secrets.PROD_MONGODB_USERNAME}} | ||
HD_MONGODB_PASS: ${{secrets.PROD_MONGODB_PASS}} | ||
HD_MONGODB_CLUSTER: ${{secrets.PROD_MONGODB_CLUSTER}} | ||
HD_NOTION_TOKEN: ${{secrets.PROD_NOTION_TOKEN}} | ||
HD_LOGDNA_TOKEN: ${{secrets.PROD_LOGDNA_TOKEN}} |
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,44 @@ | ||
name: Deploy to QA Environment | ||
on: | ||
push: | ||
branches: | ||
- 'develop' | ||
pull_request: | ||
branches: | ||
- 'release/**' | ||
jobs: | ||
deploy-qa: | ||
environment: | ||
name: preview | ||
url: url-logdna-here | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16.10.0' | ||
- name: Install dependencies | ||
run: yarn install | ||
- name: Lint Code | ||
run: yarn lint | ||
- name: Build and Compile Typescript | ||
run: yarn build | ||
- name: Run test cases | ||
run: yarn test --watchAll=false | ||
- name: Deploy to Heroku Shared Test Environment | ||
uses: AkhileshNS/[email protected] | ||
with: | ||
heroku_api_key: ${{secrets.QA_HEROKU_API_KEY}} | ||
heroku_app_name: 'heroku-app-name-here' | ||
heroku_email: 'email-here' | ||
procfile: 'worker: yarn qa' | ||
env: | ||
HD_DISCORD_BOT_TOKEN: ${{secrets.QA_DISCORD_TOKEN}} | ||
HD_DISCORD_BOT_PUBLIC_KEY: ${{secrets.QA_BOT_PUBLIC_KEY}} | ||
HD_DISCORD_BOT_APPLICATION_ID: ${{secrets.QA_BOT_APPLICATION_ID}} | ||
HD_DISCORD_OWNER_ID: ${{secrets.QA_DISCORD_OWNER_ID}} | ||
HD_MONGODB_USERNAME: ${{secrets.QA_MONGODB_USERNAME}} | ||
HD_MONGODB_PASS: ${{secrets.QA_MONGODB_PASS}} | ||
HD_MONGODB_CLUSTER: ${{secrets.QA_MONGODB_CLUSTER}} | ||
HD_NOTION_TOKEN: ${{secrets.QA_NOTION_TOKEN}} | ||
HD_LOGDNA_TOKEN: ${{secrets.QA_LOGDNA_TOKEN}} |
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,118 @@ | ||
# 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 | ||
|
||
# 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 | ||
|
||
### IntelliJ Idea ### | ||
.idea | ||
*.iws | ||
*.iml | ||
*.ipr | ||
|
||
build | ||
|
||
.DS_Store | ||
|
||
# jest-mongodb output | ||
globalConfig.json | ||
|
||
https://discord.com/api/oauth2/authorize?client_id=901799442502516766&permissions=4027055222&scope=bot%20&applications.commands |
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 @@ | ||
# Changelog | ||
|
||
## 1.0.0-SNAPSHOT | ||
|
||
1. Repo initialized |
Oops, something went wrong.