Skip to content

Commit 3cdd11a

Browse files
Merge branch 'master' into feat/update-packages
2 parents aabd5ad + b1638bb commit 3cdd11a

File tree

5 files changed

+1010
-42
lines changed

5 files changed

+1010
-42
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ jobs:
1919
cache: 'yarn'
2020

2121
- name: Install dependencies
22-
run: yarn
22+
run: yarn && yarn run initialize
2323
- name: Lint
24-
run: yarn lint
24+
run: yarn lint:ci
2525

2626
- name: Test
2727
run: yarn test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ switcher_backup.env
99
yarn-error.log
1010
storybook-static
1111
reports/
12+
.lighthouseci
1213
# Cruft
1314
.DS_Store
1415
npm-debug.log

lighthouserc.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
module.exports = {
2+
ci: {
3+
collect: {
4+
url: ['http://localhost:3000/'],
5+
staticDistDir: './build',
6+
numberOfRuns: 2
7+
},
8+
upload: {
9+
target: 'temporary-public-storage'
10+
},
11+
assert: {
12+
assertions: {
13+
'first-contentful-paint': ['warn', { maxNumericValue: 2000 }],
14+
'categories:performance': ['warn', { minScore: 0.95 }],
15+
'categories:accessibility': ['warn', { minScore: 0.95 }],
16+
'categories:best-practices': ['warn', { minScore: 0.95 }],
17+
'categories:seo': ['warn', { minScore: 0.95 }]
18+
}
19+
}
20+
}
21+
};

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,14 @@
4343
"clean": "shjs ./internals/scripts/clean.js",
4444
"clean:all": "npm run analyze:clean && npm run test:clean && npm run build:clean",
4545
"lint": "npm run lint:js && npm run lint:css",
46+
"lint:ci": "npm run lint:js:ci && npm run lint:css",
4647
"lint:css": "stylelint app/**/*.js",
4748
"lint:eslint": "eslint --ignore-path .eslintignore --ignore-pattern internals/scripts",
4849
"lint:eslint:fix": "eslint --ignore-path .eslintignore --ignore-pattern internals/scripts --fix",
4950
"lint:js": "npm run lint:eslint -- . ",
51+
"lint:js:ci": "eslint --ignore-path .eslintignore internals/webpack/webpack.config.prod.js --ignore-pattern internals -- .",
5052
"lint:staged": "lint-staged",
53+
"lhci": "lhci autorun",
5154
"test:clean": "rimraf ./coverage",
5255
"test": "cross-env NODE_ENV=test jest --coverage",
5356
"test:staged": "jest --findRelatedTests",
@@ -143,6 +146,7 @@
143146
"@babel/register": "7.14.5",
144147
"@babel/runtime": "^7.14.6",
145148
"@lcdp/offline-plugin": "^5.1.0",
149+
"@lhci/cli": "0.8.x",
146150
"@storybook/addon-actions": "^5.2.1",
147151
"@storybook/addon-knobs": "^5.2.1",
148152
"@storybook/addon-links": "^5.2.1",

0 commit comments

Comments
 (0)