mirror of
https://github.com/kremalicious/portfolio.git
synced 2024-12-23 01:29:41 +01:00
Merge pull request #141 from kremalicious/feature/lighthouse
lighthousebot setup
This commit is contained in:
commit
179e9d714f
@ -3,8 +3,8 @@ language: node_js
|
||||
node_js: node
|
||||
|
||||
cache:
|
||||
npm: true
|
||||
directories:
|
||||
- node_modules
|
||||
- public
|
||||
|
||||
# will run `npm install` automatically here
|
||||
@ -31,6 +31,7 @@ after_success:
|
||||
- pip install --user awscli
|
||||
- export PATH=$PATH:$HOME/.local/bin
|
||||
- npm run deploy
|
||||
- npm run lh -- https://beta.matthiaskretschmann.com
|
||||
|
||||
notifications:
|
||||
email: false
|
||||
|
@ -28,7 +28,8 @@ function truncate(n, useWordBoundary) {
|
||||
//
|
||||
async function getGithubRepos(data) {
|
||||
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
|
||||
// filter by what's defined in content/repos.yml
|
||||
|
@ -20,7 +20,8 @@
|
||||
"test": "npm run lint && jest --coverage",
|
||||
"test:watch": "npm run lint && jest --coverage --watch",
|
||||
"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": {
|
||||
"axios": "^0.19.0",
|
||||
@ -77,6 +78,7 @@
|
||||
"jest": "^24.7.1",
|
||||
"jest-canvas-mock": "^2.0.0",
|
||||
"jest-dom": "^3.4.0",
|
||||
"lighthousebot": "git+https://github.com/GoogleChromeLabs/lighthousebot.git",
|
||||
"ora": "^3.4.0",
|
||||
"prepend": "^1.0.2",
|
||||
"prettier": "^1.18.2",
|
||||
|
Loading…
Reference in New Issue
Block a user