Skip to content

Commit

Permalink
refactor: port resolve-extends to ts (#664)
Browse files Browse the repository at this point in the history
* build: simplify repo cleaning

* build: port execute-rule to ts

* test: bring test cases up to speed

* fix: add missing node typings
  • Loading branch information
marionebl committed May 31, 2019
1 parent 285466b commit 02c0c3f
Show file tree
Hide file tree
Showing 8 changed files with 678 additions and 723 deletions.
2 changes: 1 addition & 1 deletion @commitlint/format/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
},
"license": "MIT",
"devDependencies": {
"@commitlint/test": "^8.0.0",
"@commitlint/utils": "^8.0.0",
"@types/jest": "24.0.13",
"@types/lodash": "4.14.133",
"concurrently": "3.5.1",
Expand Down
4 changes: 4 additions & 0 deletions @commitlint/resolve-extends/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node'
};
42 changes: 10 additions & 32 deletions @commitlint/resolve-extends/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,11 @@
"lib/"
],
"scripts": {
"build": "cross-env NODE_ENV=production babel src --out-dir lib --source-maps",
"build": "tsc",
"deps": "dep-check",
"pkg": "pkg-check",
"start": "concurrently \"ava -c 4 --verbose --watch\" \"yarn run watch\"",
"test": "ava -c 4 --verbose",
"watch": "babel src --out-dir lib --watch --source-maps"
},
"ava": {
"files": [
"src/**/*.test.js",
"!lib/**/*"
],
"source": [
"src/**/*.js",
"!lib/**/*"
],
"babel": "inherit",
"require": [
"babel-register"
]
},
"babel": {
"presets": [
"babel-preset-commitlint"
]
"start": "concurrently \"jest --watchAll\" \"tsc -w\"",
"test": "jest"
},
"engines": {
"node": ">=4"
Expand All @@ -57,19 +37,17 @@
"license": "MIT",
"devDependencies": {
"@commitlint/parse": "^8.0.0",
"@commitlint/test": "^8.0.0",
"@commitlint/utils": "^8.0.0",
"@marionebl/sander": "0.6.1",
"ava": "0.22.0",
"babel-cli": "6.26.0",
"babel-preset-commitlint": "^8.0.0",
"babel-register": "6.26.0",
"@types/jest": "24.0.13",
"@types/lodash": "^4.14.130",
"@types/resolve-from": "^5.0.1",
"concurrently": "3.5.1",
"cross-env": "5.1.1",
"execa": "0.9.0"
"jest": "24.8.0",
"ts-jest": "24.0.2",
"typescript": "3.4.5"
},
"dependencies": {
"babel-runtime": "6.26.0",
"@types/node": "^12.0.2",
"import-fresh": "^3.0.0",
"lodash": "4.17.11",
"resolve-from": "^5.0.0",
Expand Down
295 changes: 0 additions & 295 deletions @commitlint/resolve-extends/src/index.test.js

This file was deleted.

0 comments on commit 02c0c3f

Please sign in to comment.