Skip to content

Commit 765cdfd

Browse files
committed
[ Add ] Prototype of Concept
0 parents  commit 765cdfd

File tree

12 files changed

+6669
-0
lines changed

12 files changed

+6669
-0
lines changed

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = space
6+
indent_size = 4
7+
end_of_line = lf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true

.esdoc.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"index": "ReadMe.md",
3+
"source": "./source",
4+
"destination": "./docs",
5+
"plugins": [
6+
{
7+
"name": "esdoc-standard-plugin",
8+
"option": {
9+
"accessor": {
10+
"access": ["public", "protected"],
11+
"autoPrivate": false
12+
},
13+
"test": {
14+
"source": "./test",
15+
"interfaces": ["describe", "it"],
16+
"includes": ["\\.js$"]
17+
}
18+
}
19+
},
20+
{
21+
"name": "esdoc-ecmascript-proposal-plugin",
22+
"option": {
23+
"all": true
24+
}
25+
}
26+
]
27+
}

.eslintrc.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"env": {
3+
"es6": true,
4+
"node": true,
5+
"browser": true,
6+
"mocha": true
7+
},
8+
"parserOptions": {
9+
"ecmaVersion": 9,
10+
"sourceType": "module"
11+
},
12+
"extends": "eslint:recommended",
13+
"rules": {
14+
"indent": [
15+
"error",
16+
4,
17+
{
18+
"SwitchCase": 1
19+
}
20+
],
21+
"linebreak-style": ["error", "unix"],
22+
"quotes": ["error", "single"],
23+
"semi": ["error", "always"],
24+
"no-cond-assign": "off",
25+
"getter-return": "warn",
26+
"no-console": [
27+
"error",
28+
{
29+
"allow": ["info", "warn", "error", "time", "timeEnd"]
30+
}
31+
],
32+
"valid-jsdoc": [
33+
"error",
34+
{
35+
"prefer": {
36+
"returns": "return"
37+
},
38+
"requireParamDescription": false,
39+
"requireReturn": false,
40+
"requireReturnDescription": false
41+
}
42+
]
43+
}
44+
}

.gitignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Node.JS
2+
node_modules/
3+
4+
# Building
5+
dist/
6+
docs/
7+
8+
# IDE
9+
.vscode/
10+
.idea/
11+
12+
# Online platform
13+
.github/
14+
15+
# OS
16+
.DS_Store

.npmignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.editorconfig
2+
.eslintrc.json
3+
test/
4+
.esdoc.json
5+
docs/
6+
.travis.yml

.travis.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
branches:
2+
only:
3+
- master
4+
5+
language: node_js
6+
node_js:
7+
- lts/*
8+
cache:
9+
directories:
10+
- node_modules
11+
12+
install:
13+
- npm install
14+
script:
15+
- npm test
16+
- cd ${FOLDER}
17+
- git init
18+
- git config user.name ${UID}
19+
- git config user.email ${EMAIL}
20+
- git add .
21+
- git commit -m "${MESSAGE}"
22+
- git push --force --quiet https://${TOKEN}@${GIT_URI}.git master:gh-pages

ReadMe.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# MiddleStack
2+
3+
**Middleware** framework based on [Async Generator][1] of ECMAScript 2018, inspired by [Koa 2][2].
4+
5+
[![NPM Dependency](https://david-dm.org/TechQuery/middle-stack.svg)](https://david-dm.org/TechQuery/middle-stack)
6+
[![Build Status](https://travis-ci.com/TechQuery/middle-stack.svg?branch=master)](https://travis-ci.com/TechQuery/middle-stack)
7+
[![](https://data.jsdelivr.com/v1/package/npm/middle-stack/badge?style=rounded)](https://www.jsdelivr.com/package/npm/middle-stack)
8+
9+
[![NPM](https://nodei.co/npm/middle-stack.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/middle-stack/)
10+
11+
## Usage
12+
13+
[**Typical cases**](https://tech-query.me/test-file/test/index.js.html)
14+
15+
`.babelrc`
16+
17+
```JSON
18+
{
19+
"presets": [
20+
"@babel/preset-env"
21+
],
22+
"plugins": [
23+
"@babel/plugin-proposal-async-generator-functions"
24+
]
25+
}
26+
```
27+
28+
[1]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of#Iterating_over_async_generators
29+
[2]: https://koajs.com

0 commit comments

Comments
 (0)