UNPKG

basic-math-utils

Version:

Basic math utilities for doing some basic math operations

184 lines (183 loc) 4.91 kB
{ "name": "basic-math-utils", "version": "0.3.4", "description": "Basic math utilities for doing some basic math operations", "main": "lib/index.js", "jsnext:main": "dist/basic-math-utils.es.js", "module": "dist/basic-math-utils.es.js", "browserslist": [ "IE >= 9", "last 2 versions" ], "scripts": { "prebuild": "npm run build:clean && npm run test", "build": "npm run build:lib && npm run build:dist", "prebuild:lib": "rimraf lib/*", "build:lib": "BABEL_ENV=production babel --out-dir lib src", "prebuild:dist": "rimraf dist/*", "build:clean": "rimraf lib/* dist/*", "build:dist": "rollup -c && rollup -c --environment PRODUCTION", "build:readme": "toctoc README.md -w", "build:dist:watch": "rollup -c --watch", "build:lib:watch": "npm run build:lib -- --watch", "test": "npm run lint && npm run test:web", "test:web": "NODE_ENV=test TEST_REPORT_PATH=reports jest --coverage", "test:clean": "rimraf ./coverage", "test:watch": "npm run test -- --watch", "ci-publish": "ci-publish", "lint": "eslint src", "prepublish": "npm run build", "lint-staged": "lint-staged", "rollup-umd": "node ./internal/rollup-umd --" }, "repository": { "type": "git", "url": "ssh://git@module.kopaxgroup.com:20024/dev-tools/basic-math-utils.git" }, "bugs": { "url": "https://module.kopaxgroup.com/dev-tools/basic-math-utils/issues" }, "files": [ "LICENSE.md", "dist", "lib", "src" ], "keywords": [ "math", "utils", "yeutech" ], "authors": [ "Dimitri Kopriwa <dimitri.kopriwa@yeutech.com>" ], "license": "MIT", "eslintConfig": { "parser": "babel-eslint", "extends": "airbnb-base", "env": { "browser": true, "node": true, "jest": true, "es6": true }, "parserOptions": { "ecmaVersion": 6, "sourceType": "module" }, "rules": { "arrow-parens": [ "error", "always" ], "arrow-body-style": [ 2, "as-needed" ], "comma-dangle": [ 2, "always-multiline" ], "import/imports-first": 0, "import/newline-after-import": 0, "import/no-dynamic-require": 0, "import/no-extraneous-dependencies": 0, "import/no-named-as-default": 0, "import/no-unresolved": 2, "import/prefer-default-export": 0, "indent": [ 2, 2, { "SwitchCase": 1 } ], "max-len": 0, "newline-per-chained-call": 0, "no-confusing-arrow": 0, "no-console": 1, "no-use-before-define": 0, "prefer-template": 2, "class-methods-use-this": 0, "require-yield": 0 } }, "devDependencies": { "babel-cli": "^6.26.0", "babel-core": "^6.26.0", "babel-eslint": "^7.2.3", "babel-jest": "^21.0.0", "babel-loader": "^7.1.2", "babel-plugin-add-module-exports": "^0.2.1", "babel-plugin-array-includes": "^2.0.3", "babel-plugin-dynamic-import-node": "^1.0.2", "babel-plugin-external-helpers": "^6.22.0", "babel-plugin-transform-class-properties": "^6.24.1", "babel-plugin-transform-es2015-modules-commonjs": "^6.26.0", "babel-plugin-transform-object-rest-spread": "^6.26.0", "babel-preset-env": "^1.6.0", "babel-preset-es2015": "^6.24.1", "babel-preset-stage-2": "^6.24.1", "babel-preset-stage-3": "^6.24.1", "ci-publish": "^1.3.1", "eslint": "^4.6.1", "eslint-config-airbnb-base": "^11.2.0", "eslint-plugin-import": "^2.7.0", "jest-cli": "^21.0.1", "jest-sonar-reporter": "^1.3.0", "lint-staged": "^4.0.0", "pre-commit": "^1.2.2", "rimraf": "^2.6.1", "rollup": "^0.49.3", "rollup-plugin-babel": "^3.0.2", "rollup-plugin-cleanup": "^1.0.1", "rollup-plugin-commonjs": "^8.2.1", "rollup-plugin-inject": "^2.0.0", "rollup-plugin-json": "^2.3.0", "rollup-plugin-node-resolve": "^3.0.0", "rollup-plugin-replace": "^1.1.1", "rollup-plugin-uglify": "^2.0.1", "rollup-plugin-visualizer": "^0.3.1", "rollup-watch": "^4.3.1", "sinon": "^2.3.2", "toctoc": "^0.2.3" }, "jest": { "roots": [ "<rootDir>/src/" ], "testPathIgnorePatterns": [ "<rootDir>/dist/", "<rootDir>/lib/" ], "collectCoverageFrom": [ "src/**/*.{js,jsx}", "!src/**/*.test.{js,jsx}" ], "coverageThreshold": { "global": { "statements": 100, "branches": 100, "functions": 100, "lines": 100 } }, "moduleDirectories": [ "node_modules", "src" ], "testRegex": "tests/.*\\.test\\.js$", "testResultsProcessor": "jest-sonar-reporter" }, "lint-staged": { "*.js": [ "eslint --fix", "git add" ] }, "pre-commit": [ "build:readme", "lint-staged" ], "dependencies": {} }