mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
42 lines
1.1 KiB
TypeScript
42 lines
1.1 KiB
TypeScript
import * as wallabyjs from 'wallabyjs';
|
|
|
|
export class WallabyConfig implements wallabyjs.IWallabyConfig {
|
|
|
|
public files: string[] = [
|
|
'src/**/*.ts',
|
|
'!src/**/*.spec.ts'
|
|
];
|
|
|
|
public tests: string[] = [
|
|
'src/**/*.spec.ts'
|
|
];
|
|
|
|
public compilers: wallabyjs.IWallabyCompilers = <wallabyjs.IWallabyCompilers>{
|
|
'src/**/*.js': this.wallaby.compilers.babel({}),
|
|
'src/**/*.ts': this.wallaby.compilers.typeScript({})
|
|
};
|
|
|
|
public preprocessors: wallabyjs.IWallabyProcessor = <wallabyjs.IWallabyProcessor>{
|
|
'**/*.js': file => file.content + '\n// this is JavaScript',
|
|
'**/*.ts': file => file.content + '\n// this is TypeScript'
|
|
};
|
|
|
|
public postprocessors: wallabyjs.IWallabyProcessor = <wallabyjs.IWallabyProcessor>{
|
|
'**/*.js': file => file.content + '\n// this is JavaScript',
|
|
'**/*.ts': file => file.content + '\n// this is TypeScript'
|
|
};
|
|
|
|
public env: wallabyjs.IWallabyEnvironment = <wallabyjs.IWallabyEnvironment>{
|
|
type: 'node',
|
|
params: {
|
|
env: 'KEY1=value1;KEY2=value2',
|
|
runner: '--arg1;--arg2;'
|
|
},
|
|
viewportSize: {
|
|
width: 800
|
|
}
|
|
};
|
|
|
|
constructor(private wallaby: wallabyjs.IWallaby) { }
|
|
}
|