2018-01-15 13:56:08 +03:00
|
|
|
{
|
2018-02-08 02:29:41 +03:00
|
|
|
"name": "blurts-server",
|
2022-05-11 02:17:52 +03:00
|
|
|
"description": "Firefox Monitor Server",
|
|
|
|
"version": "1.0.0",
|
2018-02-08 02:29:41 +03:00
|
|
|
"bugs": {
|
|
|
|
"url": "https://github.com/mozilla/blurts-server/issues"
|
|
|
|
},
|
2018-01-15 13:56:08 +03:00
|
|
|
"dependencies": {
|
2022-08-07 06:54:26 +03:00
|
|
|
"@fluent/bundle": "^0.17.1",
|
|
|
|
"@fluent/langneg": "^0.6.2",
|
2021-11-19 23:06:30 +03:00
|
|
|
"@maxmind/geoip2-node": "^3.1.0",
|
2022-09-02 00:36:04 +03:00
|
|
|
"@sentry/node": "7.12.0",
|
2020-07-09 21:28:11 +03:00
|
|
|
"body-parser": "1.19.0",
|
2022-08-31 19:26:57 +03:00
|
|
|
"client-oauth2": "4.3.3",
|
2022-09-05 18:33:35 +03:00
|
|
|
"connect-redis": "6.1.3",
|
2022-05-29 01:57:27 +03:00
|
|
|
"cookie-parser": "^1.4.6",
|
2020-07-13 19:25:53 +03:00
|
|
|
"csurf": "1.11.0",
|
2022-09-05 18:34:19 +03:00
|
|
|
"dotenv": "16.0.2",
|
2022-05-26 20:48:26 +03:00
|
|
|
"esbuild": "^0.14.39",
|
2020-07-14 03:57:37 +03:00
|
|
|
"express": "4.17.1",
|
2020-07-14 17:34:52 +03:00
|
|
|
"express-bearer-token": "2.4.0",
|
2022-08-25 22:17:05 +03:00
|
|
|
"express-handlebars": "6.0.6",
|
2020-07-11 04:24:13 +03:00
|
|
|
"express-session": "1.17.1",
|
2022-08-31 19:27:09 +03:00
|
|
|
"fluent": "0.13.0",
|
2020-07-14 18:12:54 +03:00
|
|
|
"fluent-langneg": "0.2.0",
|
2022-01-27 01:40:54 +03:00
|
|
|
"git-rev-sync": "^3.0.2",
|
2022-08-26 22:47:19 +03:00
|
|
|
"got": "11.8.5",
|
2020-11-03 20:54:34 +03:00
|
|
|
"helmet": "4.2.0",
|
2020-08-24 03:41:18 +03:00
|
|
|
"intl-pluralrules": "1.2.1",
|
2020-07-14 20:11:46 +03:00
|
|
|
"isemail": "3.2.0",
|
2022-08-22 09:02:37 +03:00
|
|
|
"knex": "^2.2.0",
|
2021-05-06 18:52:26 +03:00
|
|
|
"mozlog": "3.0.2",
|
2022-09-05 18:33:57 +03:00
|
|
|
"nodemailer": "^6.7.8",
|
2022-08-25 22:19:31 +03:00
|
|
|
"nodemailer-express-handlebars": "5.0.0",
|
2021-08-13 21:41:31 +03:00
|
|
|
"pg": "^8.7.1",
|
2021-04-27 21:28:06 +03:00
|
|
|
"redis": "3.1.1",
|
2022-09-05 18:34:09 +03:00
|
|
|
"sns-validator": "0.3.5",
|
2020-07-27 06:09:14 +03:00
|
|
|
"uuid": "3.4.0"
|
2018-01-15 14:04:48 +03:00
|
|
|
},
|
2018-02-08 02:29:41 +03:00
|
|
|
"devDependencies": {
|
2022-08-31 19:27:30 +03:00
|
|
|
"coveralls": "3.1.1",
|
2022-05-11 02:17:52 +03:00
|
|
|
"eslint": "^8.15.0",
|
|
|
|
"eslint-config-standard": "^17.0.0",
|
|
|
|
"eslint-plugin-import": "^2.26.0",
|
2022-06-02 07:52:28 +03:00
|
|
|
"eslint-plugin-n": "^15.2.1",
|
2022-08-31 19:27:39 +03:00
|
|
|
"eslint-plugin-promise": "^6.0.1",
|
2021-10-19 01:19:31 +03:00
|
|
|
"jest": "^27.2.5",
|
2022-09-05 18:33:21 +03:00
|
|
|
"node-mocks-http": "1.11.0",
|
2022-11-11 11:41:30 +03:00
|
|
|
"nodemon": "^2.0.20",
|
2021-11-19 23:06:30 +03:00
|
|
|
"redis-mock": "^0.56.3",
|
2022-06-16 06:51:33 +03:00
|
|
|
"stylelint": "^14.9.1",
|
2022-06-22 08:00:16 +03:00
|
|
|
"stylelint-config-standard": "^26.0.0"
|
2018-02-09 11:15:01 +03:00
|
|
|
},
|
|
|
|
"engines": {
|
2022-09-22 23:59:39 +03:00
|
|
|
"node": "16.17.x",
|
2022-06-22 08:02:30 +03:00
|
|
|
"npm": "8.x"
|
2018-01-15 14:04:48 +03:00
|
|
|
},
|
2018-05-29 18:39:09 +03:00
|
|
|
"homepage": "https://github.com/mozilla/blurts-server",
|
2018-06-08 00:49:16 +03:00
|
|
|
"license": "MPL-2.0",
|
2018-08-17 22:05:25 +03:00
|
|
|
"jest": {
|
|
|
|
"collectCoverageFrom": [
|
|
|
|
"**/*.js",
|
2018-08-20 23:59:10 +03:00
|
|
|
"!coverage/**/**.js",
|
2018-08-17 22:05:25 +03:00
|
|
|
"!db/seeds/**.js",
|
|
|
|
"!db/migrations/**.js",
|
2018-08-20 23:59:10 +03:00
|
|
|
"!public/**/**.js",
|
|
|
|
"!scripts/*.js",
|
2018-08-30 23:03:53 +03:00
|
|
|
"!loadtests/**/**.js",
|
2018-08-20 23:59:10 +03:00
|
|
|
"!.eslintrc.js"
|
2019-01-08 19:02:32 +03:00
|
|
|
],
|
2019-07-11 17:24:11 +03:00
|
|
|
"setupFilesAfterEnv": [
|
|
|
|
"./tests/jest.setup.js"
|
|
|
|
]
|
2018-02-09 05:32:39 +03:00
|
|
|
},
|
2018-02-08 02:29:41 +03:00
|
|
|
"private": true,
|
2018-01-15 14:04:48 +03:00
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
2018-02-01 23:50:21 +03:00
|
|
|
"url": "git+https://github.com/mozilla/blurts-server.git"
|
2018-01-15 14:04:48 +03:00
|
|
|
},
|
2018-02-08 02:29:41 +03:00
|
|
|
"scripts": {
|
2022-11-11 11:41:30 +03:00
|
|
|
"start": "node is-v2.js && npm start -w src || npm run build && node server.js",
|
|
|
|
"dev": "node is-v2.js && (cd src && nodemon app.js || exit 0) || nodemon server.js",
|
2022-05-26 20:48:26 +03:00
|
|
|
"build": "node esbuild.js",
|
2022-10-31 20:10:09 +03:00
|
|
|
"db:migrate": "knex migrate:latest --knexfile db/knexfile.js",
|
2018-05-29 19:01:36 +03:00
|
|
|
"docker:build": "docker build -t blurts-server .",
|
|
|
|
"docker:run": "docker run -p 6060:6060 blurts-server",
|
2022-06-02 08:01:01 +03:00
|
|
|
"lint": "npm run lint:css && npm run lint:js",
|
2018-02-17 01:45:42 +03:00
|
|
|
"lint:js": "eslint .",
|
2022-06-02 08:01:01 +03:00
|
|
|
"lint:css": "stylelint public/css/",
|
2022-11-22 19:37:08 +03:00
|
|
|
"lint:fluent": "moz-fluent-lint ./locales/en --config .github/linter_config.yml",
|
2022-09-21 19:37:13 +03:00
|
|
|
"fix": "npm run fix:css && npm run fix:js",
|
|
|
|
"fix:js": "eslint . --fix",
|
|
|
|
"fix:css": "stylelint public/css/ --fix",
|
2022-10-31 20:10:09 +03:00
|
|
|
"test:db:migrate": "NODE_ENV=tests knex migrate:latest --knexfile db/knexfile.js --env tests",
|
2018-09-20 17:55:05 +03:00
|
|
|
"test:tests": "NODE_ENV=tests HIBP_THROTTLE_DELAY=1000 HIBP_THROTTLE_MAX_TRIES=3 jest --runInBand --coverage tests/",
|
2018-08-17 22:05:25 +03:00
|
|
|
"test:coveralls": "cat ./coverage/lcov.info | coveralls",
|
2020-04-03 22:48:07 +03:00
|
|
|
"test:integration": "wdio tests/integration/wdio.conf.js",
|
|
|
|
"test:integration-headless": "MOZ_HEADLESS=1 wdio tests/integration/wdio.conf.js",
|
2020-04-08 19:20:24 +03:00
|
|
|
"test:integration-headless-ci": "MOZ_HEADLESS=1 ERROR_SHOTS=1 wdio tests/integration/wdio.conf.js",
|
2020-04-03 22:48:07 +03:00
|
|
|
"test:integration-docker": "MOZ_HEADLESS=1 wdio tests/integration/wdio.docker.js",
|
2022-10-18 23:03:31 +03:00
|
|
|
"test": "npm run test:db:migrate && npm run test:tests && (node scripts/is-coveralls-configured.js && npm run test:coveralls || echo 'Skipping coveralls.')"
|
2022-10-10 22:45:47 +03:00
|
|
|
},
|
|
|
|
"workspaces": [
|
|
|
|
"src"
|
|
|
|
],
|
|
|
|
"nodemonConfig": {
|
|
|
|
"events": {
|
|
|
|
"restart": "npm run build"
|
|
|
|
},
|
|
|
|
"watch": [
|
|
|
|
"./*",
|
|
|
|
".env",
|
|
|
|
".env-dist"
|
|
|
|
],
|
|
|
|
"ignore": [
|
|
|
|
"public/dist/*",
|
|
|
|
"tests/*"
|
|
|
|
],
|
|
|
|
"ext": "js,css,hbs,json,ftl"
|
|
|
|
},
|
|
|
|
"supportedLocales": "cak,cs,cy,da,de,el,en,en-CA,en-GB,es-AR,es-CL,es-ES,es-MX,fi,fr,fy-NL,gn,hu,kab,ia,id,it,ja,nb-NO,nl,nn-NO,pt-BR,pt-PT,ro,ru,sk,sl,sq,sv-SE,tr,uk,vi,zh-CN,zh-TW"
|
|
|
|
}
|