@haensl/services
Version:
Assorted JavaScript services.
134 lines (133 loc) • 3.63 kB
JSON
{
"name": "@haensl/services",
"version": "1.5.3",
"description": "Assorted JavaScript services.",
"main": "dist/services.cjs.js",
"module": "dist/services.esm.js",
"unpkg": "dist/services.umd.js",
"scripts": {
"build": "npm run clean && NODE_ENV=production rollup -c",
"clean": "rimraf ./dist",
"coverage": "CI=true npm test -- --ci --coverage",
"lint": "ESLINT_USE_FLAT_CONFIG=true eslint 'src/**/*.js'",
"lint:ci": "ESLINT_USE_FLAT_CONFIG=true eslint --format junit -o test-results/eslint/results.xml 'src/**/*.js'",
"prepare": "if [ ${NODE_ENV} != 'production' ]; then husky; fi",
"tdd": "jest --runInBand --watch",
"test": "jest --runInBand",
"test:ci": "jest --runInBand --no-cache --ci --reporters='default' --reports='jest-junit'"
},
"repository": {
"type": "git",
"url": "git+https://github.com/haensl/services.git"
},
"keywords": [
"JavaScript",
"service",
"services",
"component",
"classname",
"class",
"error",
"response",
"platform",
"window",
"hasWindow",
"hasDocument",
"hasDocumentElement",
"hasSessionStorage",
"hasLocalStorage",
"scrollPosition",
"debounce",
"throttle",
"numbers",
"rand",
"randInt"
],
"author": {
"name": "HP Dietz",
"url": "https://hpdietz.com",
"email": "h.p.dietz@gmail.com"
},
"funding": "https://github.com/sponsors/haensl",
"license": "MIT",
"bugs": {
"url": "https://github.com/haensl/services/issues"
},
"homepage": "https://github.com/haensl/services#readme",
"jest": {
"roots": [
"<rootDir>/src"
],
"collectCoverageFrom": [
"src/**/*.{js,jsx,ts,tsx}",
"!src/**/*.d.ts",
"!<rootDir>/node_modules/"
],
"coveragePathIgnorePatterns": [
"/node_modules/",
"/__snapshots__/",
"<rootDir>/test.setup.js",
"<rootDir>/package.json",
"<rootDir>/package-lock.json"
],
"coverageReporters": [
"text"
],
"testMatch": [
"<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}",
"<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}"
],
"testPathIgnorePatterns": [
"/package-tests/"
],
"testEnvironment": "jsdom",
"transform": {
"^.+\\.(js|jsx|ts|tsx)$": "<rootDir>/node_modules/babel-jest"
},
"transformIgnorePatterns": [
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx|ts|tsx)$"
],
"modulePaths": []
},
"jest-junit": {
"outputDirectory": "test-results/jest",
"outputName": "results.xml",
"suitName": "@haensl/services unit tests"
},
"babel": {
"presets": [
"@babel/env"
]
},
"husky": {
"hooks": {
"pre-commit": "CI=true npm run lint && npm run test:ci"
}
},
"devDependencies": {
"@babel/core": "^7.12.13",
"@babel/preset-env": "^7.12.13",
"@haensl/eslint-config": "^2.0.0",
"@haensl/http": "^1.1.1",
"@haensl/mimetypes": "^1.1.0",
"@haensl/rollup-plugin-local-resolve": "^1.1.1",
"@rollup/plugin-babel": "^6.0.3",
"@rollup/plugin-commonjs": "^28.0.6",
"@rollup/plugin-node-resolve": "^16.0.1",
"@rollup/plugin-terser": "^0.4.2",
"babel-eslint": "^10.1.0",
"babel-jest": "^30.0.4",
"eslint": "^9.31.0",
"eslint-formatter-junit": "^8.40.0",
"eslint-plugin-react": "^7.37.5",
"husky": "^9.0.11",
"jest": "^30.0.4",
"jest-environment-jsdom": "^30.0.4",
"jest-environment-node": "^30.0.4",
"jest-junit": "^16.0.0",
"node-fetch": "^2.7.0",
"rimraf": "^6.0.1",
"rollup": "^4.4.0",
"rollup-plugin-peer-deps-external": "^2.2.4"
}
}