This repository has been archived by the owner on Nov 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
66 lines (66 loc) · 4.03 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
{
"name": "information-manipulation-analyzer-processor",
"version": "3.0.0",
"main": "src/index.ts",
"author": "Martin Ratinaud <[email protected]>",
"license": "MIT",
"private": false,
"prettier": "prettier-config-ambanum",
"scripts": {
"build": "tsc",
"precommit": "(git diff --diff-filter=AM --name-only --staged | grep ops/roles/*/*/files/*.secrets | xargs grep -rL \"ANSIBLE\") && echo \"some vault files are not encrypted\" && exit",
"encrypt": "grep -rL \"ANSIBLE\" ./ops/roles/*/*/files/*.secrets | xargs ansible-vault encrypt",
"decrypt": "grep -rl \"ANSIBLE\" ./ops/roles/*/*/files/*.secrets | xargs ansible-vault decrypt",
"prepare": "husky install",
"start:user": "NODE_PATH=build NODE_OPTIONS='--max_old_space_size=8192' node build/index.js user",
"start:search": "NODE_PATH=build NODE_OPTIONS='--max_old_space_size=8192' node build/index.js search",
"start:retweets": "NODE_PATH=build NODE_OPTIONS='--max_old_space_size=8192' node build/index.js retweets",
"start:server": "NODE_PATH=build NODE_OPTIONS='--max_old_space_size=8192' node build/index.js server",
"start": "concurrently -r --kill-others --names \"search,server,user,retweets\" \"yarn start:search\" \"yarn start:server\" \"yarn start:user\" \"yarn start:retweets\"",
"dev:node": "node --trace-warnings --trace-exit --trace-sigint --trace-uncaught --trace-deprecation --trace-atomics-wait -r ts-node/register -r tsconfig-paths/register",
"dev:user": "yarn dev:node ./src/index.ts user",
"dev:search": "yarn dev:node ./src/index.ts search",
"dev:retweets": "yarn dev:node ./src/index.ts retweets",
"dev:server": "yarn dev:node ./src/index.ts server",
"dev": "concurrently --kill-others --names \"search,server,user,retweets\" \"yarn dev:search\" \"yarn dev:server\" \"yarn dev:user\" \"yarn dev:retweets\"",
"deploy:vagrant": "ansible-playbook ops/site.yml -i ops/inventories/dev.yml --limit vagrant -vvv",
"deploy:tflmi:production": "ansible-playbook ops/site.yml -i ops/inventories/production.yml --limit tflmi-production -vvv",
"deploy:ambnum:production": "ansible-playbook ops/site.yml -i ops/inventories/production.yml --limit ambnum-production -vvv",
"deploy:spis:production": "ansible-playbook ops/site.yml -i ops/inventories/production.yml --limit spis-production -vvv",
"deploy:preproduction": "ansible-playbook ops/site.yml -i ops/inventories/production.yml --limit preproduction -vvv",
"deploy:production": "ansible-playbook ops/site.yml -i ops/inventories/production.yml --limit production -vvv",
"docker:build": "docker build --progress plain -t $npm_package_name .",
"docker:run": "(docker rm $npm_package_name || true) && docker run --rm -p 4000:4000 -e PROCESSOR_NAME=docker -e TWINT_PATH=/home/ambnum/.local/bin/twint -e SNSCRAPE_PATH=/home/ambnum/.local/bin/snscrape --name $npm_package_name -it $npm_package_name",
"docker:run-2": "(docker rm information-manipulation-analyzer-processor-2 || true) && docker run --rm -e API=false -e USER_BOT_SCORES=false -e PROCESSOR_ID=2 -e PROCESSOR_NAME=docker -e TWINT_PATH=/home/ambnum/.local/bin/twint -e SNSCRAPE_PATH=/home/ambnum/.local/bin/snscrape -e NB_TWEETS_TO_SCRAPE=6000 --name information-manipulation-analyzer-processor-2 -it $npm_package_name",
"docker:ssh": "docker exec -it $npm_package_name /bin/bash",
"test": "jest"
},
"dependencies": {
"axios": "0.21.4",
"concurrently": "6.2.1",
"debug": "4.3.2",
"dotenv": "10.0.0",
"express": "^4.17.1",
"mongoose": "5.13.7",
"open-graph-scraper": "4.9.2",
"ps-list": "^7.2.0",
"rimraf": "^3.0.2",
"sib-api-v3-typescript": "^2.2.2",
"temp": "^0.9.4",
"ts-node": "10.2.1",
"typescript": "4.4.3"
},
"devDependencies": {
"@types/axios": "^0.14.0",
"@types/express": "4.17.13",
"@types/jest": "27.0.2",
"@types/mongoose": "5.11.97",
"@types/node": "16.9.6",
"husky": "7.0.2",
"jest": "27.2.1",
"prettier": "2.4.1",
"prettier-config-ambanum": "^1.0.1",
"ts-jest": "27.0.5",
"tsconfig-paths": "3.11.0"
}
}