mirror of
https://github.com/kremalicious/portfolio.git
synced 2025-02-03 15:47:31 +01:00
lighthousebot setup
This commit is contained in:
parent
d5e98db286
commit
81df76b33e
@ -3,8 +3,8 @@ language: node_js
|
|||||||
node_js: node
|
node_js: node
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
|
npm: true
|
||||||
directories:
|
directories:
|
||||||
- node_modules
|
|
||||||
- public
|
- public
|
||||||
|
|
||||||
# will run `npm install` automatically here
|
# will run `npm install` automatically here
|
||||||
@ -31,6 +31,7 @@ after_success:
|
|||||||
- pip install --user awscli
|
- pip install --user awscli
|
||||||
- export PATH=$PATH:$HOME/.local/bin
|
- export PATH=$PATH:$HOME/.local/bin
|
||||||
- npm run deploy
|
- npm run deploy
|
||||||
|
- npm run lh -- https://beta.matthiaskretschmann.com
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
email: false
|
email: false
|
||||||
|
@ -28,7 +28,8 @@ function truncate(n, useWordBoundary) {
|
|||||||
//
|
//
|
||||||
async function getGithubRepos(data) {
|
async function getGithubRepos(data) {
|
||||||
const allRepos = await axios.get(
|
const allRepos = await axios.get(
|
||||||
`https://api.github.com/users/${data.user}/repos?per_page=100`
|
`https://api.github.com/users/${data.user}/repos?per_page=100`,
|
||||||
|
{ headers: { 'User-Agent': 'kremalicious/portfolio' } }
|
||||||
)
|
)
|
||||||
const repos = allRepos.data
|
const repos = allRepos.data
|
||||||
// filter by what's defined in content/repos.yml
|
// filter by what's defined in content/repos.yml
|
||||||
|
@ -20,7 +20,8 @@
|
|||||||
"test": "npm run lint && jest --coverage",
|
"test": "npm run lint && jest --coverage",
|
||||||
"test:watch": "npm run lint && jest --coverage --watch",
|
"test:watch": "npm run lint && jest --coverage --watch",
|
||||||
"deploy": "./scripts/deploy.sh",
|
"deploy": "./scripts/deploy.sh",
|
||||||
"new": "babel-node ./scripts/new.js"
|
"new": "babel-node ./scripts/new.js",
|
||||||
|
"lh": "lighthousebot --pwa=90 --perf=90 --a11y=90 --bp=90 --seo 90 --runner=wpt"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^0.19.0",
|
"axios": "^0.19.0",
|
||||||
@ -77,6 +78,7 @@
|
|||||||
"jest": "^24.7.1",
|
"jest": "^24.7.1",
|
||||||
"jest-canvas-mock": "^2.0.0",
|
"jest-canvas-mock": "^2.0.0",
|
||||||
"jest-dom": "^3.4.0",
|
"jest-dom": "^3.4.0",
|
||||||
|
"lighthousebot": "git+https://github.com/GoogleChromeLabs/lighthousebot.git",
|
||||||
"ora": "^3.4.0",
|
"ora": "^3.4.0",
|
||||||
"prepend": "^1.0.2",
|
"prepend": "^1.0.2",
|
||||||
"prettier": "^1.18.2",
|
"prettier": "^1.18.2",
|
||||||
|
Loading…
Reference in New Issue
Block a user