146 lines
4.8 KiB
JSON
146 lines
4.8 KiB
JSON
{
|
|
"name": "sealious-app",
|
|
"version": "0.1.0",
|
|
"description": "",
|
|
"main": "./dist/back/index.js",
|
|
"type": "module",
|
|
"scripts": {
|
|
"start": "docker compose up -d db && node .",
|
|
"start-watch": "SEALIOUS_PORT=$SEALIOUS_PORT SEALIOUS_BASE_URL=$SEALIOUS_BASE_URL nodemon --enable-source-maps --ignore ./uploaded_files --ignore ./cache .",
|
|
"typecheck:back": "tsc --noEmit --target es6 --lib es2021,dom -p tsconfig-back.json",
|
|
"typecheck:front": "tsc --noEmit --target es6 --lib es2021,dom -p tsconfig-front.json",
|
|
"typecheck": "npm run typecheck:back && npm run typecheck:front",
|
|
"prewatch": "rm -rf dist/* && npm run build --ignore-scripts",
|
|
"build": "rm -rf dist && sealgen build ",
|
|
"postbuild": "npm run typecheck && npm run lint",
|
|
"watch": "multiple-scripts-tmux -p watch",
|
|
"reset-db": "docker compose down -v && docker compose up -d",
|
|
"install-test-deps": "npx playwright install firefox && cd webhint && npm install && ./use-fork.sh",
|
|
"pretest": "npm run build && docker compose up -d",
|
|
"test": "node test.cjs",
|
|
"full-test": "WITH_WEBHINT=TRUE npm run test",
|
|
"prepare": "npm run build && npm run install-test-deps",
|
|
"lint": "eslint src",
|
|
"lint-report": "npm run --silent lint -- --format json > .eslint-result.json",
|
|
"preinstrument": "npm run build --ignore-scripts && rm -fr .xunit coverage dist-instrumented",
|
|
"instrument": "npx nyc instrument --exclude \"\" dist dist-instrumented",
|
|
"pretest-reports": "npm run instrument",
|
|
"test-reports": "npx nyc --exclude \"\" ./node_modules/.bin/mocha --recursive --timeout=10000 --require source-map-support/register 'dist-instrumented/**/*.test.js' --exit && nyc report --reporter cobertura --exclude \"\"",
|
|
"precover-html": "rm -rf coverate/lcov-report",
|
|
"cover-html": "npm run test-reports && nyc report --reporter lcov --exclude \"\" && xdg-open coverage/lcov-report/index.html"
|
|
},
|
|
"tmux-scripts": {
|
|
"watch": [
|
|
"npm run typecheck:back -- --watch",
|
|
"npx sealgen build --watch",
|
|
"npm run typecheck:front -- --watch",
|
|
"npm run start-watch"
|
|
]
|
|
},
|
|
"sealgen": {
|
|
"styleDirs": [
|
|
"node_modules/@sealcode/jdd-editor/assets"
|
|
],
|
|
"controllerDirs": [
|
|
"node_modules/@sealcode/jdd-editor/src/controllers"
|
|
],
|
|
"copyToPublic": [
|
|
{
|
|
"from": "node_modules/@sealcode/jdd-editor/assets/icons",
|
|
"to": "dist/jdd-page/icons"
|
|
},
|
|
{
|
|
"from": "node_modules/@sealcode/simplemde/dist/simplemde.min.css",
|
|
"to": "dist/simplemde.min.css"
|
|
},
|
|
{
|
|
"from": "node_modules/@sealcode/simplemde/dist/simplemde.min.js",
|
|
"to": "dist/simplemde.min.js"
|
|
},
|
|
{
|
|
"from": "node_modules/@sealcode/sealcodemirror/lib/codemirror.js",
|
|
"to": "dist/codemirror.js"
|
|
},
|
|
{
|
|
"from": "node_modules/@sealcode/sealcodemirror/lib/codemirror.css",
|
|
"to": "dist/codemirror.css"
|
|
},
|
|
{
|
|
"from": "node_modules/@sealcode/sealcodemirror/mode/javascript/javascript.js",
|
|
"to": "dist/codemirror-javascript-mode.js"
|
|
}
|
|
]
|
|
},
|
|
"author": "",
|
|
"license": "ISC",
|
|
"dependencies": {
|
|
"@babel/core": "^7.12.10",
|
|
"@hotwired/turbo": "^8.0.2",
|
|
"@koa/router": "^12.0.1",
|
|
"@sealcode/add-to-head": "^1.0.0",
|
|
"@sealcode/crud-ui": "^0.0.17",
|
|
"@sealcode/file-manager": "^1.0.2",
|
|
"@sealcode/jdd": "^0.6.6",
|
|
"@sealcode/jdd-editor": "^0.1.9",
|
|
"@sealcode/sealgen": "^0.17.15",
|
|
"@sealcode/simplemde": "^1.12.0-beta12",
|
|
"@sealcode/ts-predicates": "^0.6.2",
|
|
"@types/kill-port": "^2.0.0",
|
|
"@types/leaflet": "^1.9.8",
|
|
"@types/object-hash": "^3.0.6",
|
|
"@types/simplemde": "^1.11.11",
|
|
"colord": "^2.9.3",
|
|
"dotenv": "^16.4.5",
|
|
"escape-goat": "^4.0.0",
|
|
"get-port": "^7.0.0",
|
|
"js-convert-case": "^4.2.0",
|
|
"koa-responsive-image-router": "^0.2.37",
|
|
"locreq": "^3.0.0",
|
|
"meilisearch": "^0.41.0",
|
|
"multiple-scripts-tmux": "^1.0.4",
|
|
"nodemon": "^3.0.1",
|
|
"object-path": "^0.11.8",
|
|
"qs": "^6.12.0",
|
|
"sealious": "^0.19.36",
|
|
"slug": "^9.1.0",
|
|
"stimulus": "^3.2.2",
|
|
"tempstream": "^0.4.5",
|
|
"throttle-debounce": "^5.0.2",
|
|
"turndown": "^7.2.0"
|
|
},
|
|
"devDependencies": {
|
|
"@playwright/test": "^1.44.1",
|
|
"@sealcode/ansi-html-stream": "^1.0.1",
|
|
"@types/hotwired__turbo": "^8.0.2",
|
|
"@types/koa__router": "^12.0.4",
|
|
"@types/node": "^20.8.4",
|
|
"@types/object-path": "^0.11.4",
|
|
"@types/slug": "^5.0.9",
|
|
"@types/tedious": "^4.0.7",
|
|
"@types/throttle-debounce": "^5.0.2",
|
|
"@types/turndown": "^5.0.4",
|
|
"@types/uuid": "^9.0.8",
|
|
"@typescript-eslint/eslint-plugin": "7.4",
|
|
"@typescript-eslint/parser": "7.4",
|
|
"axios": "^1.6.2",
|
|
"chalk": "^5.3.0",
|
|
"create-stylelint": "^0.5.0",
|
|
"eslint": "8.57",
|
|
"eslint-config-prettier": "^7.2.0",
|
|
"eslint-plugin-prettier": "^3.3.1",
|
|
"kill-port": "^1.6.1",
|
|
"mocha": "^10.4.0",
|
|
"mri": "^1.2.0",
|
|
"nyc": "^15.1.0",
|
|
"prettier": "^2.2.1",
|
|
"stylelint": "^16.10.0",
|
|
"stylelint-config-standard": "^36.0.1",
|
|
"ts-loader": "^8.0.14",
|
|
"ts-node": "^10.9.2",
|
|
"typescript": "^5.6"
|
|
},
|
|
"engines": {
|
|
"node": ">=21.0.0"
|
|
}
|
|
}
|