Skip to content

Commit

Permalink
feat(serve): support --ssl for dev-server
Browse files Browse the repository at this point in the history
  • Loading branch information
imhoffd committed Nov 15, 2018
1 parent 3812c7d commit 9d65915
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builders/cordova-serve/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ export class CordovaServeBuilder implements Builder<CordovaServeBuilderSchema> {

run(builderConfig: BuilderConfiguration<CordovaServeBuilderSchema>): Observable<BuildEvent> {
const [ project, target, configuration ] = builderConfig.options.devServerTarget.split(':');
const { port, host, proxyConfig } = builderConfig.options;
const devServerTargetSpec = { project, target, configuration, overrides: { port, host, proxyConfig } };
const { port, host, ssl, proxyConfig } = builderConfig.options;
const devServerTargetSpec = { project, target, configuration, overrides: { port, host, ssl, proxyConfig } };
const devServerBuilderConfig = this.context.architect.getBuilderConfiguration<DevServerBuilderOptions>(devServerTargetSpec);

let devServerDescription: BuilderDescription;
Expand Down
1 change: 1 addition & 0 deletions builders/cordova-serve/schema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export interface CordovaServeBuilderSchema {
platform: string;
port?: number;
host?: string;
ssl?: boolean;
proxyConfig?: string;
cordovaBasePath?: string;
sourceMap?: boolean;
Expand Down
5 changes: 5 additions & 0 deletions builders/cordova-serve/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
"type": "string",
"description": "Proxy configuration file."
},
"ssl": {
"type": "boolean",
"description": "Serve using HTTPS.",
"default": false
},
"port": {
"type": "number",
"description": "Port to listen on.",
Expand Down

0 comments on commit 9d65915

Please sign in to comment.