UNPKG

ts-functional-pipe

Version:

Heavily overloaded functions (pipe/compose) for type-safe function composition in TypeScript

146 lines (145 loc) 4.21 kB
{ "name": "ts-functional-pipe", "version": "3.1.2", "description": "Heavily overloaded functions (pipe/compose) for type-safe function composition in TypeScript", "keywords": [ "typescript", "javascript", "pipe", "type-safe", "compose", "function-composition", "point-free", "composed-functions" ], "sideEffects": false, "main": "dist/ts-functional-pipe.umd.js", "module": "dist/ts-functional-pipe.es5.js", "typings": "dist/types/ts-functional-pipe.d.ts", "files": [ "dist/**/*" ], "author": "Chris Sperry <christophermartinsperry@gmail.com>", "repository": { "type": "git", "url": "https://github.com/biggyspender/ts-functional-pipe" }, "license": "MIT", "engines": { "node": ">=6.0.0" }, "scripts": { "lint": "tslint --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'", "prebuild": "rimraf dist", "build": "tsc --module commonjs && rollup -c rollup.config.ts", "build-docs": "typedoc", "build-docs:watch": "typedoc --watch", "serve:docs": "serve -l 5000 docs", "start": "rollup -c rollup.config.ts -w", "test": "jest --coverage", "test:watch": "jest --coverage --watch", "test:prod": "npm run lint && npm run test -- --no-cache", "deploy-docs": "ts-node tools/gh-pages-publish", "report-coverage": "cat ./coverage/lcov.info | coveralls", "commit": "git-cz", "semantic-release": "semantic-release", "semantic-release-prepare": "ts-node tools/semantic-release-prepare", "generate-functions:pipe": "ts-node tools/codeGeneration pipe pipe 64 > src/pipe.ts", "generate-functions:pipeInto": "ts-node tools/codeGeneration pipeInto pipeInto 64 > src/pipeInto.ts", "generate-functions:compose": "ts-node tools/codeGeneration compose compose 64 > src/compose.ts", "generate-functions": "npm run generate-functions:pipe && npm run generate-functions:compose && npm run generate-functions:pipeInto && npm run lint" }, "lint-staged": { "{src,test}/**/*.ts": [ "prettier --write" ] }, "config": { "commitizen": { "path": "node_modules/cz-conventional-changelog" } }, "jest": { "transform": { ".(ts|tsx)": "ts-jest" }, "testEnvironment": "node", "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx)$", "moduleFileExtensions": [ "ts", "tsx", "js" ], "coveragePathIgnorePatterns": [ "/node_modules/", "/test/" ], "coverageThreshold": { "global": { "branches": 90, "functions": 95, "lines": 95, "statements": 95 } }, "collectCoverageFrom": [ "src/*.{js,ts}" ] }, "prettier": { "semi": false, "singleQuote": true }, "commitlint": { "extends": [ "@commitlint/config-conventional" ] }, "devDependencies": { "@commitlint/cli": "^16.2.3", "@commitlint/config-conventional": "^16.2.1", "@rollup/plugin-commonjs": "^17.1.0", "@rollup/plugin-json": "4.1.0", "@rollup/plugin-node-resolve": "^11.2.0", "@semantic-release/changelog": "^6.0.1", "@semantic-release/git": "^10.0.1", "@types/jest": "^26.0.20", "@types/node": "^14.14.31", "colors": "^1.4.0", "commitizen": "^4.2.4", "coveralls": "^3.1.0", "cross-env": "^7.0.3", "cz-conventional-changelog": "^3.3.0", "husky": "^4.3.8", "jest": "^26.6.3", "jest-config": "^26.6.3", "lint-staged": "^10.5.4", "lodash.camelcase": "^4.3.0", "prettier": "^2.2.1", "prompt": "^1.1.0", "replace-in-file": "^6.2.0", "rimraf": "^3.0.2", "rollup": "^2.39.0", "rollup-plugin-sourcemaps": "^0.6.3", "rollup-plugin-typescript2": "^0.30.0", "semantic-release": "^19.0.2", "serve": "^11.3.2", "shelljs": "^0.8.4", "ts-jest": "^26.5.1", "ts-node": "^9.1.1", "tslint": "^6.1.3", "tslint-config-prettier": "^1.18.0", "tslint-config-standard": "^9.0.0", "typedoc": "^0.22.13", "typescript": "^4.2.3" }, "dependencies": { "tslib": "^2.3.0" }, "husky": { "hooks": { "pre-commit": "lint-staged", "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" } } }