-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
65 lines (65 loc) · 5.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
54
55
56
57
58
59
60
61
62
63
64
65
{
"name": "whatson-api",
"version": "2.80.33",
"description": "What's on? API to retrieve movies and tvshows",
"main": "index.js",
"scripts": {
"test": "jest",
"test-remote": "SOURCE=remote jest --ci --runInBand --reporters=default --reporters=jest-junit",
"prettier": "prettier --write .",
"update-packages": "ncu -u && rm -rf node_modules package-lock.json && npm install",
"changed-dataset": "git update-index --no-assume-unchanged src/assets/films_ids.txt && git update-index --no-assume-unchanged src/assets/series_ids.txt",
"unchanged-dataset": "git update-index --assume-unchanged src/assets/films_ids.txt && git update-index --assume-unchanged src/assets/series_ids.txt",
"check-dataset": "bash src/data/checkIds.sh check_dataset movie && bash src/data/checkIds.sh check_dataset tvshow",
"check-dataset-force": "bash src/data/checkIds.sh check_dataset movie force && bash src/data/checkIds.sh check_dataset tvshow force",
"check-local-with-remote-ids": "node src/updateData.js movie no_update_ids update_db local no_active check 0 no_check_data no_force skip_mojo skip_services && node src/updateData.js tvshow no_update_ids update_db local no_active check 0 no_check_data no_force skip_mojo skip_services",
"update-local-movie": "bash src/data/getIds.sh local movie",
"update-local-tvshow": "bash src/data/getIds.sh local tvshow",
"update-local": "npm run update-local-movie && npm run update-local-tvshow",
"update-local-stop-movie": "bash src/data/getIds.sh local movie stop imdb",
"update-local-stop-tvshow": "bash src/data/getIds.sh local tvshow stop imdb",
"update-local-stop": "npm run update-local-stop-movie && npm run update-local-stop-tvshow",
"update-dataset": "bash src/data/checkIds.sh check movie && bash src/data/checkIds.sh check tvshow",
"update-active-dataset": "bash src/data/checkIds.sh check movie active && bash src/data/checkIds.sh check tvshow active",
"confirm-dataset": "bash src/data/checkIds.sh update movie && bash src/data/checkIds.sh update tvshow",
"check-api-version": "node src/checkApiVersion.js",
"commit": "git add . && git cz",
"pull-all-platforms": "git pull origin main && git pull bitbucket main && git pull bitbucket_2 main && git pull bitbucket_3 main",
"push-all-platforms": "git push origin main && git push bitbucket main && git push bitbucket_2 main && git push bitbucket_3 main",
"push": "npm run check-api-version && npm run check-dataset && npm run prettier && npm run test && npm run commit && npm run push-all-platforms && npm run unchanged-dataset",
"push-dataset": "npm run check-local-with-remote-ids && npm run check-dataset-force && npm run prettier && npm run test && git add . && git commit -m 'build: update dataset' && npm run push-all-platforms && npm run unchanged-dataset",
"update-movie-data-first-half": "node -e \"const { getDateValue } = require('./src/utils/getDateValue'); console.log(getDateValue(true));\" | xargs -I {} node src/updateData.js movie no_update_ids update_db circleci no_active no_check_db_ids {} no_check_data no_force mojo check_services no_delete 7",
"update-movie-data-second-half": "node -e \"const { getDateValue } = require('./src/utils/getDateValue'); console.log(getDateValue(false));\" | xargs -I {} node src/updateData.js movie no_update_ids update_db circleci no_active no_check_db_ids {} no_check_data no_force mojo check_services no_delete 7",
"update-tvshow-data-all": "node -e \"const { getDateValue } = require('./src/utils/getDateValue'); console.log(getDateValue(true));\" | xargs -I {} node src/updateData.js tvshow no_update_ids update_db circleci no_active no_check_db_ids {} no_check_data no_force mojo check_services no_delete 7",
"update-all-ids": "node src/updateData.js movie update_ids update_db local active no_check_db_ids 0 no_check_data && node src/updateData.js tvshow update_ids update_db local active no_check_db_ids 0 no_check_data && npm run test",
"update-all-ids-force": "node src/updateData.js movie update_ids update_db local active no_check_db_ids 0 no_check_data force && node src/updateData.js tvshow update_ids update_db local active no_check_db_ids 0 no_check_data force && npm run test",
"update-all-active-ids": "node src/updateData.js movie no_update_ids update_db local active no_check_db_ids 0 no_check_data force && node src/updateData.js tvshow no_update_ids update_db local active no_check_db_ids 0 no_check_data force && npm run test"
},
"author": "Pierre Vanoverschelde",
"license": "ISC",
"dependencies": {
"axios": "^1.7.7",
"axios-retry": "^4.5.0",
"cheerio": "^1.0.0",
"csvtojson": "^2.0.10",
"dotenv": "^16.4.5",
"express": "^4.21.1",
"jshashes": "^1.0.8",
"mongodb": "^6.10.0",
"newrelic": "^12.5.2",
"prettier": "^3.3.3",
"shelljs": "^0.8.5",
"vercel": "^37.12.1"
},
"devDependencies": {
"@types/jest": "^29.5.14",
"cz-conventional-changelog": "^3.3.0",
"jest": "^29.7.0",
"jest-junit": "^16.0.0"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}