forked from Sage-Bionetworks/Agora
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
178 lines (178 loc) · 7.3 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
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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
{
"name": "agora",
"version": "3.5.0",
"data-file": "syn13363290",
"data-version": "71",
"private": true,
"scripts": {
"dev": "concurrently --kill-others \"npm:dev:server\" \"npm:dev:app\"",
"dev:app": "cross-env API_PORT=3000 webpack serve --config config/webpack.app.js --mode development --progress",
"dev:server": "cross-env PORT=3000 webpack watch --config config/webpack.server.js --mode development --progress",
"build": "npm run build:server && npm run build:app",
"build:app": "npm run clean:app && webpack build --config config/webpack.app.js --mode production --progress",
"build:server": "npm run clean:server && webpack build --config config/webpack.server.js --mode production --progress",
"build:dev": "npm run build:app:dev && npm run build:server:dev",
"build:app:dev": "npm run build:app -- --mode development",
"build:server:dev": "npm run build:server -- --mode development",
"start": "node --max-old-space-size=2048 ./dist/server.js",
"lint": "eslint \"./src/**/*.ts\"",
"test": "npm run clean:testing && npm run lint && npm run test:unit",
"test:unit": "karma start config/karma.conf.js",
"test:watch": "npm run lint && npm run test:unit -- --auto-watch --no-single-run",
"coverage": "http-server -c-1 -o -p 9875 ./coverage",
"clean": "npm run clean:app-and-server && npm run clean:testing && npm run clean:data && npm run clean:packages",
"clean:app": "rimraf \"./dist/**/!(server.js)\"",
"clean:server": "rimraf ./dist/server.js",
"clean:app-and-server": "rimraf ./dist",
"clean:testing": "rimraf ./testing/spec-build coverage",
"clean:data": "rimraf ./local/data/*",
"clean:packages": "npm cache clean --force && rimraf ./node_modules",
"ci:build:develop": "APP_ENV=develop npm run build:dev",
"ci:build:staging": "APP_ENV=staging npm run build",
"ci:build:prod": "APP_ENV=prod npm run build",
"ci:clean": "npm run clean:packages",
"ci:zip": "zip /tmp/agora-app.zip -qr9 * .[^.]*",
"data:local:mongo": "npm run data:local && npm run mongo:import && npm run mongo:create:indexes",
"mongo:import": "sh ./scripts/mongo-import.sh",
"mongo:create:indexes": "mongosh --host localhost ./scripts/mongo-create-Indexes.js",
"mongo:start": "sh ./scripts/start-mongo.sh '/var/lib/mongodb/'",
"mongo:start:windows": "sh ./scripts/start-mongo.sh 'C:\\data\\db'",
"data:local": "npm run clean:data && sh ./scripts/get-data-local.sh",
"e2e": "playwright test --trace on",
"e2e:ui": "playwright test --ui",
"e2e:update": "npm install -D @playwright/test@latest; npx playwright install --with-deps; npx playwright --version",
"create-env": "DB_PASS=$(openssl rand -base64 12) DATA_IMAGE_TAG=$(npm run docker:data-image-tag -s) envsubst < .env.example > .env",
"docker:data-image-tag": "jq -r '.\"data-file\" + \".\" + .\"data-version\"' package.json",
"docker:db:seed-complete": "echo 'Waiting for docker db to finish loading data (~30s)....'; DATA_CONTAINER=$(docker compose --env-file .env -f ./docker/docker-compose.yml ps -a --format '{{.Name}}' mongo-seed); docker wait ${DATA_CONTAINER}",
"docker:db:start": "docker-compose --env-file .env -f ./docker/docker-compose.yml up -d; npm run docker:db:seed-complete",
"docker:db:stop": "docker-compose --env-file .env -f ./docker/docker-compose.yml down",
"docker:dev": "set -a; source .env; set +a; MONGODB_HOST=\"localhost\" MONGODB_PORT=\"${DB_PORT}\" APP_ENV=\"e2e\" npm run dev"
},
"pre-commit": [
"test"
],
"overrides": {
"glob-stream": "7.0.0"
},
"dependencies": {
"@angular/animations": "^13.3.0",
"@angular/cdk": "^13.3.9",
"@angular/common": "^13.3.0",
"@angular/compiler": "^13.3.0",
"@angular/core": "^13.3.0",
"@angular/forms": "^13.3.0",
"@angular/platform-browser": "^13.3.0",
"@angular/platform-browser-dynamic": "^13.3.0",
"@angular/router": "^13.3.0",
"@fortawesome/fontawesome-free": "^6.1.1",
"aws-param-store": "^3.2.0",
"bootstrap": "^5.1.3",
"browser-update": "^3.3.40",
"compression": "^1.7.4",
"concurrently": "^7.3.0",
"cors": "^2.8.5",
"crossfilter2": "^1.5.4",
"d3": "^7.4.4",
"dc": "^4.2.7",
"debug": "^4.3.4",
"dom-to-image-more": "^2.10.1",
"express": "^4.19.2",
"file-saver": "^2.0.5",
"helmet": "^5.1.0",
"lodash": "^4.17.21",
"mongoose": "^6.12.0",
"ngx-cookie-service": "^13.2.0",
"ngx-google-analytics": "^13.0.1",
"node-cache": "^5.1.2",
"nodemon": "^2.0.18",
"normalize.css": "^8.0.1",
"primeng": "^13.4.1",
"rimraf": "^3.0.2",
"rollbar": "^2.25.0",
"rxjs": "^7.5.0",
"sanitize-html": "^2.12.1",
"screenfull": "^6.0.1",
"zone.js": "^0.11.4"
},
"devDependencies": {
"@angular-devkit/build-angular": "^13.3.9",
"@angular/cli": "^13.3.7",
"@angular/compiler-cli": "^13.3.0",
"@angularclass/hmr": "^3.0.0",
"@babel/plugin-proposal-decorators": "^7.18.10",
"@ngtools/webpack": "^13.3.9",
"@playwright/test": "^1.43.1",
"@types/aws-param-store": "^2.1.2",
"@types/browser-update": "^3.3.0",
"@types/compression": "^1.7.2",
"@types/cors": "^2.8.12",
"@types/d3": "^7.4.0",
"@types/d3-force": "^3.0.3",
"@types/dc": "^0.0.29",
"@types/debug": "^4.1.7",
"@types/dom-to-image": "^2.6.4",
"@types/express": "^4.17.13",
"@types/file-saver": "^2.0.5",
"@types/jasmine": "^4.0.3",
"@types/lodash": "^4.14.182",
"@types/node": "^18.0.0",
"@types/sanitize-html": "^2.6.2",
"@typescript-eslint/eslint-plugin": "^5.29.0",
"@typescript-eslint/parser": "^5.29.0",
"copy-webpack-plugin": "^11.0.0",
"core-js": "^3.24.0",
"coverage-istanbul-loader": "^3.0.5",
"coveralls": "^3.1.1",
"cross-env": "^7.0.3",
"crypto-browserify": "^3.12.0",
"css-loader": "^6.7.1",
"eslint": "^8.18.0",
"eslint-config-prettier": "^8.5.0",
"html-loader": "^4.1.0",
"html-webpack-plugin": "^5.5.0",
"http-server": "^14.1.1",
"https-browserify": "^1.0.0",
"jasmine-core": "^4.0.0",
"jasmine-spec-reporter": "^7.0.0",
"karma": "^6.3.0",
"karma-chrome-launcher": "^3.1.1",
"karma-coverage": "^2.1.0",
"karma-coverage-istanbul-reporter": "^3.0.3",
"karma-coveralls": "^2.1.0",
"karma-jasmine": "^5.1.0",
"karma-mocha": "^2.0.1",
"karma-mocha-reporter": "^2.2.5",
"karma-webpack": "^5.0.0",
"mocha": "^10.0.0",
"nodemon-webpack-plugin": "^4.8.0",
"os-browserify": "^0.3.0",
"path-browserify": "^1.0.1",
"puppeteer": "^16.1.0",
"request": "^2.88.2",
"sass": "^1.52.2",
"sass-loader": "^13.0.0",
"source-map-loader": "^4.0.0",
"start-server-and-test": "^2.0.3",
"stream-browserify": "^3.0.0",
"stream-http": "^3.2.0",
"style-loader": "^3.3.1",
"stylelint": "^14.9.1",
"stylelint-config-prettier-scss": "^0.0.1",
"stylelint-config-standard-scss": "^5.0.0",
"stylelint-no-unsupported-browser-features": "^5.0.3",
"stylelint-webpack-plugin": "^3.3.0",
"to-string-loader": "^1.2.0",
"ts-loader": "^9.3.0",
"ts-node-register": "^1.0.0",
"typescript": "^4.6.4",
"webpack": "^5.76.0",
"webpack-cli": "^4.9.2",
"webpack-inline-manifest-plugin": "^4.0.1",
"webpack-merge": "^5.8.0",
"webpack-node-externals": "^3.0.0"
},
"engines": {
"node": "v16.15.0",
"npm": "8.5.5"
}
}