Files
DefinitelyTyped/wallabyjs/wallabyjs-tests.ts
Andrew Connell 190beb0026 update wallabyjs.d.ts - richer typing
Added better support for custom compilers, built in compilers and typing for the wallaby object passed in.
2016-08-16 16:00:28 -04:00

41 lines
1.1 KiB
TypeScript

/// <reference path="wallabyjs.d.ts" />
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;'
}
};
constructor(private wallaby: wallabyjs.IWallaby) { }
}