Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .eslintrc

This file was deleted.

14 changes: 0 additions & 14 deletions .flowconfig

This file was deleted.

30 changes: 0 additions & 30 deletions .releaserc.js

This file was deleted.

22 changes: 9 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,28 @@
dist: xenial
language: node_js
node_js:
- '10'
- '12'

before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.9.4
- export PATH="$HOME/.yarn/bin:$PATH"
- npm install -g greenkeeper-lockfile
cache:
directories:
- node_modules

before_script:
- greenkeeper-lockfile-update
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build

after_script:
- greenkeeper-lockfile-upload
- ./cc-test-reporter format-coverage -t lcov ./coverage/lcov.info
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT

install:
- yarn cache clean
- sh scripts/install.sh
- yarn flow:fetch
- yarn bootstrap
- yarn build
- sh scripts/sh/install.sh
- yarn run bootstrap
- yarn run build

script:
- yarn run test:report
- yarn test:report

deploy:
provider: script
Expand Down
30 changes: 0 additions & 30 deletions babel.config.js

This file was deleted.

15 changes: 0 additions & 15 deletions flow-typed/cls-hooked.js

This file was deleted.

35 changes: 26 additions & 9 deletions jest.config.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,34 @@
{
"testEnvironment": "node",
"preset": "ts-jest",
"collectCoverage": true,
"coveragePathIgnorePatterns": [
"interface.js"
"types.ts"
],
"collectCoverageFrom": [
"<rootDir>/packages/**/src/**/*.js"
"<rootDir>/src/main/ts/**/*.ts"
],
"testMatch": [
"<rootDir>/packages/**/test/**/*.js"
"<rootDir>/src/test/ts/**/*.ts",
"<rootDir>/src/test/js/**/*.js"
],
"transformIgnorePatterns": [
"/!node_modules\\/lodash-es/",
"<roodDir>/node_modules/(?!lodash-es)"
]
}
"testPathIgnorePatterns": [
"/node_modules/",
"<rootDir>/src/test/stub"
],
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
],
"transform": {
"^.+\\.(ts|tsx)$": "ts-jest"
},
"globals": {
"ts-jest": {
"tsConfig": "tsconfig.test.json"
}
}
}
109 changes: 38 additions & 71 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,17 @@
],
"scripts": {
"clean": "lerna clean --yes && lerna run clean",
"build": "yarn clean && lerna run --stream build",
"build:es6": "lerna run --stream build:es6",
"build:es5": "lerna run --stream build:es5",
"build": "yarn clean && lerna run build --stream --concurrency 2",
"bootstrap": "lerna bootstrap",
"test": "yarn flow && yarn flow:coverage && yarn lint && yarn jest",
"jest": "jest",
"test:report": "yarn test && yarn coveralls:push",
"coveralls:push": "cat ./coverage/lcov.info | coveralls",
"jest": "BABEL_ENV=test NODE_ENV=test jest --no-cache -w 1 --detectOpenHandles --config jest.config.json",
"flow": "flow",
"flow:coverage": "flow-coverage-report -i 'packages/**/src/main/**/*.js' -t html -t json -t text --threshold 85",
"flow:fetch": "flow-typed install [email protected]",
"lint": "standard packages/**/src/**/*.js packages/**/test/**/*.js",
"lint:fix": "yarn lint --fix",
"docs": "docma -c ./docma.json",
"docs:view": "node scripts/docsapp.js",
"postupdate": "yarn && yarn bootstrap && yarn build && yarn test"
"test": "lerna run test --concurrency 1 --stream --no-prefix && yarn coverage:merge",
"coverage:merge": "node scripts/js/coverage-merge.js",
"codeclimate:push": "codeclimate-test-reporter < ./coverage/lcov.info",
"coveralls:push": "cat ./coverage/lcov.info | coveralls || echo 'coveralls push failed :(' && exit 0",
"docs": "typedoc packages/**/src/main --ignoreCompilerErrors || exit 0",
"postupdate": "yarn && yarn bootstrap && yarn build && yarn test",
"release": "multi-semantic-release --execasync"
},
"repository": {
"type": "git",
Expand All @@ -35,68 +30,40 @@
"author": "Anton Golub <[email protected]>",
"license": "MIT",
"devDependencies": {
"@babel/cli": "^7.8.4",
"@babel/core": "^7.8.7",
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/plugin-proposal-object-rest-spread": "^7.8.3",
"@babel/plugin-transform-modules-commonjs": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.8.3",
"@babel/preset-env": "^7.8.7",
"@babel/preset-flow": "^7.8.3",
"@babel/register": "^7.8.6",
"@qiwi/libdefkit": "^1.0.2",
"@qiwi/multi-semantic-release": "^2.4.3",
"@semantic-release/changelog": "^5.0.0",
"@semantic-release/commit-analyzer": "^8.0.1",
"@semantic-release/git": "9.0.0",
"@semantic-release/github": "7.0.4",
"@semantic-release/npm": "7.0.3",
"@semantic-release/github": "7.0.5",
"@semantic-release/npm": "7.0.5",
"@semantic-release/release-notes-generator": "9.0.1",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.1.0",
"babel-jest": "^25.1.0",
"coveralls": "^3.0.9",
"docma": "^3.2.2",
"eslint": "^6.8.0",
"eslint-plugin-flowtype": "^4.6.0",
"flow-bin": "^0.120.1",
"flow-coverage-report": "^0.6.1",
"flow-remove-types": "^2.120.1",
"flow-typed": "^3.0.0",
"jest": "^25.1.0",
"@types/jest": "^25.1.4",
"@types/lodash": "^4.14.149",
"@types/node": "^13.9.0",
"codeclimate-test-reporter": "^0.5.1",
"coveralls": "^3.0.11",
"esm": "^3.2.25",
"find-git-root": "^1.0.4",
"jest": "^25.2.0",
"lerna": "^3.20.2",
"lodash": "^4.17.15",
"replace-in-file": "^5.0.2",
"rimraf": "^3.0.2",
"semantic-release": "17.0.4",
"semantic-release-monorepo": "7.0.1",
"semantic-release-monorepo-hooks": "2.9.5",
"semantic-release-plugin-decorators": "^2.1.1",
"standard": "^14.3.1"
"snazzy": "^8.0.0",
"ts-jest": "^25.2.1",
"typedoc": "^0.17.3",
"typescript": "^3.8.3",
"yargs": "^15.3.1"
},
"standard": {
"parser": "babel-eslint",
"plugins": [
"flowtype"
],
"globals": [
"jest",
"it",
"expect",
"describe",
"before",
"beforeAll",
"beforeEach",
"afterAll",
"after",
"afterEach",
"xdescribe",
"xit"
],
"rules": {
"use-flow-type": 1
},
"ignore": [],
"settings": {
"flowtype": {
"onlyFilesWithFlowAnnotation": true
}
}
},
"dependencies": {}
"dependencies": {},
"jest": {
"collectCoverage": true,
"projects": [
"<rootDir>/packages/logwrap/jest.config.json",
"<rootDir>/packages/logwrap-core/jest.config.json",
"<rootDir>/packages/logwrap-mdc/jest.config.json"
]
}
}
35 changes: 0 additions & 35 deletions packages/logwrap-core/.babelrc

This file was deleted.

5 changes: 5 additions & 0 deletions packages/logwrap-core/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
extends: [
'eslint-config-qiwi'
]
};
17 changes: 17 additions & 0 deletions packages/logwrap-core/.releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"branch": "master",
"verifyConditions": [
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/git"
],
"prepare": [
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/git"
],
"publish": [
"@semantic-release/npm",
"@semantic-release/github"
]
}
21 changes: 21 additions & 0 deletions packages/logwrap-core/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2019 QIWI

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading