Skip to content

Commit

Permalink
chore: centralize typescript and jest setups (#710)
Browse files Browse the repository at this point in the history
  • Loading branch information
marionebl committed Jul 9, 2019
1 parent c9dcf1a commit c9ef5e2
Show file tree
Hide file tree
Showing 31 changed files with 139 additions and 185 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -10,3 +10,4 @@ package-lock.json
lib/
package.json.lerna_backup
/*.iml
tsconfig.tsbuildinfo
14 changes: 3 additions & 11 deletions @commitlint/ensure/package.json
Expand Up @@ -3,16 +3,13 @@
"version": "8.0.0",
"description": "Lint your commit messages",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"files": [
"lib/"
],
"scripts": {
"build": "tsc",
"deps": "dep-check",
"pkg": "pkg-check",
"start": "concurrently \"yarn test --watchAll\" \"yarn run watch\"",
"test": "jest",
"watch": "tsc -w"
"pkg": "pkg-check"
},
"engines": {
"node": ">=4"
Expand All @@ -38,12 +35,7 @@
"license": "MIT",
"devDependencies": {
"@commitlint/utils": "^8.0.0",
"@types/jest": "24.0.15",
"concurrently": "3.5.1",
"globby": "10.0.1",
"jest": "24.8.0",
"ts-jest": "24.0.2",
"typescript": "3.5.2"
"globby": "10.0.1"
},
"dependencies": {
"lodash": "4.17.11"
Expand Down
21 changes: 7 additions & 14 deletions @commitlint/ensure/tsconfig.json
@@ -1,22 +1,15 @@
{
"extends": "../../tsconfig.shared.json",
"compilerOptions": {
"lib": [
"dom",
"es2015"
],
"rootDir": "src",
"outDir": "lib",
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true
"composite": true,
"rootDir": "./src",
"outDir": "./lib"
},
"include": [
"./src"
],
"exclude": [
"./src/**/*.test.ts"
"./src/**/*.test.ts",
"./lib/**/*"
]
}
}
1 change: 0 additions & 1 deletion @commitlint/execute-rule/index.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion @commitlint/execute-rule/index.js

This file was deleted.

11 changes: 3 additions & 8 deletions @commitlint/execute-rule/package.json
Expand Up @@ -3,16 +3,13 @@
"version": "8.0.0",
"description": "Lint your commit messages",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"files": [
"lib/"
],
"scripts": {
"build": "tsc",
"deps": "dep-check",
"pkg": "pkg-check",
"start": "concurrently \"yarn test --watchAll\" \"yarn run watch\"",
"test": "jest",
"watch": "tsc -w"
"pkg": "pkg-check"
},
"engines": {
"node": ">=4"
Expand Down Expand Up @@ -41,9 +38,7 @@
"@commitlint/utils": "^8.0.0",
"@types/jest": "24.0.15",
"@types/lodash": "4.14.134",
"concurrently": "3.5.1",
"jest": "24.8.0",
"ts-jest": "24.0.2",
"typescript": "3.5.2"
"ts-jest": "24.0.2"
}
}
21 changes: 7 additions & 14 deletions @commitlint/execute-rule/tsconfig.json
@@ -1,22 +1,15 @@
{
"extends": "../../tsconfig.shared.json",
"compilerOptions": {
"lib": [
"dom",
"es2015"
],
"rootDir": "src",
"outDir": "lib",
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true
"composite": true,
"rootDir": "./src",
"outDir": "./lib"
},
"include": [
"./src"
],
"exclude": [
"./src/**/*.test.ts"
"./src/**/*.test.ts",
"./lib/**/*"
]
}
}
1 change: 0 additions & 1 deletion @commitlint/format/index.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion @commitlint/format/index.js

This file was deleted.

11 changes: 2 additions & 9 deletions @commitlint/format/package.json
Expand Up @@ -3,16 +3,13 @@
"version": "8.0.0",
"description": "Format commitlint reports",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"files": [
"lib/"
],
"scripts": {
"build": "tsc",
"deps": "dep-check",
"pkg": "pkg-check --skip-import",
"start": "concurrently \"yarn test --watchAll\" \"yarn run watch\"",
"test": "jest",
"watch": "tsc -w"
"pkg": "pkg-check --skip-import"
},
"engines": {
"node": ">=4"
Expand All @@ -38,11 +35,7 @@
"license": "MIT",
"devDependencies": {
"@commitlint/utils": "^8.0.0",
"@types/jest": "24.0.15",
"@types/lodash": "4.14.134",
"concurrently": "3.5.1",
"jest": "24.8.0",
"ts-jest": "24.0.2",
"typescript": "3.5.2",
"lodash": "4.17.11"
},
Expand Down
22 changes: 11 additions & 11 deletions @commitlint/format/tsconfig.json
@@ -1,15 +1,15 @@
{
"extends": "../../tsconfig.shared.json",
"compilerOptions": {
"lib": ["dom", "es2015"],
"rootDir": "src",
"outDir": "lib",
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true
"composite": true,
"rootDir": "./src",
"outDir": "./lib"
},
"include": ["./src"],
"exclude": ["./src/**/*.test.ts"]
"include": [
"./src"
],
"exclude": [
"./src/**/*.test.ts",
"./lib/**/*"
]
}
1 change: 0 additions & 1 deletion @commitlint/is-ignored/index.d.ts

This file was deleted.

2 changes: 0 additions & 2 deletions @commitlint/is-ignored/index.js

This file was deleted.

4 changes: 0 additions & 4 deletions @commitlint/is-ignored/jest.config.js

This file was deleted.

17 changes: 5 additions & 12 deletions @commitlint/is-ignored/package.json
Expand Up @@ -2,16 +2,14 @@
"name": "@commitlint/is-ignored",
"version": "8.0.0",
"description": "Lint your commit messages",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"files": [
"lib/"
],
"scripts": {
"build": "tsc",
"deps": "dep-check",
"pkg": "pkg-check",
"start": "concurrently \"jest --watchAll\" \"tsc -w\"",
"test": "jest",
"watch": "tsc -w"
"pkg": "pkg-check"
},
"engines": {
"node": ">=4"
Expand All @@ -38,15 +36,10 @@
"devDependencies": {
"@commitlint/parse": "8.0.0",
"@commitlint/test": "8.0.0",
"@commitlint/utils": "8.0.0",
"@types/jest": "24.0.15",
"concurrently": "3.5.1",
"jest": "24.8.0",
"ts-jest": "24.0.2",
"typescript": "3.5.2"
"@commitlint/utils": "8.0.0"
},
"dependencies": {
"@types/semver": "6.0.0",
"@types/semver": "^6.0.1",
"semver": "6.1.1"
}
}
2 changes: 1 addition & 1 deletion @commitlint/is-ignored/src/defaults.ts
@@ -1,4 +1,4 @@
import semver from 'semver';
import * as semver from 'semver';

export type Matcher = (commit: string) => boolean;

Expand Down
21 changes: 7 additions & 14 deletions @commitlint/is-ignored/tsconfig.json
@@ -1,22 +1,15 @@
{
"extends": "../../tsconfig.shared.json",
"compilerOptions": {
"lib": [
"dom",
"es2015"
],
"rootDir": "src",
"outDir": "lib",
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true
"composite": true,
"rootDir": "./src",
"outDir": "./lib"
},
"include": [
"./src"
],
"exclude": [
"./src/**/*.test.ts"
"./src/**/*.test.ts",
"./lib/**/*"
]
}
}
13 changes: 3 additions & 10 deletions @commitlint/resolve-extends/package.json
Expand Up @@ -3,15 +3,13 @@
"version": "8.0.0",
"description": "Lint your commit messages",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"files": [
"lib/"
],
"scripts": {
"build": "tsc",
"deps": "dep-check",
"pkg": "pkg-check",
"start": "concurrently \"jest --watchAll\" \"tsc -w\"",
"test": "jest"
"pkg": "pkg-check"
},
"engines": {
"node": ">=4"
Expand All @@ -38,13 +36,8 @@
"devDependencies": {
"@commitlint/parse": "^8.0.0",
"@commitlint/utils": "^8.0.0",
"@types/jest": "24.0.15",
"@types/lodash": "4.14.134",
"@types/resolve-from": "5.0.1",
"concurrently": "3.5.1",
"jest": "24.8.0",
"ts-jest": "24.0.2",
"typescript": "3.5.2"
"@types/resolve-from": "5.0.1"
},
"dependencies": {
"@types/node": "^12.0.2",
Expand Down
22 changes: 11 additions & 11 deletions @commitlint/resolve-extends/tsconfig.json
@@ -1,15 +1,15 @@
{
"extends": "../../tsconfig.shared.json",
"compilerOptions": {
"lib": ["dom", "es2015"],
"rootDir": "src",
"outDir": "lib",
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true
"composite": true,
"rootDir": "./src",
"outDir": "./lib"
},
"include": ["./src"],
"exclude": ["./src/**/*.test.ts"]
"include": [
"./src"
],
"exclude": [
"./src/**/*.test.ts",
"./lib/**/*"
]
}
14 changes: 3 additions & 11 deletions @commitlint/to-lines/package.json
Expand Up @@ -3,16 +3,13 @@
"version": "8.0.0",
"description": "Lint your commit messages",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"files": [
"lib/"
],
"scripts": {
"build": "tsc",
"deps": "dep-check",
"pkg": "pkg-check",
"start": "concurrently \"yarn test --watchAll\" \"yarn run watch\"",
"test": "jest",
"watch": "tsc -w"
"pkg": "pkg-check"
},
"engines": {
"node": ">=4"
Expand All @@ -38,11 +35,6 @@
"license": "MIT",
"devDependencies": {
"@commitlint/parse": "^8.0.0",
"@commitlint/utils": "^8.0.0",
"concurrently": "3.5.1",
"@types/jest": "24.0.15",
"jest": "24.8.0",
"ts-jest": "24.0.2",
"typescript": "3.5.2"
"@commitlint/utils": "^8.0.0"
}
}

0 comments on commit c9ef5e2

Please sign in to comment.