-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: switch to typescript * fix: package scripts
- Loading branch information
Showing
11 changed files
with
222 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "react-router-breadcrumbs-hoc", | ||
"version": "3.2.4", | ||
"version": "3.2.5", | ||
"description": "small, flexible, higher order component for rendering breadcrumbs with react-router 4.x", | ||
"repository": "icd2k3/react-router-breadcrumbs-hoc", | ||
"main": "dist/cjs/index.js", | ||
|
@@ -12,15 +12,17 @@ | |
"build": "rollup -c", | ||
"test": "jest", | ||
"test-build": "sh ./scripts/test-build.sh", | ||
"types": "tsc -p types/react-router-breadcrumbs-hoc", | ||
"types": "yarn type-src && yarn type-descriptions", | ||
"type-src": "tsc -p tsconfig.json", | ||
"type-descriptions": "tsc -p types/react-router-breadcrumbs-hoc", | ||
"travis": "sh ./scripts/travis.sh", | ||
"lint": "eslint ./src/**" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS", | ||
"pre-commit": "yarn lint && yarn test", | ||
"pre-push": "yarn types && yarn lint && yarn test-build" | ||
"pre-commit": "yarn build && yarn lint && yarn test", | ||
"pre-push": "yarn build && yarn types && yarn lint && yarn test-build" | ||
} | ||
}, | ||
"author": "Justin Schrader ([email protected])", | ||
|
@@ -34,16 +36,17 @@ | |
"devDependencies": { | ||
"@babel/cli": "^7.8.3", | ||
"@babel/core": "^7.8.3", | ||
"@babel/plugin-transform-modules-commonjs": "^7.8.3", | ||
"@babel/preset-env": "^7.8.3", | ||
"@babel/preset-react": "^7.8.3", | ||
"@babel/preset-typescript": "^7.8.3", | ||
"@commitlint/cli": "^8.3.5", | ||
"@commitlint/config-conventional": "^8.3.4", | ||
"@rollup/plugin-commonjs": "^11.0.1", | ||
"@rollup/plugin-node-resolve": "^7.0.0", | ||
"@types/react": "^16.9.19", | ||
"@types/react-router-dom": "^5.1.3", | ||
"babel-core": "^7.0.0-0", | ||
"@typescript-eslint/eslint-plugin": "^2.17.0", | ||
"@typescript-eslint/parser": "^2.17.0", | ||
"babel-eslint": "^10.0.2", | ||
"babel-jest": "^25.1.0", | ||
"coveralls": "^3.0.9", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"compilerOptions": { | ||
"allowJs": true, | ||
"checkJs": true, | ||
"esModuleInterop": true, | ||
"jsx": "react", | ||
"lib": ["es2015", "dom"], | ||
"module": "commonjs", | ||
"moduleResolution": "node", | ||
"noEmit": true, | ||
"noImplicitAny": true, | ||
"noImplicitReturns": true, | ||
"noImplicitThis": true, | ||
"noUnusedLocals": true, | ||
"noUnusedParameters": true, | ||
"outDir": "./dist", | ||
"strictFunctionTypes": true, | ||
"strictNullChecks": true, | ||
"strictPropertyInitialization": true, | ||
"target": "es5" | ||
}, | ||
"files": [ | ||
"src/index.tsx" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.