Grunt task that checks Pagespeed score for the list of urls.
Required:
Clone this repository. Open projects root folder in console and run:
npm install
grunt --force
The --force
key needed to pass to the next test if speed score below threshold.
Output example:
File sizes in output shown without gzip.
Also the following tasks available:
grunt all --force
— the default task: all pages, desktop and mobile.grunt homepage --force
— desktop and mobile tests for homepage.grunt desktop --force
— all pages on desktop profile.grunt mobile --force
— all pages on mobile profilegrunt save --force
- all pages, desktop and mobile. Output saved to filesresults/pagespeed-desktop.json
andresults/pagespeed-mobile.json
Check Gruntfile.coffee for settings:
# bossrev variables
bossrev:
threshold:
desktop: 80
mobile: 70
enus:
url: 'https://www.bossrevolution.com/en-us'
paths: [
''
'/services'
'/services/international-calling'
'/services/money-transfer'
'/services/international-mobile-topup'
'/services/egift'
'/services/domestic-mobile-topup'
'/services/call-me'
'/services/international-egifts'
'/services/bill-pay'
'/services/visa-virtual'
'/rates'
'/apps'
'/support'
'/brclub'
'/login?ReturnUrl=%2Fen-us%2Fmy-account'
'/register?ReturnUrl=%2Fen-us%2Fmy-account'
'/about'
'/brcares'
'/faq'
'/all-countries'
]