|
1 | 1 | import { Application, AppConstructorOptions } from 'spectron'
|
| 2 | +import { Configuration as ElectronBuilderOptions } from 'electron-builder' |
| 3 | +import * as ChainableWebpackConfig from 'webpack-chain' |
| 4 | + |
2 | 5 | interface Options {
|
3 | 6 | /**
|
4 | 7 | Do not launch spectron.
|
@@ -32,3 +35,22 @@ interface Server {
|
32 | 35 | Used for e2e testing with Spectron.
|
33 | 36 | */
|
34 | 37 | export function testWithSpectron(spectron: any, options?: Options): Promise<Server>
|
| 38 | + |
| 39 | + |
| 40 | +export type PluginOptions = { |
| 41 | + builderOptions?: ElectronBuilderOptions, |
| 42 | + chainWebpackMainProcess?: (config?: ChainableWebpackConfig) => void, |
| 43 | + chainWebpackRendererProcess?: (config?: ChainableWebpackConfig) => void, |
| 44 | + mainProcessFile?: string, |
| 45 | + rendererProcessFile?: string, |
| 46 | + mainProcessWatch?: string[], |
| 47 | + mainProcessArgs?: string[], |
| 48 | + outputDir?: string, |
| 49 | + disableMainProcessTypescript?: boolean, |
| 50 | + mainProcessTypeChecking?: boolean, |
| 51 | + customFileProtocol?: string, |
| 52 | + removeElectronJunk?: boolean, |
| 53 | + externals?: string[], |
| 54 | + nodeModulesPath?: string[], |
| 55 | + preload?: string | Record<string, string> |
| 56 | +} |
0 commit comments