-
Notifications
You must be signed in to change notification settings - Fork 3
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
Showing
14 changed files
with
203 additions
and
162 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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
/* @flow */ | ||
|
||
module.exports = { | ||
'extends': './node_modules/@krakenjs/grumbler-scripts/config/.eslintrc-node.js', | ||
'rules': { | ||
// legacy rule settings | ||
'prefer-const': 'off', | ||
'flowtype/require-exact-type': 'off' | ||
} | ||
extends: "./node_modules/@krakenjs/grumbler-scripts/config/.eslintrc-node.js", | ||
rules: { | ||
// legacy rule settings | ||
"prefer-const": "off", | ||
"flowtype/require-exact-type": "off", | ||
}, | ||
}; |
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 @@ | ||
_ |
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 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx lint-staged |
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 @@ | ||
build | ||
dist | ||
coverage | ||
flow-typed |
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 @@ | ||
{} |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"extends": "@krakenjs/grumbler-scripts/config/.babelrc-node" | ||
} | ||
{ | ||
"extends": "@krakenjs/grumbler-scripts/config/.babelrc-node" | ||
} |
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,11 +1,17 @@ | ||
import express from 'express'; | ||
import express from "express"; | ||
|
||
export interface AppServerType { | ||
EVENT: { SHUTDOWN: 'shutdown' }; | ||
EVENT: { SHUTDOWN: "shutdown" }; | ||
close: () => Promise<void>; | ||
on: (event: string, handler: () => void) => { cancel: () => void; } ; | ||
listen: (options: {port: number}) => Promise<AppServerType>; | ||
get: (url: string, handler: (req: express.Request, res: express.Response) => Promise<void> | void) => AppServerType; | ||
on: (event: string, handler: () => void) => { cancel: () => void }; | ||
listen: (options: { port: number }) => Promise<AppServerType>; | ||
get: ( | ||
url: string, | ||
handler: ( | ||
req: express.Request, | ||
res: express.Response | ||
) => Promise<void> | void | ||
) => AppServerType; | ||
} | ||
|
||
export function server(): AppServerType; | ||
export function server(): AppServerType; |
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,4 +1,4 @@ | ||
/* @flow */ | ||
|
||
// eslint-disable-next-line import/no-commonjs | ||
module.exports = require('./src'); | ||
module.exports = require("./src"); |
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,6 +1,5 @@ | ||
import { expectType } from 'tsd'; | ||
|
||
import {AppServerType, server} from '.'; | ||
import { expectType } from "tsd"; | ||
|
||
import { AppServerType, server } from "."; | ||
|
||
const appServer: AppServerType = server(); |
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
Oops, something went wrong.