mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Add definitions for gulp-jasmine-browser (https://github.com/jasmine/gulp-jasmine-browser)
This commit is contained in:
parent
dbcd2f192c
commit
82d33fabbc
32
gulp-jasmine-browser/gulp-jasmine-browser-tests.ts
Normal file
32
gulp-jasmine-browser/gulp-jasmine-browser-tests.ts
Normal file
@ -0,0 +1,32 @@
|
||||
/// <reference path="gulp-jasmine-browser.d.ts" />
|
||||
/// <reference path="../gulp/gulp.d.ts" />
|
||||
|
||||
import gulp = require('gulp');
|
||||
import jasmineBrowser = require('gulp-jasmine-browser');
|
||||
|
||||
gulp.task('jasmine', () =>
|
||||
gulp.src(['src/**/*.js', 'spec/**/*_spec.js'])
|
||||
.pipe(jasmineBrowser.specRunner())
|
||||
.pipe(jasmineBrowser.server({port: 8888}))
|
||||
);
|
||||
|
||||
|
||||
gulp.task('jasmine-phantom', () =>
|
||||
gulp.src(['src/**/*.js', 'spec/**/*_spec.js'])
|
||||
.pipe(jasmineBrowser.specRunner({console: true}))
|
||||
.pipe(jasmineBrowser.headless())
|
||||
);
|
||||
|
||||
|
||||
gulp.task('jasmine-slimerjs', () =>
|
||||
gulp.src(['src/**/*.js', 'spec/**/*_spec.js'])
|
||||
.pipe(jasmineBrowser.specRunner({console: true}))
|
||||
.pipe(jasmineBrowser.headless({driver: 'slimerjs'}))
|
||||
);
|
||||
|
||||
|
||||
gulp.task('jasmine', () =>
|
||||
gulp.src('spec/**/*_spec.js')
|
||||
.pipe(jasmineBrowser.specRunner())
|
||||
.pipe(jasmineBrowser.server())
|
||||
);
|
||||
17
gulp-jasmine-browser/gulp-jasmine-browser.d.ts
vendored
Normal file
17
gulp-jasmine-browser/gulp-jasmine-browser.d.ts
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
// Type definitions for gulp-jasmine-browser v0.1.4
|
||||
// Project: https://github.com/jasmine/gulp-jasmine-browser
|
||||
// Definitions by: Tanguy Krotoff <https://github.com/tkrotoff>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
/// <reference path="../node/node.d.ts" />
|
||||
|
||||
declare module 'gulp-jasmine-browser' {
|
||||
interface IJasmineBrowser {
|
||||
specRunner(options?: any): NodeJS.ReadWriteStream;
|
||||
server(options?: any): NodeJS.ReadWriteStream;
|
||||
headless(options?: any): NodeJS.ReadWriteStream;
|
||||
}
|
||||
|
||||
var jasmineBrowser: IJasmineBrowser;
|
||||
export = jasmineBrowser;
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user