@eeacms/countup
Version:
React component and hook to animate counting up or down to a number
158 lines (157 loc) • 3.69 kB
JSON
{
"name": "@eeacms/countup",
"version": "2.0.7",
"description": "React component and hook to animate counting up or down to a number",
"main": "./lib/index.js",
"module": "./lib/index.module.js",
"source": "./src/index.js",
"types": "./lib/index.d.js",
"author": "European Environment Agency: IDM2 A-Team",
"license": "MIT",
"files": [
"lib"
],
"lint-staged": {
"src/**/*.{js,jsx,ts,tsx,json}": [
"make lint-fix",
"make prettier-fix"
],
"src/**/*.{jsx}": [
"make i18n"
],
"theme/**/*.{css,less}": [
"make stylelint-fix"
],
"src/**/*.{css,less}": [
"make stylelint-fix"
],
"theme/**/*.overrides": [
"make stylelint-fix"
],
"src/**/*.overrides": [
"make stylelint-fix"
]
},
"scripts": {
"start": "node scripts/serve.js",
"build": " node scripts/build.js",
"prepublish": "yarn build",
"prepare": "husky install",
"release": "release-it",
"release-major-beta": "release-it major --preRelease=beta",
"release-beta": "release-it --preRelease=beta",
"bootstrap": "npm install -g ejs; npm link ejs; node bootstrap",
"test": "make test",
"test-watch": "jest --watch",
"test:fix": "make test-update",
"pre-commit": "yarn stylelint:fix && yarn prettier:fix && yarn lint:fix",
"stylelint": "make stylelint",
"stylelint:overrides": "make stylelint-overrides",
"stylelint:fix": "make stylelint-fix",
"prettier": "make prettier",
"prettier:fix": "make prettier-fix",
"lint": "make lint",
"lint:fix": "make lint-fix",
"i18n": "make i18n",
"cypress:run": "make cypress-run",
"cypress:open": "make cypress-open"
},
"repository": {
"type": "git",
"url": "git+https://github.com/eea/countup.git"
},
"keywords": [
"react",
"reactjs",
"animate-numerical-value",
"animations",
"count-up",
"countup",
"react-count-up",
"react-countup",
"countdown",
"count-down",
"counting",
"hooks",
"eeacms"
],
"prettier": {
"trailingComma": "all",
"singleQuote": true,
"overrides": [
{
"files": "*.overrides",
"options": {
"parser": "less"
}
}
]
},
"stylelint": {
"extends": [
"stylelint-config-idiomatic-order"
],
"plugins": [
"stylelint-prettier"
],
"overrides": [
{
"files": [
"**/*.scss"
],
"customSyntax": "postcss-scss"
},
{
"files": [
"**/*.less"
],
"customSyntax": "postcss-less"
},
{
"files": [
"**/*.overrides"
],
"customSyntax": "postcss-less"
}
],
"rules": {
"prettier/prettier": true,
"rule-empty-line-before": [
"always-multi-line",
{
"except": [
"first-nested"
],
"ignore": [
"after-comment"
]
}
]
},
"ignoreFiles": "theme/themes/default/**/*.overrides"
},
"bugs": {
"url": "https://github.com/eea/countup/issues"
},
"homepage": "https://github.com/eea/countup#readme",
"dependencies": {
"use-elapsed-time": "3.0.2"
},
"peerDependencies": {
"react": ">=16.8.0"
},
"devDependencies": {
"@testing-library/jest-dom": "5.14.1",
"@testing-library/react": "12.0.0",
"@types/jest": "27.0.1",
"@types/node": "16.7.5",
"@types/react": "17.0.19",
"@types/react-dom": "17.0.9",
"codecov": "3.8.3",
"esbuild": "0.12.24",
"jest": "27.1.0",
"prettier": "2.3.2",
"react": "17.0.2",
"react-dom": "17.0.2"
}
}