2015-07-13 03:01:42 +08:00
|
|
|
{
|
|
|
|
"private": true,
|
2016-10-31 01:44:00 +08:00
|
|
|
"scripts": {
|
2022-05-13 00:27:29 +08:00
|
|
|
"build:css:dev": "sass ./resources/sass:./public/dist --embed-sources",
|
|
|
|
"build:css:watch": "sass ./resources/sass:./public/dist --watch --embed-sources",
|
2020-06-27 23:52:26 +08:00
|
|
|
"build:css:production": "sass ./resources/sass:./public/dist -s compressed",
|
2022-04-13 19:08:56 +08:00
|
|
|
"build:js:dev": "node dev/build/esbuild.js",
|
2024-05-28 22:09:50 +08:00
|
|
|
"build:js:watch": "chokidar --initial \"./resources/**/*.js\" \"./resources/**/*.mjs\" \"./resources/**/*.ts\" -c \"npm run build:js:dev\"",
|
2022-04-13 19:08:56 +08:00
|
|
|
"build:js:production": "node dev/build/esbuild.js production",
|
2020-06-27 23:52:26 +08:00
|
|
|
"build": "npm-run-all --parallel build:*:dev",
|
|
|
|
"production": "npm-run-all --parallel build:*:production",
|
2018-03-17 21:03:13 +08:00
|
|
|
"dev": "npm-run-all --parallel watch livereload",
|
2020-06-27 23:52:26 +08:00
|
|
|
"watch": "npm-run-all --parallel build:*:watch",
|
2018-03-17 21:03:13 +08:00
|
|
|
"livereload": "livereload ./public/dist/",
|
2023-04-19 05:19:27 +08:00
|
|
|
"permissions": "chown -R $USER:$USER bootstrap/cache storage public/uploads",
|
|
|
|
"lint": "eslint \"resources/**/*.js\" \"resources/**/*.mjs\"",
|
2024-07-03 18:00:57 +08:00
|
|
|
"fix": "eslint --fix \"resources/**/*.js\" \"resources/**/*.mjs\"",
|
2024-09-18 20:43:39 +08:00
|
|
|
"ts:lint": "tsc --noEmit",
|
|
|
|
"test": "jest"
|
2015-07-13 03:01:42 +08:00
|
|
|
},
|
2016-10-31 01:44:00 +08:00
|
|
|
"devDependencies": {
|
2023-12-09 18:49:28 +08:00
|
|
|
"@lezer/generator": "^1.5.1",
|
2021-11-05 07:07:36 +08:00
|
|
|
"chokidar-cli": "^3.0",
|
2024-08-26 18:49:02 +08:00
|
|
|
"esbuild": "^0.23.0",
|
2023-12-09 18:49:28 +08:00
|
|
|
"eslint": "^8.55.0",
|
2023-04-19 05:19:27 +08:00
|
|
|
"eslint-config-airbnb-base": "^15.0.0",
|
2023-12-09 18:49:28 +08:00
|
|
|
"eslint-plugin-import": "^2.29.0",
|
2024-09-18 20:43:39 +08:00
|
|
|
"jest": "^29.7.0",
|
|
|
|
"jest-environment-jsdom": "^29.7.0",
|
2021-04-07 04:55:49 +08:00
|
|
|
"livereload": "^0.9.3",
|
2018-11-28 05:47:34 +08:00
|
|
|
"npm-run-all": "^4.1.5",
|
2024-05-28 06:50:28 +08:00
|
|
|
"sass": "^1.69.5",
|
2024-09-18 20:43:39 +08:00
|
|
|
"ts-jest": "^29.2.5",
|
|
|
|
"ts-node": "^10.9.2",
|
2024-09-27 19:29:19 +08:00
|
|
|
"typescript": "5.6.*"
|
2017-04-15 01:47:33 +08:00
|
|
|
},
|
|
|
|
"dependencies": {
|
2023-12-09 18:49:28 +08:00
|
|
|
"@codemirror/commands": "^6.3.2",
|
2023-08-20 03:21:12 +08:00
|
|
|
"@codemirror/lang-css": "^6.2.1",
|
2023-12-09 18:49:28 +08:00
|
|
|
"@codemirror/lang-html": "^6.4.7",
|
|
|
|
"@codemirror/lang-javascript": "^6.2.1",
|
2023-04-15 01:08:57 +08:00
|
|
|
"@codemirror/lang-json": "^6.0.1",
|
2023-12-09 18:49:28 +08:00
|
|
|
"@codemirror/lang-markdown": "^6.2.3",
|
2023-04-17 06:48:45 +08:00
|
|
|
"@codemirror/lang-php": "^6.0.1",
|
2023-04-16 23:05:16 +08:00
|
|
|
"@codemirror/lang-xml": "^6.0.2",
|
2023-12-09 18:49:28 +08:00
|
|
|
"@codemirror/language": "^6.9.3",
|
2023-08-20 03:21:12 +08:00
|
|
|
"@codemirror/legacy-modes": "^6.3.3",
|
2023-12-09 18:49:28 +08:00
|
|
|
"@codemirror/state": "^6.3.3",
|
2023-08-20 03:21:12 +08:00
|
|
|
"@codemirror/theme-one-dark": "^6.1.2",
|
2023-12-09 18:49:28 +08:00
|
|
|
"@codemirror/view": "^6.22.2",
|
|
|
|
"@lezer/highlight": "^1.2.0",
|
2023-03-22 04:53:35 +08:00
|
|
|
"@ssddanbrown/codemirror-lang-smarty": "^1.0.0",
|
|
|
|
"@ssddanbrown/codemirror-lang-twig": "^1.0.0",
|
2024-09-18 20:43:39 +08:00
|
|
|
"@types/jest": "^29.5.13",
|
2022-08-03 03:11:02 +08:00
|
|
|
"codemirror": "^6.0.1",
|
2023-08-23 02:30:39 +08:00
|
|
|
"idb-keyval": "^6.2.1",
|
2024-04-08 21:41:51 +08:00
|
|
|
"markdown-it": "^14.1.0",
|
2018-11-04 23:40:10 +08:00
|
|
|
"markdown-it-task-lists": "^2.1.1",
|
2023-01-22 03:09:19 +08:00
|
|
|
"snabbdom": "^3.5.1",
|
2023-12-09 18:49:28 +08:00
|
|
|
"sortablejs": "^1.15.1"
|
2023-04-19 05:19:27 +08:00
|
|
|
},
|
|
|
|
"eslintConfig": {
|
|
|
|
"root": true,
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
"es2021": true
|
|
|
|
},
|
|
|
|
"extends": "airbnb-base",
|
2023-04-19 22:20:04 +08:00
|
|
|
"ignorePatterns": [
|
2024-05-28 06:50:28 +08:00
|
|
|
"resources/**/*-stub.js",
|
|
|
|
"resources/**/*.ts"
|
2023-04-19 05:19:27 +08:00
|
|
|
],
|
2023-04-19 22:20:04 +08:00
|
|
|
"overrides": [],
|
2023-04-19 05:19:27 +08:00
|
|
|
"parserOptions": {
|
|
|
|
"ecmaVersion": "latest",
|
|
|
|
"sourceType": "module"
|
|
|
|
},
|
|
|
|
"rules": {
|
2023-04-19 22:20:04 +08:00
|
|
|
"indent": [
|
|
|
|
"error",
|
|
|
|
4
|
|
|
|
],
|
|
|
|
"arrow-parens": [
|
|
|
|
"error",
|
|
|
|
"as-needed"
|
|
|
|
],
|
|
|
|
"padded-blocks": [
|
|
|
|
"error",
|
|
|
|
{
|
2023-04-19 05:19:27 +08:00
|
|
|
"blocks": "never",
|
|
|
|
"classes": "always"
|
2023-04-19 22:20:04 +08:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"object-curly-spacing": [
|
|
|
|
"error",
|
|
|
|
"never"
|
|
|
|
],
|
|
|
|
"space-before-function-paren": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"anonymous": "never",
|
|
|
|
"named": "never",
|
|
|
|
"asyncArrow": "always"
|
|
|
|
}
|
|
|
|
],
|
2023-04-19 17:46:13 +08:00
|
|
|
"import/prefer-default-export": "off",
|
2023-04-19 22:20:04 +08:00
|
|
|
"no-plusplus": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"allowForLoopAfterthoughts": true
|
|
|
|
}
|
|
|
|
],
|
2023-04-19 17:46:13 +08:00
|
|
|
"arrow-body-style": "off",
|
|
|
|
"no-restricted-syntax": "off",
|
|
|
|
"no-continue": "off",
|
2023-04-19 22:20:04 +08:00
|
|
|
"prefer-destructuring": "off",
|
|
|
|
"class-methods-use-this": "off",
|
|
|
|
"no-param-reassign": "off",
|
|
|
|
"no-console": [
|
|
|
|
"warn",
|
|
|
|
{
|
|
|
|
"allow": [
|
|
|
|
"error",
|
|
|
|
"warn"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"no-new": "off",
|
|
|
|
"max-len": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"code": 110,
|
|
|
|
"tabWidth": 4,
|
|
|
|
"ignoreUrls": true,
|
|
|
|
"ignoreComments": false,
|
|
|
|
"ignoreRegExpLiterals": true,
|
|
|
|
"ignoreStrings": true,
|
|
|
|
"ignoreTemplateLiterals": true
|
|
|
|
}
|
|
|
|
]
|
2023-04-19 05:19:27 +08:00
|
|
|
}
|
2015-07-13 03:01:42 +08:00
|
|
|
}
|
|
|
|
}
|