在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):NullRefExcep/gulp-casperjs开源软件地址(OpenSource Url):https://github.com/NullRefExcep/gulp-casperjs开源编程语言(OpenSource Language):JavaScript 100.0%开源软件介绍(OpenSource Introduction):gulp-casperjsA gulp plugin for running CasperJS scripts Install
Usagesvar casperJs = require('gulp-casperjs');
gulp.task('test', function () {
gulp.src('Globs of test files')
.pipe(casperJs()); //run casperjs test
}); To change the command (default: var casperJs = require('gulp-casperjs');
gulp.task('casperCmd', function () {
gulp.src('test.js')
.pipe(casperJs({command:''})); //run casperjs test.js
}); Command can be To set custom path to CasperJS use parameter var casperJs = require('gulp-casperjs');
gulp.task('test', function () {
gulp.src('test.js')
.pipe(casperJs({binPath: './node_modules/casperjs/bin/casperjs'})); //custom path to CasperJs
}); Default is OptionsIt is possible to pass casperjs options via main options object. var casperJs = require('gulp-casperjs');
gulp.task('casperCmd', function () {
const options = {
logLevel: 'debug',
includes: 'node_modules/package/index.js,node_modules/pacakge2/index.js',
webSecurity: 'no'
};
gulp.src('test.js')
.pipe(casperJs(options)); //run casperjs test.js
}); Options are documented in official CasperJS documentation http://docs.casperjs.org Possible values are
LICENSEThe MIT License (MIT) |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论