-
Notifications
You must be signed in to change notification settings - Fork 7
/
package.json
53 lines (53 loc) · 2.05 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
{
"name": "selva",
"license" : "MIT",
"private": true,
"workspaces": [
"client",
"server",
"tools",
"query-ast-parser",
"redis/client",
"redis/parser"
],
"scripts": {
"killall": "pkill -9 node && pkill -9 redis",
"publish-major": "yarn build && node ./bin/publish.js major && npm login && cd client && npm publish && cd ../server && npm publish",
"publish-minor": "yarn build && node ./bin/publish.js minor && npm login && cd client && npm publish && cd ../server && npm publish",
"publish-patch": "yarn build && node ./bin/publish.js && npm login && cd client && npm publish && cd ../server && npm publish",
"clean": "rm -rf node_modules && rm -rf client/node_modules client/dist && rm -rf server/node_modules server/dist",
"test": "cd client && yarn test",
"build-c": "cd ./server/modules/selva && make clean && make && cp module.so ../binaries/darwin_x64/selva.so",
"build-cx": "cd ./server/modules && ./build.sh",
"build-redis": "cd ./server/redis && ./build.sh",
"build": "yarn buildAstParser && yarn buildClient && mkdir -p server/dist/lua && cp client/dist/lua/update-schema.lua server/dist/lua/update-schema.lua && yarn buildServer",
"buildClient": "cd client && yarn buildLua && yarn build",
"buildAstParser": "cd query-ast-parser && yarn build",
"buildLua": "cd client && yarn buildLua",
"buildServer": "cd server && yarn build",
"watchServer": "cd server && yarn watch",
"watchClientTests": "cd client && yarn watch",
"watch": "watch",
"ncu": "cd ../client && ncu -u && ncu -u && cd ../query-ast-parser && ncu -u && cd ../server && ncu -u && cd ../tools && ncu -u"
},
"lint-staged": {
"{js,json}": [
"prettier --write",
"git add"
],
"*.js": [
"eslint --fix",
"git add"
]
},
"prettier": "@saulx/prettier-config",
"eslintConfig": {
"extends": "@saulx/eslint-config"
},
"devDependencies": {
"eslint": "^7.19.0",
"prettier": "^2.2.1",
"@saulx/eslint-config": "^1.1.0",
"@saulx/prettier-config": "^1.0.0"
}
}