153 lines
3.8 KiB
JSON
153 lines
3.8 KiB
JSON
{
|
|
"name": "rifm",
|
|
"version": "0.12.1",
|
|
"description": "Tiny react input formatter and mask",
|
|
"author": "istarkov",
|
|
"license": "MIT",
|
|
"main": "dist/rifm.cjs.js",
|
|
"module": "dist/rifm.esm.js",
|
|
"files": [
|
|
"dist",
|
|
"src"
|
|
],
|
|
"scripts": {
|
|
"build:code": "rollup -c",
|
|
"build:flow": "echo \"// @flow\n\nexport * from '../src'\" > dist/rifm.cjs.js.flow",
|
|
"build": "rimraf dist && yarn build:code && yarn build:flow",
|
|
"dev": "NODE_ICU_DATA=`yarn -s run node-full-icu-path` next dev",
|
|
"jest": "NODE_ICU_DATA=`yarn -s run node-full-icu-path` jest",
|
|
"test": "eslint --ignore-path .gitignore ./ && flow check && yarn test:ts && yarn jest",
|
|
"test:ts": "tsc",
|
|
"copy-sandbox-examples": "mkdir -p ./out/codesandboxes && find ./pages -type d -mindepth 1 -maxdepth 1 -exec cp -R \\{\\} ./out/codesandboxes \\;",
|
|
"export": "rimraf ./out && next build && NODE_ICU_DATA=`yarn -s run node-full-icu-path` next export && yarn copy-sandbox-examples",
|
|
"deploy": "yarn export && gh-pages -d out",
|
|
"prepublishOnly": "yarn test && yarn build"
|
|
},
|
|
"babel": {
|
|
"presets": [
|
|
"next/babel",
|
|
"@babel/flow",
|
|
"@babel/react"
|
|
]
|
|
},
|
|
"husky": {
|
|
"hooks": {
|
|
"pre-commit": "lint-staged"
|
|
}
|
|
},
|
|
"lint-staged": {
|
|
"*.{js,md,ts,tsx}": [
|
|
"prettier --write"
|
|
]
|
|
},
|
|
"prettier": {
|
|
"singleQuote": true,
|
|
"trailingComma": "es5",
|
|
"overrides": [
|
|
{
|
|
"files": "*.test.js",
|
|
"options": {
|
|
"printWidth": 120
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"eslintConfig": {
|
|
"env": {
|
|
"node": 1,
|
|
"browser": 1,
|
|
"es6": 1,
|
|
"jest/globals": true
|
|
},
|
|
"parser": "babel-eslint",
|
|
"plugins": [
|
|
"react",
|
|
"flowtype",
|
|
"jsx-a11y",
|
|
"jest"
|
|
],
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:react/recommended",
|
|
"plugin:flowtype/recommended",
|
|
"plugin:jsx-a11y/recommended"
|
|
],
|
|
"rules": {
|
|
"no-console": [
|
|
"error",
|
|
{
|
|
"allow": [
|
|
"warn",
|
|
"error",
|
|
"info"
|
|
]
|
|
}
|
|
],
|
|
"react/prop-types": "off"
|
|
},
|
|
"overrides": [
|
|
{
|
|
"files": [
|
|
"{src,tests}/**/*.ts*"
|
|
],
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": {
|
|
"ecmaVersion": 6,
|
|
"sourceType": "module"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.9.6",
|
|
"@babel/preset-env": "^7.9.6",
|
|
"@babel/preset-flow": "^7.9.0",
|
|
"@babel/preset-react": "^7.9.4",
|
|
"@material-ui/core": "^4.0.0",
|
|
"@material-ui/styles": "^4.0.0",
|
|
"@rollup/plugin-babel": "^5.0.2",
|
|
"@rollup/plugin-replace": "^2.3.2",
|
|
"@typescript-eslint/parser": "^1.9.0",
|
|
"alea": "^0.0.9",
|
|
"babel-core": "^7.0.0-bridge.0",
|
|
"babel-eslint": "^10.1.0",
|
|
"babel-jest": "^26.0.1",
|
|
"brotli-size": "^4.0.0",
|
|
"emotion": "^10.0.17",
|
|
"eslint": "^7.1.0",
|
|
"eslint-plugin-flowtype": "^5.1.0",
|
|
"eslint-plugin-jest": "^23.13.1",
|
|
"eslint-plugin-jsx-a11y": "^6.2.3",
|
|
"eslint-plugin-react": "^7.20.0",
|
|
"flow-bin": "^0.109.0",
|
|
"full-icu": "^1.3.0",
|
|
"gh-pages": "^1.2.0",
|
|
"gzip-size": "^5.1.1",
|
|
"husky": "^4.2.1",
|
|
"jest": "^26.0.1",
|
|
"libphonenumber-js": "^1.2.15",
|
|
"lint-staged": "^10.0.7",
|
|
"next": "^9.4.2",
|
|
"prettier": "^1.19.1",
|
|
"react": "^16.8.2",
|
|
"react-dom": "^16.8.2",
|
|
"react-test-renderer": "^16.8.2",
|
|
"rimraf": "^2.6.1",
|
|
"rollup": "^2.10.8",
|
|
"rollup-plugin-terser": "^6.0.1",
|
|
"typescript": "^3.4.5"
|
|
},
|
|
"peerDependencies": {
|
|
"react": ">=16.8"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/istarkov/rifm.git"
|
|
},
|
|
"resolutions": {
|
|
"react": "~16.8.0",
|
|
"react-dom": "~16.8.0"
|
|
},
|
|
"typings": "./src/index.d.ts"
|
|
}
|