|
{ |
|
"version": "1.0.0", |
|
"license": "MIT", |
|
"main": "dist/index.js", |
|
"typings": "dist/index.d.ts", |
|
"files": [ |
|
"dist", |
|
"src" |
|
], |
|
"engines": { |
|
"node": ">=10" |
|
}, |
|
"scripts": { |
|
"start": "tsdx watch", |
|
"build": "tsdx build", |
|
"test": "tsdx test --passWithNoTests && yarn size", |
|
"lint": "tsdx lint", |
|
"docz:dev": "docz dev", |
|
"docz:build": "docz build", |
|
"docz:serve": "docz build && docz serve", |
|
"size": "size-limit", |
|
"release:first": "standard-version --first-release", |
|
"release": "standard-version", |
|
"release:publish": "git push --follow-tags origin develop && yarn publish --access=public", |
|
"release:docs": "./docs-deploy.sh", |
|
"prepublish": "yarn build && pkg-ok", |
|
"test:ci": "tsdx test --passWithNoTests --ci --coverage --maxWorkers=2 && yarn size" |
|
}, |
|
"peerDependencies": { |
|
"react": ">=16" |
|
}, |
|
"name": "[react-lib]", |
|
"author": "CyriacBr", |
|
"module": "dist/[react-lib].esm.js", |
|
"keywords": [ |
|
"react", |
|
"typescript", |
|
"split", |
|
"text", |
|
"wrap", |
|
"animation", |
|
"framer", |
|
"motion" |
|
], |
|
"homepage": "https://github.com/CyriacBr/[react-lib]", |
|
"repository": { |
|
"url": "https://github.com/CyriacBr/[react-lib].git" |
|
}, |
|
"devDependencies": { |
|
"@commitlint/cli": "^8.3.4", |
|
"@commitlint/config-conventional": "^8.3.4", |
|
"@size-limit/preset-small-lib": "^4.5.0", |
|
"@types/enzyme": "^3.10.5", |
|
"@types/enzyme-adapter-react-16": "^1.0.6", |
|
"@types/react": "^16.9.35", |
|
"@types/react-dom": "^16.9.8", |
|
"@typescript-eslint/eslint-plugin": "^2.16.0", |
|
"@typescript-eslint/parser": "^2.16.0", |
|
"docz": "^2.3.1", |
|
"enzyme": "^3.11.0", |
|
"enzyme-adapter-react-16": "^1.15.2", |
|
"eslint": "^6.8.0", |
|
"eslint-config-prettier": "^6.9.0", |
|
"eslint-plugin-import": "^2.20.0", |
|
"eslint-plugin-jest": "^23.6.0", |
|
"eslint-plugin-jest-formatting": "^1.2.0", |
|
"eslint-plugin-prettier": "^3.1.2", |
|
"eslint-plugin-react": "^7.20.0", |
|
"husky": "^4.2.5", |
|
"lint-staged": "^10.2.10", |
|
"pkg-ok": "^2.3.1", |
|
"react": "^16.13.1", |
|
"react-dom": "^16.13.1", |
|
"size-limit": "^4.5.0", |
|
"standard-version": "^8.0.0", |
|
"tsdx": "^0.13.2", |
|
"tslib": "^2.0.0", |
|
"typescript": "^3.9.3" |
|
}, |
|
"resolutions": { |
|
"react-docgen-typescript": "latest", |
|
"gatsby": "2.23.2" |
|
}, |
|
"husky": { |
|
"hooks": { |
|
"pre-commit": "lint-staged", |
|
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS", |
|
"pre-push": "git diff HEAD --quiet && yarn test" |
|
} |
|
}, |
|
"commitlint": { |
|
"extends": [ |
|
"@commitlint/config-conventional" |
|
] |
|
}, |
|
"lint-staged": { |
|
"**/*.{js,jsx,ts,tsx}": [ |
|
"eslint --fix" |
|
] |
|
}, |
|
"eslintConfig": { |
|
"env": { |
|
"browser": true, |
|
"es6": true, |
|
"node": true, |
|
"jest/globals": true |
|
}, |
|
"extends": [ |
|
"eslint:recommended", |
|
"plugin:prettier/recommended", |
|
"plugin:react/recommended", |
|
"plugin:jest-formatting/recommended" |
|
], |
|
"ignorePatterns": [ |
|
"node_modules/", |
|
"docs/" |
|
], |
|
"globals": { |
|
"Atomics": "readonly", |
|
"SharedArrayBuffer": "readonly" |
|
}, |
|
"parser": "@typescript-eslint/parser", |
|
"parserOptions": { |
|
"ecmaFeatures": { |
|
"jsx": true |
|
}, |
|
"ecmaVersion": 2018, |
|
"sourceType": "module" |
|
}, |
|
"plugins": [ |
|
"@typescript-eslint", |
|
"jest" |
|
], |
|
"rules": { |
|
"no-unused-vars": "off", |
|
"react/prop-types": "off" |
|
} |
|
}, |
|
"prettier": { |
|
"printWidth": 80, |
|
"semi": true, |
|
"singleQuote": true, |
|
"trailingComma": "es5" |
|
}, |
|
"jest": { |
|
"setupFilesAfterEnv": [ |
|
"<rootDir>test/setup.ts" |
|
] |
|
}, |
|
"size-limit": [ |
|
{ |
|
"limit": "1.5 KB", |
|
"path": "dist/[react-lib].cjs.production.min.js" |
|
} |
|
] |
|
} |