recink-pagespeed
v1.2.7
Published
REciNK Component for PageSpeed
Downloads
6
Maintainers
Readme
REciNK Component for PageSpeed
This is a REciNK component to analyze and optimize your website or webapp following best practices from Google PageSpeed.
Prerequisites
- [x] Git >= v1.x
- [x] Node.js >= v6.x
- [x] NPM >= v3.x
- [x] REciNK
Use nvm to install and manage different versions of Node.js; Ideally, use v8+ for faster performance
Installation
npm install -g recink-pagespeed
Note that the component is installed automatically when running
recink component add pagespeed
Configuration
.recink.yml
configuration:
$:
pagespeed:
uri: # URIs to analyze
- https://www.example.com
# strategy: desktop # Available: desktop, mobile
# filter-third-party: true # Filter 3'rd party assets
# locale: en # @see https://developers.google.com/speed/docs/insights/languagesx
# reporters: # Customize Reporters (available: text, summary)
# summary: ~
# text:
# - minimal: true # Skip showing detailed statistics
# compare:
# negative-delta: 3 # Compare coverage info and if negative delta is more than X fail (0.01-100.00)
# storage:
# driver: 's3' # Available drivers: s3, volative
# options:
# - 's3://travis-metadata/pagespeed/sample-repo' # S3 storage directory
# - # S3 storage options
# region: 'process.env.AWS_DEFAULT_REGION'
# accessKeyId: 'process.env.AWS_ACCESS_KEY_ID'
# secretAccessKey: 'process.env.AWS_SECRET_ACCESS_KEY'
.travis.yml
configuration:
script: 'recink run pagespeed'
before_install:
# other before_install scripts...
- 'npm install -g recink-pagespeed'
Or using the registry:
before_install:
# other before_install scripts...
- 'recink component add pagespeed'
Usage
recink run pagespeed