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