This repository has been archived by the owner on Oct 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
102 lines (102 loc) · 3.31 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
{
"name": "leaistic",
"version": "1.0.0-development",
"description": "ElasticSearch Manager",
"main": "index.js",
"repository": {
"type": "git",
"url": "https://github.com/nearform/leaistic.git"
},
"author": "[email protected]",
"license": "Apache-2.0",
"bin": {
"leaistic": "./bin/leaistic.js"
},
"scripts": {
"start": "npm run start:human",
"start:human": "npm run start:raw | npx pino-colada",
"start:verbose": "npm run start:raw | pino",
"start:raw": "nodemon bin/leaistic.js",
"commitmsg": "commitlint -e $GIT_PARAMS",
"semantic-release": "semantic-release",
"stash-unstaged": "git stash save -k 'pre-linting-stash' >> /dev/null",
"unstash-unstaged": "git stash pop --index",
"lint-staged": "lint-staged || (yarn run pop-stash >> /dev/null && exit 1)",
"pop-stash": "git stash && git stash pop stash@{1} && git read-tree stash && git stash drop",
"lint": "standard --fix --verbose | snazzy",
"prees:local:start": "sysctl vm.max_map_count | grep -q 262144 || sudo sysctl -w vm.max_map_count=262144",
"es:local:start": "docker-compose -f docker-compose.local.yml up",
"es:local:stop": "docker-compose -f docker-compose.local.yml down -v",
"es:local": "npm run es:local:start; npm run es:local:stop",
"test": "npm run test:human",
"test:human": "npm run test:raw | npx pino-colada",
"test:verbose": "npm run test:raw | pino",
"test:raw": "jest --coverage --colors",
"test:debug": "npm run test:debug:human",
"test:debug:human": "npm run test:debug:raw | npx pino-colada",
"test:debug:verbose": "npm run test:debug:raw | pino",
"test:debug:raw": "node --inspect-brk node_modules/.bin/jest --runInBand",
"test:watch": "npm run test:watch:human",
"test:watch:human": "npm run test:watch:raw | npx pino-colada",
"test:watch:verbose": "npm run test:watch:raw | pino",
"test:watch:raw": "jest --colors --watch --notify --coverage",
"test:ci": "ES_URL=http://localhost:9200 jest --ci --testResultsProcessor=jest-junit --coverage --maxWorkers=4 --colors | pino"
},
"pre-commit": {
"run": [
"stash-unstaged",
"lint-staged",
"pop-stash"
]
},
"lint-staged": {
"*.js": [
"npm run lint",
"git add",
"jest --bail --findRelatedTests"
]
},
"standard": {
"env": [
"node",
"jest"
]
},
"jest-junit": {
"output": ".ci-test-results/jest/results.xml"
},
"dependencies": {
"delay": "^2.0.0",
"elasticsearch": "^15.0.0",
"escape-string-regexp": "^1.0.5",
"hapi": "^17.5.0",
"hapi-pino": "^4.0.4",
"hapi-swagger": "^9.4.2",
"inert": "^5.1.0",
"joi": "^13.3.0",
"json-truncate": "^1.3.0",
"lodash.repeat": "^4.1.0",
"lodash.startcase": "^4.4.0",
"make-promises-safe": "^1.1.0",
"moment": "^2.22.2",
"nodemon": "^1.17.4",
"p-timeout": "^2.0.1",
"pino": "^4.17.3",
"vision": "^5.3.2"
},
"devDependencies": {
"@commitlint/cli": "^6.2.0",
"@commitlint/config-conventional": "^6.1.3",
"commitlint": "^6.2.0",
"husky": "^0.14.3",
"jest": "^24.3.0",
"jest-junit": "^4.0.0",
"lint-staged": "^8.1.5",
"pre-commit": "^1.2.2",
"semantic-release": "^15.13.4",
"snazzy": "^7.1.1",
"standard": "^11.0.1",
"trace": "^3.1.0",
"uuid": "^3.2.1"
}
}