Skip to content

Commit

Permalink
Merge pull request #2 from NikolayMakhonin/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
NikolayMakhonin committed Jul 3, 2022
2 parents e4f0d47 + 5399dc0 commit e86877c
Show file tree
Hide file tree
Showing 122 changed files with 11,892 additions and 3,653 deletions.
12 changes: 12 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# copy of .gitignore
/dist/**/test/**
/dist/**/*.test.*
/dist/**/*.stress.*
/tmp/
/node_modules/

# additional rules
/.idea/
/.github/
/dist/
/docs/
57 changes: 3 additions & 54 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,58 +1,7 @@
'use strict'

module.exports = {
parser: '@typescript-eslint/parser',
extends: [
'extends': [
'pro',
],
rules: {
// 'no-extra-semi': 'error',
// semi: ['error', 'never', {beforeStatementContinuationChars: 'always'}],
// 'semi-spacing': [
// 'warn',
// {
// before: false,
// after : true,
// },
// ],
// 'semi-style': ['error', 'first'],
// 'linebreak-style': ["error", "unix"],
//
// '@typescript-eslint/no-explicit-any': 'off',
// '@typescript-eslint/explicit-module-boundary-types': 'off',
// '@typescript-eslint/no-unsafe-assignment': 'off',
// '@typescript-eslint/no-unsafe-call': 'off',
// '@typescript-eslint/no-inferrable-types': 'off',
// '@typescript-eslint/no-unsafe-return': 'off',
// '@typescript-eslint/no-unsafe-member-access': 'off',
// '@typescript-eslint/restrict-template-expressions': 'off',
// '@typescript-eslint/ban-ts-comment': 'off',
// '@typescript-eslint/no-floating-promises': 'off',
// '@typescript-eslint/restrict-plus-operands': 'off',
// '@typescript-eslint/no-empty-interface': 'off',
// '@typescript-eslint/no-unused-vars': 'off',
// '@typescript-eslint/await-thenable': 'off',
// '@typescript-eslint/no-unsafe-argument': 'off',
// 'no-constant-condition': 'off',
'func-names': 'off',
'@typescript-eslint/no-empty-function': 'off',
'no-empty-function': 'off',
'no-process-exit': 'off',
'no-await-in-loop': 'off',
'array-element-newline': 'off',
'multiline-ternary': 'off',
},
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
tsconfigRootDir: process.cwd(),
project: ['./tsconfig.json'],
extraFileExtensions: ['.svelte']
},
env: {
es6: true
},
settings: {

},
plugins: ['@typescript-eslint'],
ignorePatterns: ['node_modules']
}
62 changes: 1 addition & 61 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,61 +1 @@
*.doc binary
*.docx binary
*.gif binary
*.jpeg binary
*.jpg binary
*.png binary
*.tif binary
*.tiff binary
*.ttf binary
*.wasm binary
*.woff binary
*.woff2 binary
*.xls binary
*.xlsx binary
*.map binary

*.babelrc text eol=lf
*.cjs text gitlab-language=js eol=lf
*.cmd text eol=lf
*.css text eol=lf
*.editorconfig text eol=lf
*.eslintignore text eol=lf
*.eslintrc text eol=lf
*.example text eol=lf
*.gitattributes text eol=lf
*.gitignore text eol=lf
*.gitkeep text eol=lf
*.html text eol=lf
*.js text eol=lf
*.jscsrc text eol=lf
*.jshintrc text eol=lf
*.json text eol=lf
*.json5 text gitlab-language=js eol=lf
*.lock text gitlab-language=json eol=lf
*.log text eol=lf
*.markdown text eol=lf
*.md text eol=lf
*.mjs text gitlab-language=js eol=lf
*.npmignore text eol=lf
*.nvmrc text eol=lf
*.nycrc text eol=lf
*.opts text eol=lf
*.pcss text gitlab-language=css eol=lf
*.php text eol=lf
*.prettierignore text eol=lf
*.prettierrc text eol=lf
*.scss text eol=lf
*.sh text eol=lf
*.svelte text gitlab-language=html eol=lf
*.svg text gitlab-language=xml eol=lf
*.ts text gitlab-language=js eol=lf
*.txt text eol=lf
*.workflow text eol=lf
*.xml text eol=lf
*.yaml text eol=lf
*.yml text gitlab-language=txt eol=lf

ChangeLog text eol=lf
Dockerfile text eol=lf
LICENSE text eol=lf
Makefile text eol=lf
* text=auto eol=lf
74 changes: 64 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,75 @@ name: Test
- 'master'
pull_request:
branches:
- '*'
- 'master'

jobs:
build:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 14.x]

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: '14'
cache: 'yarn'
- name: Run tests
node-version: ${{ matrix.node-version }}

- name: Check secrets
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: |
yarn run ci:test
yarn add coveralls -D
yarn run coveralls
node -e "o=['COVERALLS_REPO_TOKEN'].filter(o=>!process.env[o]);o.length&&(console.log('You should set env variables: '+o.join(', ')),process.exit(1))"
- uses: actions/checkout@v2

# from: https://github.com/pnpm/action-setup
- name: Install pnpm
id: pnpm-install
uses: pnpm/action-setup@v2.1.0
with:
version: 7
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: |
pnpm install --frozen-lockfile
- name: Lint
shell: bash
run: |
pnpm run audit
pnpm run lint
- name: Build
shell: bash
run: |
pnpm run build
- name: Mocha tests
shell: bash
run: |
pnpm run test:mocha:ci
- name: Coveralls
if: ${{ matrix.node-version == '18.x' }}
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
shell: bash
run: |
pnpm add coveralls -D
pnpm run coveralls
13 changes: 10 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
/dist
/tmp
/node_modules
/dist/**/test/**
/dist/**/*.test.*
/dist/**/*.stress.*
/tmp/
/node_modules/
/*.log

/.eslintcache
/package-lock.json
/yarn.lock
/yarn-error.log
/.pnpm-debug.log
1 change: 1 addition & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions .idea/codeStyles/codeStyleConfig.xml

This file was deleted.

9 changes: 9 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/jsLibraryMappings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/jsLinters/eslint.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/runConfigurations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions .idea/runConfigurations/coverage_check.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/runConfigurations/mocha.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion .idea/runConfigurations/mocha_perf.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion .idea/runConfigurations/mocha_watch.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e86877c

Please sign in to comment.