]> BookStack Code Mirror - bookstack/blob - package.json
Thumbnails: Fixed thumnail orientation
[bookstack] / package.json
1 {
2   "private": true,
3   "scripts": {
4     "build:css:dev": "sass ./resources/sass:./public/dist --embed-sources",
5     "build:css:watch": "sass ./resources/sass:./public/dist --watch --embed-sources",
6     "build:css:production": "sass ./resources/sass:./public/dist -s compressed",
7     "build:js:dev": "node dev/build/esbuild.js",
8     "build:js:watch": "chokidar --initial \"./resources/**/*.js\" \"./resources/**/*.mjs\" \"./resources/**/*.ts\" -c \"npm run build:js:dev\"",
9     "build:js:production": "node dev/build/esbuild.js production",
10     "build": "npm-run-all --parallel build:*:dev",
11     "production": "npm-run-all --parallel build:*:production",
12     "dev": "npm-run-all --parallel watch livereload",
13     "watch": "npm-run-all --parallel build:*:watch",
14     "livereload": "livereload ./public/dist/",
15     "permissions": "chown -R $USER:$USER bootstrap/cache storage public/uploads",
16     "lint": "eslint \"resources/**/*.js\" \"resources/**/*.mjs\"",
17     "fix": "eslint --fix \"resources/**/*.js\" \"resources/**/*.mjs\"",
18     "ts:lint": "tsc --noEmit",
19     "test": "jest"
20   },
21   "devDependencies": {
22     "@lezer/generator": "^1.7.2",
23     "chokidar-cli": "^3.0",
24     "esbuild": "^0.24.0",
25     "eslint": "^8.57.1",
26     "eslint-config-airbnb-base": "^15.0.0",
27     "eslint-plugin-import": "^2.31.0",
28     "jest": "^29.7.0",
29     "jest-environment-jsdom": "^29.7.0",
30     "livereload": "^0.9.3",
31     "npm-run-all": "^4.1.5",
32     "sass": "^1.82.0",
33     "ts-jest": "^29.2.5",
34     "ts-node": "^10.9.2",
35     "typescript": "5.7.*"
36   },
37   "dependencies": {
38     "@codemirror/commands": "^6.7.1",
39     "@codemirror/lang-css": "^6.3.1",
40     "@codemirror/lang-html": "^6.4.9",
41     "@codemirror/lang-javascript": "^6.2.2",
42     "@codemirror/lang-json": "^6.0.1",
43     "@codemirror/lang-markdown": "^6.3.1",
44     "@codemirror/lang-php": "^6.0.1",
45     "@codemirror/lang-xml": "^6.1.0",
46     "@codemirror/language": "^6.10.6",
47     "@codemirror/legacy-modes": "^6.4.2",
48     "@codemirror/state": "^6.5.0",
49     "@codemirror/theme-one-dark": "^6.1.2",
50     "@codemirror/view": "^6.35.2",
51     "@lezer/highlight": "^1.2.1",
52     "@ssddanbrown/codemirror-lang-smarty": "^1.0.0",
53     "@ssddanbrown/codemirror-lang-twig": "^1.0.0",
54     "@types/jest": "^29.5.14",
55     "codemirror": "^6.0.1",
56     "idb-keyval": "^6.2.1",
57     "markdown-it": "^14.1.0",
58     "markdown-it-task-lists": "^2.1.1",
59     "snabbdom": "^3.6.2",
60     "sortablejs": "^1.15.6"
61   },
62   "eslintConfig": {
63     "root": true,
64     "env": {
65       "browser": true,
66       "es2021": true
67     },
68     "extends": "airbnb-base",
69     "ignorePatterns": [
70       "resources/**/*-stub.js",
71       "resources/**/*.ts"
72     ],
73     "overrides": [],
74     "parserOptions": {
75       "ecmaVersion": "latest",
76       "sourceType": "module"
77     },
78     "rules": {
79       "indent": [
80         "error",
81         4
82       ],
83       "arrow-parens": [
84         "error",
85         "as-needed"
86       ],
87       "padded-blocks": [
88         "error",
89         {
90           "blocks": "never",
91           "classes": "always"
92         }
93       ],
94       "object-curly-spacing": [
95         "error",
96         "never"
97       ],
98       "space-before-function-paren": [
99         "error",
100         {
101           "anonymous": "never",
102           "named": "never",
103           "asyncArrow": "always"
104         }
105       ],
106       "import/prefer-default-export": "off",
107       "no-plusplus": [
108         "error",
109         {
110           "allowForLoopAfterthoughts": true
111         }
112       ],
113       "arrow-body-style": "off",
114       "no-restricted-syntax": "off",
115       "no-continue": "off",
116       "prefer-destructuring": "off",
117       "class-methods-use-this": "off",
118       "no-param-reassign": "off",
119       "no-console": [
120         "warn",
121         {
122           "allow": [
123             "error",
124             "warn"
125           ]
126         }
127       ],
128       "no-new": "off",
129       "max-len": [
130         "error",
131         {
132           "code": 110,
133           "tabWidth": 4,
134           "ignoreUrls": true,
135           "ignoreComments": false,
136           "ignoreRegExpLiterals": true,
137           "ignoreStrings": true,
138           "ignoreTemplateLiterals": true
139         }
140       ]
141     }
142   }
143 }