[go: nahoru, domu]

Skip to content

Commit

Permalink
Merge branch 'master' into feat/update-packages
Browse files Browse the repository at this point in the history
  • Loading branch information
prabhat-wednesday committed Nov 30, 2022
2 parents 4e6d636 + b1638bb commit f97d56f
Show file tree
Hide file tree
Showing 5 changed files with 996 additions and 43 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ jobs:
cache: 'yarn'

- name: Install dependencies
run: yarn
run: yarn && yarn run initialize
- name: Lint
run: yarn lint
run: yarn lint:ci

- name: Test
run: yarn test
Expand All @@ -37,4 +37,4 @@ jobs:
# -Dsonar.projectKey=${{ secrets.SONAR_PROJECT_KEY}}
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ switcher_backup.env
yarn-error.log
storybook-static
reports/
.lighthouseci
# Cruft
.DS_Store
npm-debug.log
Expand Down
21 changes: 21 additions & 0 deletions lighthouserc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module.exports = {
ci: {
collect: {
url: ['http://localhost:3000/'],
staticDistDir: './build',
numberOfRuns: 2
},
upload: {
target: 'temporary-public-storage'
},
assert: {
assertions: {
'first-contentful-paint': ['warn', { maxNumericValue: 2000 }],
'categories:performance': ['warn', { minScore: 0.95 }],
'categories:accessibility': ['warn', { minScore: 0.95 }],
'categories:best-practices': ['warn', { minScore: 0.95 }],
'categories:seo': ['warn', { minScore: 0.95 }]
}
}
}
};
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,14 @@
"clean": "shjs ./internals/scripts/clean.js",
"clean:all": "npm run analyze:clean && npm run test:clean && npm run build:clean",
"lint": "npm run lint:js && npm run lint:css",
"lint:ci": "npm run lint:js:ci && npm run lint:css",
"lint:css": "stylelint app/**/*.js",
"lint:eslint": "eslint --ignore-path .eslintignore --ignore-pattern internals/scripts",
"lint:eslint:fix": "eslint --ignore-path .eslintignore --ignore-pattern internals/scripts --fix",
"lint:js": "npm run lint:eslint -- . ",
"lint:js:ci": "eslint --ignore-path .eslintignore internals/webpack/webpack.config.prod.js --ignore-pattern internals -- .",
"lint:staged": "lint-staged",
"lhci": "lhci autorun",
"test:clean": "rimraf ./coverage",
"test": "cross-env NODE_ENV=test jest --coverage",
"test:staged": "jest --findRelatedTests",
Expand Down Expand Up @@ -139,6 +142,7 @@
"@babel/register": "7.14.5",
"@babel/runtime": "^7.14.6",
"@lcdp/offline-plugin": "^5.1.0",
"@lhci/cli": "0.8.x",
"@storybook/addon-actions": "^5.2.1",
"@storybook/addon-knobs": "^5.2.1",
"@storybook/addon-links": "^5.2.1",
Expand Down
Loading

0 comments on commit f97d56f

Please sign in to comment.