package.json 2.29 KB
Newer Older
yPhil's avatar
yPhil committed
1
2
{
  "name": "petrolette",
yPhil's avatar
v1.2.8    
yPhil committed
3
  "description": "The news reader that doesn't know you",
yPhil's avatar
yPhil committed
4
  "version": "1.3.0A",
yPhil's avatar
yPhil committed
5
  "private": true,
6
  "license": "GPL-3.0-only",
7
8
  "HTTP_PORT": 8000,
  "HTTPS_PORT": 8001,
yPhil's avatar
yPhil committed
9
  "FAVICONS_CACHE_DIR": "favicons-cache",
yPhil's avatar
yPhil committed
10
  "engines": {
11
    "node": "*"
yPhil's avatar
yPhil committed
12
  },
13
14
  "repository": {
    "type": "git",
15
    "url": "https://framagit.org/yphil/petrolette"
16
  },
yPhil's avatar
yPhil committed
17
  "scripts": {
yPhil's avatar
yPhil committed
18
19
20
21
22
23
24
    "start": "pm2 start pm2.config.json ; pm2 update",
    "start-ssl": "pm2 start pm2.config.json --env ssl",
    "restart": "pm2 restart pm2.config.json",
    "stop": "pm2 stop petrolette",
    "show": "pm2 show petrolette",
    "logs": "pm2 logs petrolette",
    "errors": "pm2 logs --err --format",
25
    "test": "mocha --timeout 30s",
yPhil's avatar
yPhil committed
26
    "coverage": "nyc npm test",
yPhil's avatar
yPhil committed
27
    "postinstall": "bower install --allow-root && cd ./node_modules/favrat ; npm i && cd ../feedrat ; npm i"
yPhil's avatar
yPhil committed
28
29
  },
  "dependencies": {
30
    "body-parser": "^1.19.0",
yPhil's avatar
yPhil committed
31
    "bower": "^1.8.12",
32
    "compression": "^1.7.4",
33
34
    "ejs": "^3.1.5",
    "express": "^4.17.1",
35
    "favrat": "git+https://framagit.org/yphil/favrat.git",
yPhil's avatar
yPhil committed
36
    "feedparser": "^2.2.10",
37
    "feedrat": "git+https://framagit.org/yphil/feedrat.git",
38
    "helmet": "^4.4.1",
yPhil's avatar
yPhil committed
39
40
    "iconv-lite": "^0.6.2",
    "idb": "^6.0.0",
41
    "morgan": "^1.10.0",
yPhil's avatar
yPhil committed
42
    "node-fetch": "^2.6.1",
yPhil's avatar
v1.2.8    
yPhil committed
43
    "npm": "^7.10.0",
44
    "pm2": "^4.5.6",
45
    "sanitize": "^2.1.0"
46
47
  },
  "devDependencies": {
48
    "mocha": "^8.3.2",
yPhil's avatar
yPhil committed
49
    "nyc": "^15.1.0",
yPhil's avatar
yPhil committed
50
    "rollup": "^2.47.0",
51
    "should": "^13.2.3"
yPhil's avatar
yPhil committed
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
  },
  "eslintConfig": {
    "parserOptions": {
      "sourceType": "module"
    },
    "env": {
      "browser": true,
      "es6": true
    },
    "globals": {
      "PTL": "readonly"
    },
    "extends": [
      "eslint:recommended"
    ],
    "rules": {
      "semi-style": ["error", "last"],
      "quotes": [
        "error",
        "double",
        {
          "avoidEscape": true
        }
      ],
      "comma-dangle": [
        "error",
        {
          "arrays": "ignore",
          "objects": "always-multiline",
          "imports": "never",
          "exports": "never",
          "functions": "ignore"
        }
      ],
      "arrow-parens": 0,
      "no-tabs": 0,
      "indent": [
        "error",
        "tab",
        {
          "SwitchCase": 1
        }
      ],
      "no-console": 1,
      "generator-star-spacing": 0
    }
yPhil's avatar
yPhil committed
98
  }
yPhil's avatar
yPhil committed
99
}