-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
65 lines (65 loc) · 2.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
{
"name": "github-miner",
"version": "0.0.2",
"description": "A Node.js app written in Typescript for mining data from github/npm and plotting into a Neo4j graph database.",
"author": "Ross Anthony <[email protected]>",
"repository": "rossanthony/github-miner",
"license": "MIT",
"main": "index.js",
"scripts": {
"docker-setup": "docker-compose run --use-aliases --rm node npm install",
"docker-exec": "docker-compose run --use-aliases --rm node npm run",
"install-neo4j-plugins": "docker-compose exec neo4j sh -c './app/bin/install_neo4j_plugins.sh'",
"backup-db": "docker-compose exec neo4j sh -c 'neo4j stop && neo4j-admin dump --database=graph.db --to=/bitnami/backups/graph.db.dump && neo4j start'",
"restore-db": "docker-compose exec neo4j sh -c 'neo4j stop && neo4j-admin load --from=/bitnami/backups/graph.db.dump --database=graph.db --force && neo4j start'",
"redis-flush": "docker-compose exec redis sh -c 'redis-cli FLUSHALL'",
"mine": "ts-node src/miner.ts",
"insert": "ts-node src/insertData.ts",
"total-repos": "find ./data/repos/* -name 'github.json' | wc -l",
"total-modules": "find ./data/npm* -name 'data.json' | wc -l",
"test": "jest --forceExit --coverage --verbose",
"clean": "rm -rf ./node_modules && rm -rf ./build",
"compile": "tsc",
"compile-watch": "tsc -w",
"lint": "eslint ./src/**/*.ts"
},
"dependencies": {
"dotenv": "^2.0.0",
"fs-extra": "^8.1.0",
"lodash": "^4.17.15",
"moment": "^2.14.1",
"neo4j": "^1.1.1",
"neo4j-driver": "^1.7.5",
"npm-api": "^1.0.0",
"ora": "^3.4.0",
"redis": "^2.8.0",
"request": "^2.88.0"
},
"devDependencies": {
"@types/dotenv": "^6.1.1",
"@types/fs-extra": "^8.0.0",
"@types/jest": "^24.0.18",
"@types/lodash": "^4.14.136",
"@types/moment": "^2.13.0",
"@types/neo4j": "^2.0.2",
"@types/node": "^12.7.4",
"@types/redis": "^2.8.13",
"@types/request": "^2.48.2",
"@typescript-eslint/eslint-plugin": "^1.12.0",
"@typescript-eslint/parser": "^1.12.0",
"eslint": "^5.16.0",
"husky": "^3.0.5",
"jest": "^24.9.0",
"nock": "^11.3.3",
"ts-jest": "^24.0.2",
"ts-node": "^8.3.0",
"typescript": "^3.6.2"
},
"jest": {
"testEnvironment": "node",
"verbose": true
},
"engines": {
"node": ">=10.*"
}
}