support preScripts #962

This commit is contained in:
soulgalore 2016-06-07 09:09:39 +02:00
parent 922a5d57e5
commit 16e5203ed2
2 changed files with 6 additions and 4 deletions

View File

@ -72,11 +72,13 @@ module.exports.parseCommandLine = function parseCommandLine() {
describe: 'The full User Agent string, defaults to the user agent used by the browsertime.browser option.',
group: 'Browser'
})
.option('browsertime.preTask', {
describe: 'Path to JS file for any preTasks that need to be executed.',
.option('browsertime.preScript', {
alias: 'preScript',
describe: 'Task(s) to run before you test your URL (use it for login etc). Note that --preScript can be passed multiple times.',
group: 'Browser'
})
.option('browsertime.postTask', {
.option('browsertime.postScript', {
alias: 'postScript',
describe: 'Path to JS file for any postTasks that need to be executed.',
group: 'Browser'
})

View File

@ -64,7 +64,7 @@
"main": "./lib/sitespeed.js",
"dependencies": {
"bluebird": "3.3.5",
"browsertime": "1.0.0-alpha.19",
"browsertime": "1.0.0-alpha.20",
"concurrent-queue": "7.0.1",
"fast-stats": "0.0.3",
"fs-extra": "0.30.0",