File tree Expand file tree Collapse file tree 5 files changed +13
-7
lines changed Expand file tree Collapse file tree 5 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,8 @@ export const ghpagesProvider: PublishProvider = {
25
25
configure : ghpagesConfigure ,
26
26
} ;
27
27
28
- function ghpagesConfigure ( options : PublishOptions ) {
28
+ function ghpagesConfigure ( options : PublishOptions ) : Promise < void > {
29
29
console . log ( "ghpages" ) ;
30
30
console . log ( options ) ;
31
+ return Promise . resolve ( ) ;
31
32
}
Original file line number Diff line number Diff line change 6
6
*/
7
7
8
8
import { Command } from "cliffy/command/mod.ts" ;
9
+ import { netlifyPublish } from "../../publish/netlify.ts" ;
9
10
10
11
import { PublishOptions , PublishProvider } from "./provider.ts" ;
11
12
@@ -15,8 +16,8 @@ export const netlifyProvider: PublishProvider = {
15
16
command : ( command : Command ) => {
16
17
return command
17
18
// deno-lint-ignore no-explicit-any
18
- . action ( ( options : any , path ?: string ) => {
19
- netlifyConfigure ( {
19
+ . action ( async ( options : any , path ?: string ) => {
20
+ await netlifyConfigure ( {
20
21
path : path || Deno . cwd ( ) ,
21
22
render : ! ! options . render ,
22
23
} ) ;
@@ -25,7 +26,8 @@ export const netlifyProvider: PublishProvider = {
25
26
configure : netlifyConfigure ,
26
27
} ;
27
28
28
- function netlifyConfigure ( options : PublishOptions ) {
29
+ async function netlifyConfigure ( options : PublishOptions ) {
29
30
console . log ( "netlify" ) ;
30
31
console . log ( options ) ;
32
+ await netlifyPublish ( ) ;
31
33
}
Original file line number Diff line number Diff line change @@ -17,5 +17,5 @@ export interface PublishProvider {
17
17
description : string ;
18
18
// deno-lint-ignore no-explicit-any
19
19
command : ( command : Command < any > ) => Command < any > ;
20
- configure : ( options : PublishOptions ) => void ;
20
+ configure : ( options : PublishOptions ) => Promise < void > ;
21
21
}
Original file line number Diff line number Diff line change @@ -9,5 +9,6 @@ export interface GhpagesOptions {
9
9
site : string ;
10
10
}
11
11
12
- export function ghpagesPublish ( options : GhpagesOptions ) {
12
+ export function ghpagesPublish ( _options : GhpagesOptions ) : Promise < void > {
13
+ return Promise . resolve ( ) ;
13
14
}
Original file line number Diff line number Diff line change 5
5
*
6
6
*/
7
7
8
+ import { NetlifyClient } from "./netlify/index.ts" ;
9
+
8
10
export interface NetlifyOptions {
9
11
site : string ;
10
12
}
11
13
12
- export function netlifyPublish ( options : NetlifyOptions ) {
14
+ export async function netlifyPublish ( _options ? : NetlifyOptions ) {
13
15
}
You can’t perform that action at this time.
0 commit comments