UNPKG

speech-recognition-mock

Version:
105 lines (104 loc) 3.13 kB
{ "name": "speech-recognition-mock", "version": "0.0.9", "description": "Mock SpeechRecognition for headless unit tests", "keywords": [ "mock", "headless", "speech", "speech-to-text", "text", "recognition", "speech-recognition", "speechRecognition" ], "main": "dist/speech-recognition-mock.js", "module": "dist/speech-recognition-mock.js", "typings": "dist/types/speech-recognition-mock.d.ts", "files": [ "dist" ], "author": "Shy <puemos@gmail.com>", "repository": { "type": "git", "url": "https://github.com/puemos/speech-recognition-mock.git" }, "license": "MIT", "engines": { "node": ">=6.0.0" }, "scripts": { "precommit": "lint-staged", "prepush": "npm run test:prod && npm run build", "lint": "tslint -t codeFrame 'src/**/*.ts' 'test/**/*.ts'", "prebuild": "rimraf dist", "build": "tsc && webpack && webpack --env.prod && rimraf compiled", "start": "tsc -w & webpack -w", "gen-docs": "typedoc --out dist/docs --target es6 --theme minimal src", "test": "jest", "test:watch": "jest --watch", "test:prod": "npm run lint && npm run test -- --coverage --no-cache", "deploy-docs": "ts-node tools/gh-pages-publish", "report-coverage": "cat ./coverage/lcov.info | coveralls" }, "lint-staged": { "{src,test}/**/*.ts": [ "prettier --write --no-semi --single-quote", "git add" ] }, "jest": { "setupFiles": [ "./test/setup/setup.js" ], "transform": { ".(ts|tsx)": "<rootDir>/node_modules/ts-jest/preprocessor.js" }, "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$", "moduleFileExtensions": [ "ts", "tsx", "js" ], "coveragePathIgnorePatterns": [ "/node_modules/", "/test/" ], "coverageThreshold": { "global": { "branches": 90, "functions": 95, "lines": 95, "statements": 95 } }, "collectCoverage": true, "mapCoverage": true }, "devDependencies": { "@types/jest": "22.0.1", "@types/node": "8.5.7", "@types/webspeechapi": "0.0.29", "coveralls": "3.0.0", "cross-env": "5.1.3", "husky": "0.14.3", "jest": "22.0.4", "jest-cli": "^22.0.4", "jsdom": "11.5.1", "lint-staged": "6.0.0", "prettier": "1.9.2", "rimraf": "2.6.2", "ts-jest": "22.0.1", "ts-loader": "^3.1.1", "ts-node": "^4.0.0", "tslint": "5.8.0", "tslint-config-prettier": "1.6.0", "tslint-config-standard": "7.0.0", "typedoc": "0.9.0", "typescript": "2.6.2", "uglifyjs-webpack-plugin": "^1.0.1", "webpack": "^3.8.1", "webpack-config-utils": "^2.3.0" }, "dependencies": {} }