UNPKG

form-container

Version:

Lightweight React form container with validation (written in TypeScript)

96 lines 2.32 kB
{ "name": "form-container", "version": "0.2.8", "engines": { "node": ">=6.0.0" }, "description": "Lightweight React form container with validation (written in TypeScript)", "keywords": [ "react", "hoc", "form", "container", "validation", "typescript" ], "main": "dist/index.js", "types": "dist/index.d.ts", "scripts": { "test": "jest --env=jsdom", "test:coverage": "npm run test -- --coverage", "test:dev": "npm run test -- --watch", "clean": "shx rm -rf _bundles lib lib-esm", "build": "rimraf dist && webpack --hide-modules && rimraf dist/ts-build", "precommit": "pretty-quick --staged", "release:next": "npm publish --tag next" }, "repository": { "type": "git", "url": "https://github.com/vitkon/form-container.git" }, "license": "MIT", "dependencies": { "es6-error": "^4.1.1", "hoist-non-react-statics": "^2.3.1", "react": "16.5.2" }, "devDependencies": { "@types/enzyme-adapter-react-16": "^1.0.1", "@types/jest": "^22.0.0", "@types/react": "^16.0.22", "@types/validator": "^9.4.0", "compression-webpack-plugin": "^1.1.11", "dts-bundle": "^0.7.3", "enzyme": "^3.2.0", "enzyme-adapter-react-16": "^1.1.0", "husky": "^0.14.3", "jest": "^22.0.0", "prettier": "^1.11.1", "pretty-quick": "^1.4.1", "raf": "^3.4.0", "react-dom": "^16.2.0", "rimraf": "^2.6.2", "ts-jest": "^22.0.0", "ts-loader": "^3.1.1", "tslint": "^5.8.0", "typescript": "^2.6.1", "webpack": "^3.8.1" }, "peerDependencies": { "react": "^15.0.0-0 || ^16.0.0-0" }, "jest": { "transform": { "^.+\\.tsx?$": "./node_modules/ts-jest/preprocessor.js" }, "testMatch": [ "**/src/**/?(*.)(spec|test).ts?(x)" ], "moduleFileExtensions": [ "ts", "tsx", "js", "jsx", "json" ], "collectCoverageFrom": [ "**/src/*.ts*", "!**/src/main.ts", "!**/src/interfaces.ts", "!**/src/*.d.ts", "!**/examples/**" ], "coverageThreshold": { "global": { "branches": 0, "functions": 0, "lines": 0, "statements": 0 } }, "setupFiles": [ "raf/polyfill" ], "setupTestFrameworkScriptFile": "./setupTests.ts" } }