-
Notifications
You must be signed in to change notification settings - Fork 5
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 #391 from nyaggah/develop
feat(manifests): cross-browesr manifest handling; dev/build commands
- Loading branch information
Showing
13 changed files
with
128 additions
and
98 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@bedframe/core": patch | ||
"@bedframe/cli": patch | ||
--- | ||
|
||
cross-browesr manifest handling; dev/build commands |
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
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
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,36 +1,36 @@ | ||
import type { BedframeTemplate } from "./create-template"; | ||
import type { Browser, BuildTarget } from "./types"; | ||
import type { AnyCase } from "./utils"; | ||
import type { BedframeTemplate } from './create-template' | ||
import type { Browser, BuildTarget } from './types' | ||
import type { AnyCase } from './utils' | ||
|
||
export type ExtensionType = "popup" | "overlay" | "sidepanel" | "devtools"; | ||
export type OverrideType = "none" | "newtab" | "history" | "bookmarks"; | ||
export type PositionType = "center" | "left" | "right"; | ||
export type OptionsType = "full-page" | "embedded"; | ||
export type ExtensionType = 'popup' | 'overlay' | 'sidepanel' | 'devtools' | ||
export type OverrideType = 'none' | 'newtab' | 'history' | 'bookmarks' | ||
export type PositionType = 'center' | 'left' | 'right' | ||
export type OptionsType = 'full-page' | 'embedded' | ||
|
||
export type Extension = { | ||
type: ExtensionType; | ||
overrides: OverrideType; | ||
position?: PositionType; | ||
options: OptionsType; | ||
manifest: BuildTarget[]; | ||
pages?: string | string[] | { [entryAlias: string]: string }; | ||
// ^^^ type from rollup input: >> export type InputOption = string | string[] | { [entryAlias: string]: string }; | ||
}; | ||
type: ExtensionType | ||
overrides?: OverrideType | ||
position?: PositionType | ||
options?: OptionsType | ||
manifest: BuildTarget[] | ||
pages?: string | string[] | { [entryAlias: string]: string } | ||
// ^^^ type from rollup input: >> export type InputOption = string | string[] | { [entryAlias: string]: string }; | ||
} | ||
|
||
export type Development = { | ||
template: BedframeTemplate; | ||
}; | ||
template: BedframeTemplate | ||
} | ||
|
||
export interface Bedframe { | ||
browser: AnyCase<Browser>[]; | ||
extension: Extension; | ||
development: Development; | ||
browser: AnyCase<Browser>[] | ||
extension: Extension | ||
development: Development | ||
} | ||
/** | ||
* Generate Bedframe object | ||
* @param {Bedframe} bedframe | ||
* @return {*} {Bedframe} | ||
*/ | ||
export const createBedframe = (bedframe: Bedframe): Bedframe => { | ||
return bedframe; | ||
}; | ||
return bedframe | ||
} |
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.