Skip to content

Commit

Permalink
fix: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dalisoft committed May 14, 2021
1 parent 88063cf commit fe76cc5
Show file tree
Hide file tree
Showing 43 changed files with 9,239 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .commitlintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": [
"airlight"
]
}
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
25 changes: 25 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"extends": "airlight-node",
"parserOptions": {
"project": "./tsconfig.json",
"extraFileExtensions": [".cjs"]
},
"rules": {
"@typescript-eslint/indent": "off",
"indent": "off",
"@typescript-eslint/no-redeclare": "off", // TODO: Do it later
"@typescript-eslint/naming-convention": "off", // TODO: Do it later
"@typescript-eslint/restrict-plus-operands": "off", // TODO: Do it later
"no-param-reassign": "off", // TODO: Do it later
"complexity": "off", // TODO: Do it later
"max-lines-per-function": "off", // TODO: Do it later
"max-lines": "off", // TODO: Do it later
"max-depth": "off", // TODO: Do it later
"no-continue": "off", // TODO: Do it later
"guard-for-in": "off", // TODO: Do it later
"no-restricted-syntax": "off", // TODO: Do it later
"filename-rules/match": "off", // TODO: Do it later
"max-nested-callbacks": "off", // TODO: Do it later
"consistent-return": "off" // TODO: Do it later
}
}
12 changes: 12 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# These are supported funding model platforms

# github: dalisoft
patreon: dalisoft # Replace with a single Patreon username
open_collective: nanoexpress # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: npm/nanoexpress # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # 9e789b4b-2fe4-4a61-b5c5-acba3130ea4f # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # dalisoft # Replace with a single Liberapay username
issuehunt: nanoexpress # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: ['https://sobe.ru/na/nanoexpress']
46 changes: 46 additions & 0 deletions .github/ISSUE_TEMPLATE/Bug_Report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
name: '🐛 Bug Report'
about: "If something isn't working as expected 🤔"
title: ''
labels: bug
assignees: ''
---

## Bug Report

### Is you/your team sponsoring this project

- [ ] Yes
- [ ] No

#### _If your team sponsoring this project, please attach here your team lead or who purchased license GitHub login_

### Minimal reproducible repo

Link here

### Current Behavior

A clear and concise description of the behavior.

### Expected behavior/code

A clear and concise description of what you expected to happen (or code).

### Environment

- Node/npm version: [e.g. Node 8/npm 5]
- OS: [e.g. OSX 10.13.4, Windows 10]
- Addinational Info: _type here_

### Possible Solution

<!--- Only if you have suggestions on a fix for the bug -->

### Additional context/Screenshots

Add any other context about the problem here. If applicable, add screenshots to help explain.

### Note

- **Project is provided as-is without any support nor warranty**
33 changes: 33 additions & 0 deletions .github/ISSUE_TEMPLATE/Feature_Request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: '🚀 Feature Request'
about: 'I have a suggestion (and may want to implement it 🙂)'
title: ''
labels: feature request
assignees: ''
---

## Feature Request

### Is you/your team sponsoring this project

- [ ] Yes
- [ ] No

#### _If your team sponsoring this project, please attach here your team lead or who purchased license GitHub login_

### Is your feature request related to a problem? Please describe

A clear and concise description of what the problem is. Ex. I have an issue when [...]

### Describe the solution you'd like

A clear and concise description of what you want to happen. Add any considered drawbacks.

### Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

### Teachability, Documentation, Adoption, Migration Strategy

If you can, explain how users will be able to use this and possibly write out a version the docs.
Maybe a screenshot or design?
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
blank_issues_enabled: false
contact_links:
- name: 📝 Documentation
url: https://github.com/nanoexpress/docs/issues
about: Issue for documentations should be created here 🗒
- name: 🔗 Middlewares
url: https://github.com/nanoexpress/middlewares/issues
about: Issue for middlewares should be created here 🖇
- name: 🙌 Help
url: https://stackoverflow.com/questions/tagged/nanoexpress
about: Any help or issues like cannot run example should be posted here 🤗
- name: 🆕 Updates channel
url: https://t.me/nanoexpress
about: Updates channel 🤫
- name: 💬 Discussion
url: https://t.me/nanoexpress_discussion
about: Discussion chat 🙋‍♂️
- name: 🛠 Dedicated support
url: https://t.me/dalisoft
about: Dedicated premium support from author 💰
22 changes: 22 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
## Pull Request

### Is you/your team sponsoring this project

- [ ] Yes
- [ ] No

#### _If your team sponsoring this project, please attach here your team lead or who purchased license GitHub login_

### What you changed

- [ ] Code changes
- [ ] Tests changed
- [ ] Typo fixes

#### _If you change code, tests should be passed_

### Note

- **Your every change to feature/code should be documented**
- **📝 Documentation** fixes should be filled [here](https://github.com/nanoexpress/docs/pulls)
- **🔗 Middlewares** fixes should be filled [here](https://github.com/nanoexpress/middlewares/pulls)
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2
updates:
- package-ecosystem: npm
open-pull-requests-limit: 10
directory: /
commit-message:
prefix: build
prefix-development: chore
include: scope
schedule:
interval: daily
18 changes: 18 additions & 0 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Auto-merge dependabot updates

on: pull_request_target

jobs:
auto-merge:
timeout-minutes: 5

runs-on: ubuntu-18.04
if: github.actor == 'dependabot[bot]'

steps:
- uses: actions/checkout@v2
- uses: ahmadnassri/action-dependabot-auto-merge@v2
with:
target: minor
approve: true
github-token: ${{ secrets.GH_TOKEN }}
74 changes: 74 additions & 0 deletions .github/workflows/lint_test_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Linting, Testing and Release

on:
push:
branches: [master]
pull_request:
branches: [master]

env:
CI: true

jobs:
lint:
runs-on: ubuntu-18.04

steps:
- uses: actions/checkout@v2

- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 14.x

- name: Install
run: yarn --frozen-lockfile

- name: Lint code
run: yarn lint
test:
needs: lint
runs-on: ${{ matrix.os }}

strategy:
matrix:
node-version: [14.x]
os: [ubuntu-latest, macos-latest]

steps:
- uses: actions/checkout@v2

- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Install
run: yarn --frozen-lockfile

- name: Test code
run: yarn test
release:
needs: test
runs-on: ubuntu-18.04

steps:
- uses: actions/checkout@v2

- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 14.x

- name: Install
run: yarn --frozen-lockfile
- name: semantic-release Prepare
run: yarn add semantic-release -W

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: yarn semantic-release
Loading

0 comments on commit fe76cc5

Please sign in to comment.