-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
138 lines (138 loc) · 5.48 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
{
"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 <[email protected]> (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
}
}
}
}