Skip to content

Commit

Permalink
Merge pull request #14 from Enigmatis/codecov-support
Browse files Browse the repository at this point in the history
Updated dependencies and added support for codecov
  • Loading branch information
osher-sade authored May 3, 2020
2 parents d453860 + 2fb1cf8 commit 08e5997
Show file tree
Hide file tree
Showing 7 changed files with 9,215 additions and 5,510 deletions.
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ os: linux
node_js:
- 12

before_script:
- npm install -g codecov

script:
- npm run coverage

after_success:
- codecov

jobs:
include:
# Define the release stage that runs semantic-release
Expand Down
2 changes: 1 addition & 1 deletion commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = {extends: ['@commitlint/config-conventional']};
module.exports = { extends: ['@commitlint/config-conventional'] };
10 changes: 3 additions & 7 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
module.exports = {
clearMocks: true,
moduleFileExtensions: [
'ts',
'js',
],
moduleFileExtensions: ['ts', 'js'],
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: [
'**/*.test.ts',
],
testMatch: ['**/*.test.ts'],
coverageDirectory: './coverage/',
};
14,451 changes: 9,090 additions & 5,361 deletions package-lock.json

Large diffs are not rendered by default.

171 changes: 85 additions & 86 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,90 +1,89 @@
{
"name": "@enigmatis/polaris-graphql-logger",
"version": "1.4.1",
"description": "A library that organizes graphql logs",
"main": "dist/src/main.js",
"types": "dist/src/main.d.ts",
"scripts": {
"build": "rimraf dist && tsc -p tsconfig.json",
"lint": "npm run tslint-check && tslint -p .",
"tslint-check": "tslint-config-prettier-check ./tslint.json",
"lint:fix": "npm run tslint-check && tslint -p . --fix",
"test": "jest --runInBand --detectOpenHandles",
"coverage": "jest --runInBand --detectOpenHandles --coverage",
"semantic-release": "semantic-release",
"travis-deploy-once": "travis-deploy-once",
"prepare": "npm run lint:fix && npm run build"
},
"publishConfig": {
"access": "public"
},
"release": {
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/npm",
{
"npmPublish": true
}
],
"@semantic-release/github"
],
"prepare": [
"@semantic-release/changelog",
"@semantic-release/npm",
{
"path": "@semantic-release/git",
"assets": [
"package.json",
"package-lock.json",
"CHANGELOG.md"
"name": "@enigmatis/polaris-graphql-logger",
"version": "1.4.1",
"description": "A library that organizes graphql logs",
"main": "dist/src/main.js",
"types": "dist/src/main.d.ts",
"scripts": {
"build": "rimraf dist && tsc -p tsconfig.json",
"lint": "npm run tslint-check && tslint -p .",
"tslint-check": "tslint-config-prettier-check ./tslint.json",
"lint:fix": "npm run tslint-check && tslint -p . --fix",
"test": "jest --runInBand --detectOpenHandles",
"coverage": "jest --runInBand --detectOpenHandles --coverage",
"semantic-release": "semantic-release",
"prepare": "npm run lint:fix && npm run build"
},
"publishConfig": {
"access": "public"
},
"release": {
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/npm",
{
"npmPublish": true
}
],
"@semantic-release/github"
],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/Enigmatis/polaris-graphql-logger.git"
},
"keywords": [],
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/Enigmatis/polaris-graphql-logger/issues"
},
"homepage": "https://github.com/Enigmatis/polaris-graphql-logger#readme",
"dependencies": {
"@enigmatis/polaris-common": "^1.1.1",
"@enigmatis/polaris-logs": "^2.8.1",
"clean-deep": "^3.3.0",
"winston": "^3.2.1"
},
"devDependencies": {
"@commitlint/cli": "^8.3.5",
"@commitlint/config-conventional": "^8.3.4",
"@semantic-release/changelog": "^3.0.6",
"@semantic-release/git": "latest",
"@types/jest": "^24.9.1",
"@types/node": "^12.12.28",
"husky": "^3.1.0",
"jest": "24.1.0",
"prettier": "^1.19.1",
"rimraf": "^3.0.2",
"travis-deploy-once": "^5.0.11",
"ts-jest": "^24.3.0",
"tslint": "^6.0.0",
"tslint-config-prettier": "^1.18.0",
"tslint-consistent-codestyle": "^1.16.0",
"tslint-eslint-rules": "^5.4.0",
"tslint-plugin-prettier": "^2.1.0",
"typescript": "^3.8.2"
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "npm run lint:fix"
"prepare": [
"@semantic-release/changelog",
"@semantic-release/npm",
{
"path": "@semantic-release/git",
"assets": [
"package.json",
"package-lock.json",
"CHANGELOG.md"
],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/Enigmatis/polaris-graphql-logger.git"
},
"keywords": [],
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/Enigmatis/polaris-graphql-logger/issues"
},
"homepage": "https://github.com/Enigmatis/polaris-graphql-logger#readme",
"dependencies": {
"@enigmatis/polaris-common": "^1.4.1",
"@enigmatis/polaris-logs": "^2.8.2",
"clean-deep": "^3.3.0",
"winston": "^3.2.1"
},
"devDependencies": {
"@commitlint/cli": "^8.3.5",
"@commitlint/config-conventional": "^8.3.4",
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/git": "^9.0.0",
"@types/jest": "^25.2.1",
"@types/node": "^13.13.4",
"husky": "^3.1.0",
"jest": "^25.5.4",
"prettier": "^1.19.1",
"semantic-release": "^17.0.7",
"rimraf": "^3.0.2",
"ts-jest": "^25.4.0",
"tslint": "^6.1.2",
"tslint-config-prettier": "^1.18.0",
"tslint-consistent-codestyle": "^1.16.0",
"tslint-eslint-rules": "^5.4.0",
"tslint-plugin-prettier": "^2.3.0",
"typescript": "^3.8.3"
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "npm run lint:fix"
}
}
}
}
47 changes: 17 additions & 30 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,19 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es2017",
"sourceMap": true,
"outDir": "./dist",
"strict": true,
"moduleResolution": "node",
"experimentalDecorators": true,
"resolveJsonModule": true,
"emitDecoratorMetadata": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"typeRoots": [
"src/type-declarations"
],
"types": [
"jest"
],
"declaration": true,
"lib": [
"es6",
"es2017",
"esnext",
"dom"
]
},
"exclude": [
"node_modules",
"dist"
]
"compilerOptions": {
"module": "commonjs",
"target": "es2017",
"sourceMap": true,
"outDir": "./dist",
"strict": true,
"moduleResolution": "node",
"experimentalDecorators": true,
"resolveJsonModule": true,
"emitDecoratorMetadata": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"types": ["jest"],
"declaration": true,
"lib": ["es6", "es2017", "esnext", "dom"]
},
"exclude": ["node_modules", "dist"]
}
35 changes: 10 additions & 25 deletions tslint.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,12 @@
{
"defaultSeverity": "error",
"rulesDirectory": [
"tslint-plugin-prettier"
],
"jsRules": {},
"extends": [
"tslint:latest",
"tslint-eslint-rules",
"tslint-config-prettier"
],
"rules": {
"file-name-casing": [
true,
"kebab-case"
],
"prettier": [
true,
".prettierrc"
],
"interface-name": [
true,
"never-prefix"
],
"object-literal-sort-keys": false
}
"defaultSeverity": "error",
"rulesDirectory": ["tslint-plugin-prettier"],
"jsRules": {},
"extends": ["tslint:latest", "tslint-eslint-rules", "tslint-config-prettier"],
"rules": {
"file-name-casing": [true, "kebab-case"],
"prettier": [true, ".prettierrc"],
"interface-name": [true, "never-prefix"],
"object-literal-sort-keys": false
}
}

0 comments on commit 08e5997

Please sign in to comment.