Skip to content

Commit

Permalink
Merge pull request #23 from rambler-digital-solutions/typescript
Browse files Browse the repository at this point in the history
typescript
  • Loading branch information
andrepolischuk authored Oct 12, 2023
2 parents de3f639 + 62b6501 commit 4942bd9
Show file tree
Hide file tree
Showing 399 changed files with 24,591 additions and 24,875 deletions.
46 changes: 0 additions & 46 deletions .babelrc

This file was deleted.

3 changes: 3 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["@commitlint/config-conventional"]
}
22 changes: 12 additions & 10 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
{
"extends": [
"mailonline",
"mailonline/jest"
"@rambler-tech/eslint-config",
"@rambler-tech/eslint-config/ts",
"prettier"
],
"root": true,
"rules": {
"jsdoc/require-description-complete-sentence": "off",
"max-len": ["warn", { "code": 160, "ignoreComments": true }],
"id-match": "off",
"jsdoc/check-tag-names": "off"
}
}
"overrides": [
{
"files": "*.spec.ts",
"rules": {
"sonarjs/no-duplicate-string": "off"
}
}
]
}
23 changes: 13 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,33 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: '10.x'
cache: yarn
node-version: '18.x'
- run: yarn
- run: yarn build
- run: yarn semantic-release
- run: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: '10.x'
cache: yarn
node-version: '18.x'
- run: yarn
- run: yarn pages
- run: yarn docs
- run: yarn demo
- name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.4
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: pages
folder: public
36 changes: 25 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,37 +16,51 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: '10.x'
cache: yarn
node-version: '18.x'
- run: yarn
- run: yarn test
- run: yarn codecov

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: '10.x'
cache: yarn
node-version: '18.x'
- run: yarn
- run: yarn lint
- run: yarn build
- run: yarn typecheck

size:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
cache: yarn
node-version: '18.x'
- run: yarn
- run: yarn sizecheck

commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: '10.x'
cache: yarn
node-version: '18.x'
- run: yarn
- uses: wagoid/commitlint-github-action@v3
env:
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ dist/
docs/
node_modules/
package-lock.json
pages/
public/
.npmrc
.yarnrc
.yarnrc
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn commitlint --edit $1
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn lint-staged
7 changes: 0 additions & 7 deletions .huskyrc

This file was deleted.

4 changes: 4 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"*.{js,ts}": ["prettier --write", "eslint --fix"],
"*.{html,md,json}": ["prettier --write"]
}
1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

7 changes: 0 additions & 7 deletions .prettierrc

This file was deleted.

1 change: 1 addition & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"@rambler-tech/prettier-config"
6 changes: 6 additions & 0 deletions .size-limit.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[
{
"path": "dist/index.js",
"limit": "24 KB"
}
]
26 changes: 0 additions & 26 deletions .size-snapshot.json

This file was deleted.

28 changes: 0 additions & 28 deletions GlobalJsDomEnv.js

This file was deleted.

Loading

0 comments on commit 4942bd9

Please sign in to comment.