2018-01-15 13:56:08 +03:00
|
|
|
{
|
2023-04-21 01:25:51 +03:00
|
|
|
"name": "monitor",
|
2022-05-11 02:17:52 +03:00
|
|
|
"version": "1.0.0",
|
2023-04-25 02:28:16 +03:00
|
|
|
"description": "Firefox Monitor",
|
2023-04-21 01:25:51 +03:00
|
|
|
"type": "module",
|
2018-02-09 11:15:01 +03:00
|
|
|
"engines": {
|
2022-12-06 10:55:34 +03:00
|
|
|
"node": "18.12.x",
|
2022-06-22 08:02:30 +03:00
|
|
|
"npm": "8.x"
|
2018-01-15 14:04:48 +03:00
|
|
|
},
|
2018-02-08 02:29:41 +03:00
|
|
|
"scripts": {
|
2023-04-21 01:25:51 +03:00
|
|
|
"prestart": "npm run build",
|
|
|
|
"start": "node src/app.js",
|
|
|
|
"dev": "nodemon src/app.js",
|
|
|
|
"build": "node esbuild & npm run copy:root & npm run copy:webp & npm run copy:png & npm run build:svg",
|
|
|
|
"build:svg": "svgo -f src/client/images/ -r -o dist/images",
|
|
|
|
"copy:root": "mkdir -p dist/ && cp src/client/*.* dist/",
|
|
|
|
"copy:webp": "mkdir -p dist/images/ && cp -r src/client/images/*.webp dist/images/",
|
|
|
|
"copy:png": "mkdir -p dist/images/email/ && cp -r src/client/images/email/*.png dist/images/email/",
|
|
|
|
"convert:webp": "sh src/scripts/webp.sh",
|
|
|
|
"db:migrate": "node -r dotenv/config node_modules/knex/bin/cli.js migrate:latest --knexfile src/db/knexfile.js",
|
|
|
|
"db:rollback": "node -r dotenv/config node_modules/knex/bin/cli.js migrate:rollback --knexfile src/db/knexfile.js",
|
|
|
|
"test": "NODE_OPTIONS=--loader=testdouble c8 ava",
|
|
|
|
"e2e": "playwright test src/e2e/",
|
2022-06-02 08:01:01 +03:00
|
|
|
"lint": "npm run lint:css && npm run lint:js",
|
2023-04-21 01:25:51 +03:00
|
|
|
"lint:js": "eslint .",
|
|
|
|
"lint:css": "stylelint src/client/css/",
|
2022-09-21 19:37:13 +03:00
|
|
|
"fix": "npm run fix:css && npm run fix:js",
|
|
|
|
"fix:js": "eslint . --fix",
|
2023-04-21 01:25:51 +03:00
|
|
|
"fix:css": "stylelint src/client/css/ --fix"
|
2022-10-10 22:45:47 +03:00
|
|
|
},
|
|
|
|
"nodemonConfig": {
|
|
|
|
"watch": [
|
2023-04-21 01:25:51 +03:00
|
|
|
"*",
|
|
|
|
".env"
|
2022-10-10 22:45:47 +03:00
|
|
|
],
|
|
|
|
"ignore": [
|
2023-04-21 01:25:51 +03:00
|
|
|
"src/client/*"
|
2022-10-10 22:45:47 +03:00
|
|
|
],
|
2023-04-21 01:25:51 +03:00
|
|
|
"env": {
|
|
|
|
"LIVE_RELOAD": true
|
|
|
|
},
|
|
|
|
"ext": "js,css,json,ftl,env"
|
|
|
|
},
|
|
|
|
"ava": {
|
|
|
|
"files": [
|
|
|
|
"!e2e/"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
|
|
|
"url": "git+https://github.com/mozilla/blurts-server.git"
|
2022-10-10 22:45:47 +03:00
|
|
|
},
|
2023-04-21 01:25:51 +03:00
|
|
|
"homepage": "https://github.com/mozilla/blurts-server",
|
|
|
|
"license": "MPL-2.0",
|
2023-02-09 21:32:58 +03:00
|
|
|
"volta": {
|
|
|
|
"node": "18.12.1",
|
|
|
|
"npm": "8.19.3"
|
2023-04-21 01:25:51 +03:00
|
|
|
},
|
|
|
|
"dependencies": {
|
|
|
|
"@fluent/bundle": "^0.17.1",
|
|
|
|
"@fluent/langneg": "^0.6.2",
|
|
|
|
"@sentry/node": "^7.40.0",
|
|
|
|
"@sentry/tracing": "^7.38.0",
|
|
|
|
"client-oauth2": "^4.3.3",
|
|
|
|
"connect-redis": "^7.0.0",
|
|
|
|
"cookie-parser": "^1.4.6",
|
|
|
|
"csrf-csrf": "^2.2.2",
|
|
|
|
"dotenv": "^16.0.3",
|
|
|
|
"esbuild": "^0.17.8",
|
|
|
|
"express": "^4.18.2",
|
|
|
|
"express-rate-limit": "^6.7.0",
|
|
|
|
"express-session": "^1.17.3",
|
|
|
|
"helmet": "^6.0.0",
|
|
|
|
"knex": "^2.4.2",
|
|
|
|
"mozlog": "^3.0.2",
|
|
|
|
"nodemailer": "^6.9.1",
|
|
|
|
"pg": "^8.9.0",
|
|
|
|
"redis": "^4.6.5",
|
|
|
|
"uuid": "^9.0.0"
|
|
|
|
},
|
|
|
|
"devDependencies": {
|
|
|
|
"@playwright/test": "^1.30.0",
|
|
|
|
"ava": "^5.1.0",
|
|
|
|
"c8": "^7.12.0",
|
|
|
|
"eslint": "^8.32.0",
|
|
|
|
"eslint-config-standard": "^17.0.0",
|
|
|
|
"eslint-plugin-check-file": "^2.2.0",
|
|
|
|
"eslint-plugin-header": "^3.1.1",
|
|
|
|
"eslint-plugin-jsdoc": "^40.0.0",
|
|
|
|
"node-mocks-http": "^1.12.1",
|
|
|
|
"nodemon": "^2.0.20",
|
|
|
|
"redis-mock": "^0.56.3",
|
|
|
|
"svgo": "^3.0.2",
|
|
|
|
"testdouble": "^3.16.8"
|
2023-02-09 21:32:58 +03:00
|
|
|
}
|
2022-10-10 22:45:47 +03:00
|
|
|
}
|