-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from jeffijoe/next
v1
- Loading branch information
Showing
37 changed files
with
5,571 additions
and
341 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,12 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,3 +1,11 @@ | ||
node_modules | ||
npm-debug.log | ||
coverage | ||
yarn-error.log | ||
coverage | ||
.nyc_output | ||
lib | ||
.test-out | ||
.DS_Store | ||
.idea/workspace.xml | ||
.sublime-workspace | ||
.npmrc |
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 |
---|---|---|
@@ -1,2 +1,6 @@ | ||
examples | ||
test | ||
coverage | ||
.test-out | ||
src | ||
**/__tests__/** | ||
**/__helpers__/** |
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 |
---|---|---|
@@ -1,10 +1,30 @@ | ||
# Oh yeah! | ||
language: node_js | ||
cache: | ||
directories: | ||
- node_modules | ||
notifications: | ||
email: false | ||
|
||
# Add additional versions here as appropriate. | ||
node_js: | ||
- "stable" | ||
- "8" | ||
- "7" | ||
- "6" | ||
|
||
# Lint errors should trigger a failure. | ||
before_script: npm run lint | ||
before_script: | ||
- npm run lint | ||
- npm run build | ||
|
||
# Runs the coverage script (which runs the tests) | ||
script: npm run coveralls | ||
|
||
# Code coverage | ||
after_success: | ||
npm run coveralls | ||
- npm run semantic-release | ||
|
||
branches: | ||
except: | ||
- /^v\d+\.\d+\.\d+$/ |
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,31 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Launch Program", | ||
"program": "${workspaceRoot}/lib/index.js", | ||
"outFiles": [ | ||
"${workspaceRoot}/out/**/*.js" | ||
] | ||
}, | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Jest Tests", | ||
"program": "${workspaceRoot}/node_modules/jest/bin/jest.js", | ||
"protocol": "inspector", | ||
"args": [ | ||
"-i" | ||
], | ||
"internalConsoleOptions": "openOnSessionStart", | ||
"outFiles": [ | ||
"${workspaceRoot}/lib/**/*" | ||
], | ||
"env": { | ||
"NODE_ENV": "test" | ||
} | ||
} | ||
] | ||
} |
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,15 @@ | ||
// Place your settings in this file to overwrite default and user settings. | ||
{ | ||
"files.exclude": { | ||
"**/.git": true, | ||
"**/.svn": true, | ||
"**/.hg": true, | ||
"**/CVS": true, | ||
"**/.DS_Store": true, | ||
"coverage": true, | ||
".idea": true, | ||
"lib": true, | ||
"**/*.sublime-*": true, | ||
"node_modules": true | ||
} | ||
} |
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,14 @@ | ||
# Changelog | ||
|
||
## 1.0.0 | ||
|
||
* Rewritten in TypeScript. | ||
* Added `awilix-router-core` binding for `koa-router`. | ||
|
||
## 0.1.1 | ||
|
||
* Updated packages. | ||
|
||
## 0.1.0 | ||
|
||
* Initial release. |
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
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
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,18 @@ | ||
import { route, GET, before, after } from 'awilix-router-core' | ||
|
||
@route('/js') | ||
@before((ctx, next) => ctx.set('x-root-before', 'js') || next()) | ||
@after(ctx => ctx.set('x-root-after', ctx.body.message)) | ||
export default class JsClass { | ||
constructor({ service }) { | ||
this.service = service | ||
} | ||
|
||
@route('/get') | ||
@GET() | ||
func(ctx, next) { | ||
ctx.status = 200 | ||
ctx.body = this.service.get('js') | ||
return next() | ||
} | ||
} |
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,3 @@ | ||
export default class NotGonnaGetRegistered { | ||
func(ctx, next) {} | ||
} |
Oops, something went wrong.