@jedmao/location
Version:
A Location class that implements the Location interface of the Web API.
122 lines (121 loc) • 2.93 kB
JSON
{
"name": "@jedmao/location",
"version": "3.0.0",
"description": "A Location class that implements the Location interface of the Web API.",
"main": "dist/LocationMock.js",
"module": "dist/esm/LocationMock.js",
"types": "dist/LocationMock.d.ts",
"files": [
"dist/LocationMock*",
"dist/esm/LocationMock.js"
],
"scripts": {
"clean": "rimraf coverage dist *.log* location-*",
"lint": "eslint src/**/*.ts",
"prebuild": "rimraf dist",
"build": "npm run build:cjs && npm run build:esm",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build:esm": "tsc -p tsconfig.esm.json",
"precover": "rimraf coverage",
"cover": "jest --coverage",
"pretest": "npm run lint",
"test": "jest --watch",
"commit": "git-cz"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "tsc --noEmit && npm run cover"
}
},
"lint-staged": {
"*.{ts,tsx}": [
"eslint --fix"
],
"*.{json,md}": [
"prettier --write"
]
},
"prettier": {
"arrowParens": "avoid",
"semi": false,
"singleQuote": true,
"trailingComma": "all"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"release": {
"extends": "@jedmao/semantic-release-npm-github-config",
"branch": "master"
},
"jest": {
"preset": "ts-jest",
"testEnvironment": "node",
"verbose": true,
"coverageDirectory": "coverage",
"coverageReporters": [
"lcov",
"text"
],
"coverageThreshold": {
"global": {
"branches": 100,
"functions": 100,
"lines": 100,
"statements": 100
}
},
"globals": {
"window": {}
},
"watchPlugins": [
"jest-watch-typeahead/filename",
"jest-watch-typeahead/testname"
]
},
"repository": "https://github.com/jedmao/location.git",
"keywords": [
"location",
"mock",
"web",
"api",
"typescript"
],
"author": "Jed Mao <jedmao@outlook.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/jedmao/location/issues"
},
"homepage": "https://github.com/jedmao/location#readme",
"devDependencies": {
"@commitlint/cli": "^8",
"@commitlint/config-conventional": "^8",
"@jedmao/semantic-release-npm-github-config": "^1",
"@jedmao/tsconfig": "^0.3",
"@types/jest": "^25",
"@types/node": "^13",
"@typescript-eslint/eslint-plugin": "^2",
"@typescript-eslint/parser": "^2",
"commitizen": "^4",
"cz-conventional-changelog": "^3",
"eslint": "^6",
"eslint-config-prettier": "^6",
"husky": "^4",
"jest": "^25",
"jest-watch-typeahead": "^0.4",
"lint-staged": "^10",
"prettier": "^1",
"rimraf": "^3",
"semantic-release": "^17",
"ts-jest": "^25",
"typescript": "^3.8"
}
}