Skip to content

Commit

Permalink
https parameter added but not implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
ritwickdey committed Oct 17, 2017
1 parent 085e8f5 commit b9ca46b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/Helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export class Helper {
addtionalHTMLtags?: string[],
onTagMissedCallback?: MethodDecorator) {

public static generateParams(rootPath: string, port: number, ignoreFilePaths: string[], workspacePath: string, addtionalHTMLtags?: string[], onTagMissedCallback?: MethodDecorator, isHttps = false) {
workspacePath = workspacePath || '';
ignorePathGlob = ignorePathGlob || [];
let ignoreFiles = [];
Expand Down Expand Up @@ -111,11 +112,11 @@ export class Helper {
root: rootPath,
file: null,
open: false,
https: {
https: isHttps ? {
cert: fs.readFileSync('filepath', 'utf8'),
key: fs.readFileSync('filepath' + '/server.key', 'utf8'),
passphrase: '12345'
},
} : null,
ignore: ignoreFiles,
disableGlobbing: true,
proxy: proxy,
Expand Down
2 changes: 1 addition & 1 deletion tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"interface-over-type-literal": true,
"label-position": true,
"max-line-length": [
true,
false,
200
],
"member-access": false,
Expand Down

0 comments on commit b9ca46b

Please sign in to comment.