UNPKG

react-magic-form

Version:

Boilerplate for Resact with Typescript with rollup.js (not webpack)

149 lines (148 loc) 5.39 kB
{ "name": "react-magic-form", "version": "0.9.7", "description": "Boilerplate for Resact with Typescript with rollup.js (not webpack)", "main": "dist/index.js", "module": "dist/index.esm.js", "umd:main": "dist/index.umd.production.min.js", "unpkg": "dist/index.umd.production.min.js", "jsdelivr": "dist/index.umd.production.min.js", "jsnext:main": "dist/index.esm.js", "source": "src/MagicFormGenerator.tsx", "types": "dist/index.d.ts", "sideEffects": true, "files": [ "dist" ], "exports": { ".": { "import": "./dist/index.esm.js", "require": "./dist/index.js" }, "./dist/index.ie11": { "import": "./dist/index.ie11.js", "require": "./dist/index.ie11.js" } }, "scripts": { "bundlesize": "npm run build:modern && bundlesize", "check:package": "package-check", "cp:dts": "copyfiles -f ./src/types/*.d.ts dist && rimraf dist/types/*.test.d.ts", "lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\"", "lint:fix": "eslint \"src/**/*.{js,jsx,ts,tsx}\" --fix", "lint:types": "tsc --noEmit", "clean": "rimraf dist", "build": "node scripts/rollup/writeCjsEntryFile.js && npm run build:modern && npm run build:ie11 && npm run cp:dts", "build:modern": "rollup -c ./scripts/rollup/rollup.config.js", "build:esm": "rollup -c ./scripts/rollup/rollup.esm.config.js", "build:ie11": "rollup -c ./scripts/rollup/rollup.ie11.config.js", "pre-commit": "lint-staged", "dev": "npm run storybook", "coverage": "jest --coverage --coverageReporters=text-lcov | coveralls", "test": "jest --config ./scripts/jest/jest.config.js", "test:coverage": "npm run test -- --coverage", "test:watch": "npm run test -- --onlyChanged --watch", "test:web": "TEST_ENV=web npm run test", "test:server": "TEST_ENV=server npm run test", "cypress": "cypress run", "cypress:open": "cypress open", "cypress:parallel": "cypress-parallel -s cypress -t 4 -d -a", "changeset": "changeset", "release": "changeset publish --tag beta --access public ", "start:app": "npm run build:esm && npm link && npm --cwd node_modules/react link && npm --cwd ./app link react react-magic-form && npm --cwd ./app && npm --cwd ./app run start" }, "keywords": [ "rollup.js", "react", "typescript", "library", "npm" ], "repository": { "type": "git", "url": "git+https://github.com/StefanoGagliardi/react-library-rollup.git" }, "bugs": { "url": "https://github.com/StefanoGagliardi/react-library-rollup/issues" }, "homepage": "https://gagliardistefano.it/react-form/index.html", "author": "Stefano Gagliardi <stefano.gagliardi@sitisrl.it>", "license": "MIT", "devDependencies": { "@babel/core": "^7.12.8", "@babel/plugin-transform-runtime": "^7.10.4", "@changesets/changelog-github": "^0.2.6", "@changesets/cli": "^2.11.2", "@rollup/plugin-commonjs": "^16.0.0", "@rollup/plugin-node-resolve": "^10.0.0", "@rollup/plugin-replace": "^2.3.4", "@skypack/package-check": "^0.2.2", "@storybook/react": "^6.1.2", "@testing-library/jest-dom": "^5.11.6", "@testing-library/jest-native": "^3.4.3", "@testing-library/react": "^11.2.2", "@testing-library/react-hooks": "^3.3.0", "@types/classnames": "^2.2.11", "@types/enzyme": "^3.10.8", "@types/enzyme-adapter-react-16": "^1.0.6", "@types/ignore-styles": "^5.0.0", "@types/jest": "^26.0.19", "@types/react": "^17.0.0", "@types/react-dom": "^17.0.0", "@types/react-test-renderer": "^17.0.0", "@typescript-eslint/eslint-plugin": "^4.8.2", "@typescript-eslint/parser": "^4.8.2", "babel-jest": "^26.6.3", "bundlesize": "^0.18.0", "classnames": "^2.2.6", "copyfiles": "^2.3.0", "core-js": "^3.7.0", "cypress": "6.0.0", "cypress-parallel": "^0.1.8", "enzyme": "^3.11.0", "enzyme-adapter-react-16": "^1.15.5", "enzyme-to-json": "^3.6.1", "eslint": "^7.14.0", "eslint-config-prettier": "^6.15.0", "eslint-plugin-cypress": "^2.11.1", "eslint-plugin-prettier": "^3.1.4", "eslint-plugin-react": "^7.21.5", "eslint-plugin-react-hooks": "^4.2.0", "husky": "^4.3.0", "jest": "^26.6.3", "jest-performance-testing": "^1.0.0", "lint-staged": "^10.5.3", "node-sass": "^5.0.0", "prettier": "^2.2.0", "raf": "^3.4.1", "react": "^16.14.0", "react-dom": "^16.14.0", "react-hook-form": "^6.13.1", "react-performance-testing": "^1.2.0", "react-test-renderer": "^17.0.1", "rimraf": "^3.0.2", "rollup": "^2.33.3", "rollup-plugin-copy": "^3.3.0", "rollup-plugin-peer-deps-external": "^2.2.4", "rollup-plugin-postcss": "^4.0.0", "rollup-plugin-sourcemaps": "^0.6.2", "rollup-plugin-strip": "^1.2.2", "rollup-plugin-terser": "^7.0.2", "rollup-plugin-typescript2": "^0.29.0", "sass-loader": "^10.1.0", "ts-jest": "^26.4.4", "typescript": "^4.1.2", "jest-css-modules-transform": "^4.1.0", "postcss": "^8.2.1" }, "bundlesize": [ { "path": "./dist/index.cjs.production.min.js", "maxSize": "60.5 kB" } ], "peerDependencies": { "react": "^16.8.0 || ^17", "react-hook-form": "<= ^6.13.1" } }