This repository has been archived by the owner on Sep 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
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 #51 from uncovertruth/fix/interface
fix(src) remove unnesessary vars
- Loading branch information
Showing
9 changed files
with
425 additions
and
281 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
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 |
---|---|---|
|
@@ -10,32 +10,32 @@ | |
"devDependencies": { | ||
"@types/finalhandler": "^0.0.32", | ||
"@types/js-cookie": "^2.1.0", | ||
"@types/mocha": "^2.2.43", | ||
"@types/node": "^8.0.44", | ||
"@types/mocha": "^2.2.44", | ||
"@types/node": "^8.0.53", | ||
"@types/power-assert": "^1.4.29", | ||
"@types/serve-static": "^1.7.32", | ||
"@uncovertruth/tslint-config": "^1.2.0", | ||
"cross-env": "^5.1.0", | ||
"espower-typescript": "^8.1.1", | ||
"@types/serve-static": "^1.13.1", | ||
"@uncovertruth/tslint-config": "^1.3.0", | ||
"cross-env": "^5.1.1", | ||
"espower-typescript": "^8.1.2", | ||
"finalhandler": "^1.1.0", | ||
"gh-pages": "^1.0.0", | ||
"gh-pages": "^1.1.0", | ||
"husky": "^0.14.3", | ||
"js-cookie": "^2.1.4", | ||
"js-cookie": "^2.2.0", | ||
"lint-staged": "^5.0.0", | ||
"mocha": "^3.5.3", | ||
"mocha": "^4.0.1", | ||
"power-assert": "^1.4.4", | ||
"prettier": "^1.7.4", | ||
"prettier": "^1.8.2", | ||
"rimraf": "^2.6.2", | ||
"serve-static": "^1.13.1", | ||
"ts-loader": "^3.0.3", | ||
"ts-loader": "^3.1.1", | ||
"ts-node": "^3.3.0", | ||
"tslint": "^5.8.0", | ||
"typescript": "^2.5.3", | ||
"typescript": "^2.6.1", | ||
"wdio-mocha-framework": "^0.5.11", | ||
"wdio-sauce-service": "^0.4.0", | ||
"wdio-selenium-standalone-service": "0.0.7", | ||
"wdio-sauce-service": "^0.4.4", | ||
"wdio-selenium-standalone-service": "^0.0.9", | ||
"wdio-spec-reporter": "^0.1.2", | ||
"webdriverio": "^4.8.0", | ||
"webdriverio": "^4.9.9", | ||
"webpack": "^3.8.1" | ||
}, | ||
"files": [ | ||
|
@@ -58,7 +58,6 @@ | |
] | ||
}, | ||
"main": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"peerDependencies": { | ||
"js-cookie": "2.x" | ||
}, | ||
|
@@ -67,10 +66,10 @@ | |
"url": "git+ssh://[email protected]/uncovertruth/auto-cookie.git" | ||
}, | ||
"scripts": { | ||
"build": "cross-env NODE_ENV=production tsc && webpack", | ||
"build": "tsc && webpack --env=production", | ||
"clean": "rimraf lib", | ||
"deploy": "gh-pages -d example", | ||
"lint": "tslint \"src/*.ts\" \"test/*.ts\"", | ||
"lint": "tslint '{src,test}/*.ts'", | ||
"prebuild": "npm run clean", | ||
"precommit": "lint-staged", | ||
"prepublish": "npm run build", | ||
|
@@ -79,5 +78,6 @@ | |
"start": "ts-node server.ts", | ||
"test": "wdio wdio.conf.js", | ||
"test:sauce": "cross-env CI_MODE=sauce wdio wdio.conf.js" | ||
} | ||
}, | ||
"types": "lib/index.d.ts" | ||
} |
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,12 +1,12 @@ | ||
import * as finalhandler from 'finalhandler' | ||
import * as http from 'http' | ||
import * as path from 'path' | ||
import * as finalhandler from 'finalhandler' | ||
import * as serveStatic from 'serve-static' | ||
|
||
export default function start (): any { | ||
export default function start (callback: Function) { | ||
const serve = serveStatic(path.join(__dirname, '../../example')) | ||
const server = http.createServer((req: any, res: any) => { | ||
serve(req, res, finalhandler(req, res)) | ||
}) | ||
return server.listen(8000) | ||
return server.listen(8000, callback) | ||
} |
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
Oops, something went wrong.