search-client
Version:
Javascript library for executing searches in the Haive search-index via the SearchManager REST interface.
139 lines (138 loc) • 5.75 kB
JSON
{
"name": "search-client",
"version": "2.2.0",
"description": "Javascript library for executing searches in the Haive search-index via the SearchManager REST interface.",
"author": "Ronny Hanssen <ronny@haive.ai> (http://haive.ai/)",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/the-haive/search-client.git"
},
"homepage": "https://github.com/the-haive/search-client#readme",
"bugs": {
"url": "https://github.com/the-haive/search-client/issues"
},
"main": "dist/Haive.min.js",
"module": "es/SearchClient.js",
"types": "es/SearchClient.d.ts",
"scripts": {
"prebuild": "yarn run clean",
"build": "yarn run build:es && yarn run build:umd",
"build:es": "yarn tsc --outDir es --module es2015",
"build:umd": "yarn webpack --config webpack.config.js",
"build:umd:watch": "yarn webpack --config webpack.config.js --watch",
"postbuild": "yarn rimraf es/**/__tests__ es/**/*.{spec,test}.* dist/temp",
"stats": "yarn build:umd && webpack --config webpack.config.js --profile --json > stats.json",
"analyze": "yarn stats && yarn webpack-bundle-analyzer stats.json dist --no-open",
"clean": "yarn rimraf dist/* es/* docs/* coverage/* tmp/*",
"typecheck": "yarn tsc --noEmit",
"lint": "yarn tslint --project tsconfig.json --format stylish --exclude src/test-data/categories.json",
"test": "yarn jest --env=jsdom --coverage",
"test:watch": "yarn jest --env=jsdom --watch --updateSnapshot",
"posttest": "yarn run typecheck && yarn run lint",
"predocs": "yarn node docs-prepare.js",
"docs": "echo \"*** Documenting...\" && yarn rimraf docs && yarn typedoc ./src/ --options typedoc.json && echo \"*** Documentation created: ./docs/index.html\"",
"postdocs": "yarn rimraf tmp",
"verify": "yarn run clean && yarn run build && yarn run test && yarn run docs && echo \"*** Verify success.\" && echo \"- If ready to release, commit changes and then 'yarn run bump' (optionally with params https://www.npmjs.com/package/standard-version).\" && echo \"- Note that commit comment should follow standard-version comment convention https://github.com/bcoe/conventional-changelog-standard/blob/master/convention.md\"",
"bump": "yarn run standard-version",
"pack": "echo \"*** Packing...\" && yarn pack && echo \"Pack success.\" && echo \"- Package created.\" && echo \"- Remember to git-push commits and tags to the git-origin!\" && echo \"- Run 'npm publish' to publish the package to the npmjs repository.\"",
"//prepublishOnly": "yarn run build",
"//preversion": "yarn test",
"//postversion": "git push && git push --tags",
"samples:plain": "yarn concurrently \"browser-sync samples/plain dist -w --port 9000\" \"yarn run build:umd:watch\" ",
"samples:plain:browser": "yarn browser-sync samples/plain dist -w --port 9000"
},
"keywords": [
"typescript",
"library",
"intellisearch",
"haive",
"search-client",
"search-engine"
],
"files": [
"es",
"dist"
],
"dependencies": {
"@types/deep-equal": "^1.0.1",
"@types/jwt-simple": "^0.5.33",
"@types/node": "^10.3.3",
"@types/valid-url": "^1.0.2",
"clone": "^2.1.2",
"cross-fetch": "^3.0.6",
"deep-equal": "^1.0.1",
"jwt-simple": "^0.5.6",
"moment": "^2.22.2",
"oidc-client": "^1.7.1",
"tslib": "^1.10.0",
"url-polyfill": "^1.1.7",
"valid-url": "^1.0.9"
},
"devDependencies": {
"@types/clone": "^0.1.30",
"@types/jest": "^24.0.23",
"browser-sync": "^2.24.6",
"concat-files": "^0.1.1",
"concurrently": "^4.0.0",
"cpx": "^1.5.0",
"deepmerge": "^4.2.2",
"jest": "^24.9.0",
"jest-fetch-mock": "^3.0.3",
"jest-localstorage-mock": "^2.4.0",
"jest-plugin-unhandled-promise": "^2.9.0",
"node-watch": "^0.5.8",
"pascal-case": "^2.0.1",
"replace-in-file": "^3.4.0",
"rimraf": "^2.6.2",
"standard-version": "^9.1.0",
"ts-jest": "^24.2.0",
"ts-loader": "^4.5.0",
"tslint": "^5.20.1",
"tslint-config-prettier": "^1.18.0",
"typedoc": "^0.20.19",
"typescript": "^3.9.0",
"uglifyjs-webpack-plugin": "^1.3.0",
"webpack": "^4.17.1",
"webpack-bundle-analyzer": "^3.5.2",
"webpack-cli": "^3.1.0"
},
"jest": {
"verbose": true,
"automock": false,
"setupFiles": [
"jest-plugin-unhandled-promise/setup"
],
"transform": {
"^.+\\.(t|j)sx?$": "ts-jest"
},
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
"testPathIgnorePatterns": [
"/coverage",
"/dist",
"/docs",
"/es",
"/node_modules",
"/samples"
],
"collectCoverageFrom": [
"src/**/*.{t,j}s?(x)",
"!src/**/*.d.ts",
"!src/**/*.json",
"!src/**/*.json.ts"
],
"moduleFileExtensions": [
"js",
"jsx",
"ts",
"tsx"
],
"globals": {
"ts-jest": {
"babelConfig": true,
"tsConfig": "<rootDir>/tsconfig.jest.json",
"diagnostics": false
}
}
}
}