Skip to content
This repository has been archived by the owner on Dec 10, 2019. It is now read-only.

Commit

Permalink
Add in gimbal stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellsimoens committed Oct 18, 2019
1 parent 998bf11 commit 7741d46
Show file tree
Hide file tree
Showing 4 changed files with 1,674 additions and 30 deletions.
77 changes: 77 additions & 0 deletions .gimbalrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
audits:
- size
- lighthouse
- heap-snapshot
- unused-source

configs:
comment:
onlyFailures: true

heap-snapshot:
threshold:
Documents: 11
Frames: 5
JSHeapTOtalSize: 13356000
JSHeapUsedSize: 10068000
Nodes: 800
RecalcStyleCount: 15
LayoutCount: 15

lighthouse:
skipAudits:
- uses-http2
- redirects-http
- uses-long-cache-ttl
- uses-text-compression
outputHtml: ./artifacts/lighthouse.html
threshold:
accessibility: 95
best-practices: 95
performance: 95
pwa: 95
seo: 95

size:
- path: ./build/favicon.ico
maxSize: 5 KB
- path: ./build
maxSize: 600 KB

unused-source:
threshold:
- path: "**/*(private).*.chunk.css"
maxSize: 60%
- path: "**!(private).*.chunk.css"
maxSize: 60%
- path: "**/*([0-9]).*.chunk.js"
maxSize: 90%
- path: "**/!([0-9]|main).*.chunk.js"
maxSize: 45%
- path: "**/(main).*.chunk.js"
maxSize: 50%

outputs:
cli:
onlyFailures: true
html: ./artifacts/results.html
json: ./artifacts/results.json
markdown: ./artifacts/results.md

plugins:
- plugin: "@modus/gimbal-plugin-last-value"
saveOnlyOnSuccess: false

- plugin: "@modus/gimbal-plugin-sqlite"
lastValue: true

- plugin: "@modus/gimbal-plugin-axe"
thresholds:
aria-allowed-attr: critical
color-contrast: serious
landmark-one-main: moderate
landmark-complementary-is-top-level: moderate
meta-viewport: critical
region: moderate
page-has-heading-one: moderate
scrollable-region-focusable: moderate
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,7 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# gimbal stuff
/artifacts
gimbal.db
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@
"react-scripts": "3.2.0",
"typescript": "3.6.4"
},
"devDependencies": {
"@modus/gimbal": "^1.2.6",
"@modus/gimbal-plugin-axe": "^1.2.6",
"@modus/gimbal-plugin-last-value": "^1.2.6",
"@modus/gimbal-plugin-sqlite": "^1.2.6"
},
"scripts": {
"gimbal-audit": "gimbal audit",
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
Expand Down
Loading

0 comments on commit 7741d46

Please sign in to comment.