forked from aqualinkorg/aqualink-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
157 lines (157 loc) · 7.42 KB
/
Copy pathpackage.json
File metadata and controls
157 lines (157 loc) · 7.42 KB
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
{
"name": "api",
"version": "0.0.1",
"description": "",
"author": "",
"private": true,
"license": "UNLICENSED",
"engines": {
"node": "20"
},
"scripts": {
"prebuild": "rimraf dist",
"build": "nest build -p tsconfig.build.json --tsc",
"build:cloud-functions": "node cloud-functions/add-entities.js && tsc -p ./cloud-functions/tsconfig.json && cp -rf ./assets ./cloud-functions/dist/assets",
"gcp-build": "npm intall yarn",
"predeploy:app": "mv .env .env.bkp && cp .env.${DEPLOY_ENV} .env && yarn run build && cp ../../yarn.lock .",
"deploy:app": "gcloud app deploy app-${DEPLOY_ENV}.yaml && yarn migration:run",
"postdeploy:app": "rm yarn.lock && mv .env.bkp .env",
"deploy:prod": "cross-env DEPLOY_ENV=prod yarn deploy:app && yarn deploy:cloud-functions",
"deploy:staging": "cross-env DEPLOY_ENV=staging yarn deploy:app && yarn deploy:cloud-functions:staging",
"deploy:programize": "cross-env DEPLOY_ENV=programize yarn deploy:app && yarn deploy:cloud-functions:programize",
"deploy:cloud-functions": "yarn build:cloud-functions && firebase deploy --only functions:pingService,functions:scheduledDailyUpdate,functions:scheduledSpotterTimeSeriesUpdate,functions:scheduledWindWaveTimeSeriesUpdate,functions:scheduledSSTTimeSeriesUpdate,functions:scheduledVideoStreamsCheck,functions:scheduledBuoysStatusCheck,functions:scheduledNOAALocationUpdate",
"deploy:cloud-functions:prod": "yarn deploy:cloud-functions -P ocean-systems",
"deploy:cloud-functions:staging": "yarn deploy:cloud-functions -P aqualink-dev",
"deploy:cloud-functions:programize": "yarn deploy:cloud-functions -P aqualink-programize",
"config:cloud-functions": "firebase functions:config:set $(ts-node functionsConfig.ts)",
"config:cloud-functions:prod": "yarn config:cloud-functions -P ocean-systems",
"config:cloud-functions:staging": "yarn config:cloud-functions -P aqualink-dev",
"config:cloud-functions:programize": "yarn config:cloud-functions -P aqualink-programize",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"start": "yarn run start:prod",
"start:dev": "cp .env.local .env && nodemon --config nodemon.json",
"start:dev:db": "docker-compose up",
"start:debug": "nest start --debug --watch",
"start:prod": "node dist/src/main.js",
"lint": "eslint \"{src,apps,libs,test,scripts}/**/*.{ts,js}\" --max-warnings 0",
"test": "cross-env NODE_ENV=test jest --config ./test/jest.json --silent",
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"typeorm": "ts-node --project tsconfig.typeorm.json -r tsconfig-paths/register $(yarn bin typeorm) -d ormconfig.ts",
"migration:generate": "yarn typeorm migration:generate",
"migration:run": "yarn typeorm migration:run --transaction each",
"migration:revert": "yarn typeorm migration:revert",
"migrate-prompts": "ts-node -r dotenv/config -r tsconfig-paths/register scripts/migrate-prompts.ts",
"hashId": "ts-node -r dotenv/config scripts/url-hash.ts toHash",
"hashId:prod": "DOTENV_CONFIG_PATH=.env.prod ts-node -r dotenv/config scripts/url-hash.ts toHash",
"hashId:staging": "DOTENV_CONFIG_PATH=.env.staging ts-node -r dotenv/config scripts/url-hash.ts toHash",
"unhashId": "ts-node -r dotenv/config scripts/url-hash.ts toId",
"unhashId:prod": "DOTENV_CONFIG_PATH=.env.prod ts-node -r dotenv/config scripts/url-hash.ts toId",
"unhashId:staging": "DOTENV_CONFIG_PATH=.env.staging ts-node -r dotenv/config scripts/url-hash.ts toId",
"typeorm-seeding": "ts-node $(yarn bin typeorm-seeding)",
"seed:config": "yarn typeorm-seeding config",
"seed:run": "yarn typeorm-seeding seed",
"daily-worker": "ts-node -r dotenv/config scripts/daily-update.ts",
"backfill-daily-data": "ts-node -r dotenv/config scripts/backfill-daily-data.ts",
"augment-sites": "ts-node -r dotenv/config scripts/augment-site-data.ts",
"upload-hobo-data": "ts-node -r dotenv/config scripts/upload-hobo-data.ts",
"upload-sonde-data": "ts-node -r dotenv/config scripts/upload-sonde-data.ts",
"upload-hui-data": "ts-node -r dotenv/config scripts/upload-hui-data.ts",
"update-wind-wave-data": "ts-node -r dotenv/config scripts/hindcast-wind-wave-data.ts",
"resize-survey-images": "ts-node -r dotenv/config scripts/resize-survey-images.ts",
"stormglass-csv": "ts-node -r dotenv/config scripts/generate-stormglass-csv.ts",
"fill-noaa-nearest-point": "ts-node -r dotenv/config scripts/noaa-availability.ts",
"check-video-streams": "ts-node -r dotenv/config scripts/check-video-streams.ts",
"reef-check": "ts-node -r dotenv/config scripts/reef-check.ts",
"backfill:seaphox": "ts-node -r dotenv/config scripts/backfill-seaphox-monthly.ts",
"backfill:sst": "ts-node -r dotenv/config scripts/sst-backfill.ts",
"backfill:sofar": "ts-node -r dotenv/config scripts/backfill-sofar-time-series.ts",
"audit": "yarn --cwd ../.. run audit"
},
"dependencies": {
"@braintree/sanitize-url": "^7.0.1",
"@google-cloud/storage": "^6.11.0",
"@googlemaps/google-maps-services-js": "^3.4.2",
"@nestjs/common": "^11.1.19",
"@nestjs/core": "^11.1.19",
"@nestjs/passport": "^11.0.5",
"@nestjs/platform-express": "^11.1.19",
"@nestjs/schedule": "^6.1.3",
"@nestjs/swagger": "^11.3.0",
"@nestjs/typeorm": "^11.0.1",
"@turf/turf": "^7.3.1",
"@types/bluebird": "^3.5.32",
"axios": "^1.15.0",
"axios-retry": "^3.8.1",
"bluebird": "^3.7.2",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.1",
"cross-env": "^7.0.3",
"csv-parse": "^4.15.1",
"csv-parser": "^3.2.0",
"csv-stringify": "^6.4.0",
"dotenv": "^17.2.3",
"express": "^5.2.1",
"firebase-admin": "^13.0.2",
"geo-tz": "^6.0.0",
"geojson": "^0.5.0",
"geotiff": "^1.0.4",
"hashids": "^2.2.1",
"lodash": "^4.18.0",
"luxon": "^3.5.0",
"md5-file": "^5.0.0",
"multer": "^2.1.1",
"node-xlsx": "^0.24.0",
"objects-to-csv": "^1.3.6",
"p-limit": "^7.2.0",
"passport": "^0.6.0",
"passport-custom": "^1.1.1",
"pg": "^8.2.1",
"reflect-metadata": "^0.2.2",
"rxjs": "^7",
"sharp": "^0.33.5",
"ts-exif-parser": "^0.2.1",
"typeorm": "^0.3.20",
"typeorm-naming-strategies": "^4.1.0"
},
"devDependencies": {
"@nestjs/cli": "^11.0.21",
"@nestjs/schematics": "^11.1.0",
"@nestjs/testing": "^11.1.19",
"eslint": "^8.57.0",
"node-gyp": "^11.4.2",
"@types/express": "^5.0.6",
"@types/faker": "^4.1.12",
"@types/hast": "^3.0.4",
"@types/jest": "29.5.6",
"@types/lodash": "^4.14.156",
"@types/luxon": "^3.3.1",
"@types/mdast": "^4.0.4",
"@types/ms": "^2.1.0",
"@types/multer": "^1.4.3",
"@types/node": "^22.10.6",
"@types/passport": "^1.0.4",
"@types/passport-strategy": "^0.2.35",
"@types/sharp": "^0.30.4",
"@types/supertest": "2.0.12",
"@types/ungap__structured-clone": "^0.3.0",
"@types/unist": "^3.0.3",
"faker": "^4.1.0",
"firebase-functions": "^6.2.0",
"glob": "^7.1.6",
"jest": "^29.7.0",
"nodemon": "^3.1.9",
"rimraf": "^3.0.2",
"supertest": "6.3.3",
"ts-jest": "^29.2.6",
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0",
"typeorm-seeding": "^1.6.1",
"typescript": "^5.7.3",
"yargs": "^17.7.2"
},
"_optionalDependencies": {
"netcdf4": "https://github.com/ovio-forks/netcdf4"
}
}