support preScripts #962
This commit is contained in:
parent
922a5d57e5
commit
16e5203ed2
|
|
@ -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'
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue