package.json 3.24 KB
Newer Older
1
2
{
  "name": "front",
3
  "version": "0.1.0",
4
  "private": true,
5
6
  "description": "Funkwhale front-end",
  "author": "Eliot Berriot <contact@eliotberriot.com>",
7
  "scripts": {
8
    "serve": "[ ! -d src/translations ] && npm run i18n-compile; vue-cli-service serve --port ${VUE_PORT:-8080} --host ${VUE_HOST:-0.0.0.0}",
9
    "build": "scripts/i18n-compile.sh && vue-cli-service build",
10
    "test:unit": "vue-cli-service test:unit --reporter mocha-junit-reporter",
heyarne's avatar
heyarne committed
11
    "lint": "eslint $(git status --porcelain --untracked-files=no | grep -E '(A|M) ' | cut -d' ' -f3 | sed s_front/__ | grep -E '.(js|vue)$')",
12
    "i18n-compile": "scripts/i18n-compile.sh",
Agate's avatar
Agate committed
13
14
15
    "i18n-extract": "scripts/i18n-extract.sh",
    "fix-fomantic-css": "scripts/fix-fomantic-css.sh",
    "postinstall": "yarn run fix-fomantic-css"
16
17
  },
  "dependencies": {
18
    "axios": "^0.21.1",
19
    "axios-auth-refresh": "^2.2.6",
Agate's avatar
Agate committed
20
    "core-js": "^3.6.4",
21
    "diff": "^4.0.1",
Agate's avatar
Agate committed
22
    "django-channels": "1.1.6",
23
    "focus-trap": "^5.1.0",
24
    "fomantic-ui-css": "^2.8.3",
25
    "howler": "^2.2.1",
26
    "js-logger": "^1.4.1",
27
    "lodash": "^4.17.21",
28
    "moment": "^2.22.2",
29
    "qs": "^6.7.0",
30
    "register-service-worker": "^1.6.2",
31
    "sanitize-html": "^2.3.3",
Agate's avatar
Agate committed
32
    "sass": "^1.26.5",
Agate's avatar
Agate committed
33
    "showdown": "^1.8.6",
Agate's avatar
Agate committed
34
    "text-clipper": "^1.3.0",
35
    "vue": "^2.6.10",
Agate's avatar
Agate committed
36
    "vue-gettext": "^2.1.0",
37
    "vue-lazyload": "^1.2.6",
38
    "vue-plyr": "^5.0.4",
39
40
41
    "vue-router": "^3.0.1",
    "vue-upload-component": "^2.8.11",
    "vuedraggable": "^2.16.0",
42
    "vuex": "^3.0.1",
43
    "vuex-persistedstate": "^2.5.4",
Agate's avatar
Agate committed
44
    "vuex-router-sync": "^5.0.0"
45
46
  },
  "devDependencies": {
heyarne's avatar
heyarne committed
47
    "@babel/eslint-parser": "^7.13.14",
Agate's avatar
Agate committed
48
49
50
51
    "@vue/cli-plugin-babel": "~4.2.2",
    "@vue/cli-plugin-pwa": "~4.2.2",
    "@vue/cli-plugin-unit-mocha": "~4.2.2",
    "@vue/cli-service": "~4.2.2",
52
53
    "@vue/test-utils": "^1.0.0-beta.20",
    "chai": "^4.1.2",
54
    "easygettext": "^2.6.3",
heyarne's avatar
heyarne committed
55
56
    "eslint": "^7.25.0",
    "eslint-config-standard": "^16.0.2",
57
    "eslint-plugin-html": "^4.0.5",
heyarne's avatar
heyarne committed
58
59
60
61
    "eslint-plugin-import": "^2.22.1",
    "eslint-plugin-node": "^11.1.0",
    "eslint-plugin-promise": "^4.3.1",
    "eslint-plugin-vue": "^7.9.0",
Agate's avatar
Agate committed
62
    "glob-all": "^3.1.0",
63
    "mocha": "^5.2.0",
64
    "mocha-junit-reporter": "^2.0.0",
65
    "moxios": "^0.4.0",
66
    "preload-webpack-plugin": "^3.0.0-beta.4",
Agate's avatar
Agate committed
67
    "purgecss-webpack-plugin": "^1.6.0",
Agate's avatar
Agate committed
68
    "sass-loader": "^8.0.2",
69
    "sinon": "^6.1.5",
70
71
    "vue-template-compiler": "^2.5.17",
    "webpack-bundle-size-analyzer": "^3.0.0"
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
  },
  "eslintConfig": {
    "root": true,
    "env": {
      "browser": true,
      "node": true
    },
    "plugins": [
      "html"
    ],
    "rules": {
      "no-console": 0,
      "no-unused-vars": [
        2,
        {
          "vars": "all",
          "args": "none"
        }
      ]
    },
    "extends": [
      "plugin:vue/essential",
      "eslint:recommended"
    ],
    "parserOptions": {
      "parser": "babel-eslint"
    }
99
  },
100
101
102
103
  "postcss": {
    "plugins": {
      "autoprefixer": {}
    }
104
105
  },
  "browserslist": [
106
107
108
109
110
111
112
113
114
115
116
117
118
119
    "IE >= 11",
    "Firefox >= 52",
    "ChromeAndroid >= 70",
    "Chrome >= 49",
    "Safari >= 9",
    "Edge >= 16",
    "Opera >= 57",
    "OperaMini >= 57",
    "Samsung >= 7",
    "FirefoxAndroid >= 63",
    "UCAndroid >= 11",
    "iOS >= 9",
    "Android >= 4",
    "not dead"
120
  ]
121
}