Skip to content

Commit

Permalink
feat: update web-vitals and add INP metric
Browse files Browse the repository at this point in the history
  • Loading branch information
arsenykruglikov committed Sep 26, 2024
1 parent 4d11d8a commit 5539e37
Show file tree
Hide file tree
Showing 25 changed files with 4,834 additions and 11,190 deletions.
5 changes: 0 additions & 5 deletions .eslintrc.js

This file was deleted.

11 changes: 7 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
NPM_REGISTRY_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Prepare repository
run: git fetch --unshallow --tags
Expand All @@ -29,9 +29,9 @@ jobs:
run: git config --local --unset http.https://github.com/.extraheader

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
node-version-file: '.nvmrc'

- name: Cache node modules
uses: actions/cache@v1
Expand All @@ -45,6 +45,9 @@ jobs:
run: |
npm ci
- name: Check code style
run: npm run fmt:check

- name: Test
run: npm run test

Expand All @@ -70,7 +73,7 @@ jobs:
uses: actions-js/push@master
with:
github_token: ${{ secrets.GH_TOKEN }}
message: "chore: update package-locks [skip ci]"
message: 'chore: update package-locks [skip ci]'
branch: ${{ steps.extract_branch.outputs.branch }}
author_name: Salute Frontend Team
author_email: salute.developers@gmail.com
2 changes: 1 addition & 1 deletion .github/workflows/semgrep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Semgrep

on:
pull_request:
branches: ["main"]
branches: ['main']

permissions:
actions: read
Expand Down
8 changes: 8 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
vite.config.ts
.prettierrc.js
.prettierignore
.eslintrc.js
.nvmrc
tsconfig.json
src
.github
1 change: 0 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
save-exact=true
legacy-peer-deps=true
@salutejs:registry=https://registry.npmjs.org/
//registry.npmjs.org/:_authToken=${NPM_REGISTRY_TOKEN}
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.16.1
20.9.0
27 changes: 9 additions & 18 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,15 @@
module.exports = {
arrowParens: 'always',
printWidth: 120,
jsxBracketSameLine: false,
jsxSingleQuote: false,
endOfLine: 'auto',
semi: true,
singleQuote: true,
tabWidth: 4,
trailingComma: 'all',
import salutejsPrettierConfig from '@salutejs/prettier-config';

const { parser, ...config } = salutejsPrettierConfig;

export default {
...config,
plugins: ['prettier-plugin-packagejson'],
overrides: [
{
files: ['*.js', '*.ts', '*.jsx', '*.tsx'],
files: '*.{json,md,yaml,yml}',
options: {
parser: 'typescript',
},
},
{
files: ['*.json'],
options: {
parser: 'json',
tabWidth: 2,
},
},
],
Expand Down
3 changes: 3 additions & 0 deletions .prettierrcignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
lib
package-lock.json
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Web telemetry 🔮

>Пакет для сбора и отправки метрик скорости работы веб приложений
> Пакет для сбора и отправки метрик скорости работы веб приложений
## Установка

`npm i -s @salutejs/web-telemetry`

## Подключение

WIP
WIP
3 changes: 0 additions & 3 deletions babel.config.js

This file was deleted.

3 changes: 0 additions & 3 deletions jest.config.js

This file was deleted.

Loading

0 comments on commit 5539e37

Please sign in to comment.