Files
czchan/package.json
2026-04-21 20:14:44 +02:00

88 lines
2.9 KiB
JSON
Executable File

{
"name": "czchan",
"version": "1.0.0-beta",
"description": "Český anonymní imageboard",
"main": "./src/main.ts",
"type": "module",
"browserslist": [
">0.0%"
],
"scripts": {
"test": "echo \"Léky teď\"",
"lint": "npx eslint .",
"backend": "npx xss-scan && npx tsc",
"js": "esbuild web/ts/main.ts --bundle --minify --outfile=public/js/bundle.tmp.js && npx babel public/js/bundle.tmp.js --out-file public/js/bundle.js && rm public/js/bundle.tmp.js",
"css": "npx sass ./web/sass:./public/css --no-source-map --style compressed && npx postcss ./public/css/**/*.css --use autoprefixer --replace",
"map-assets": "node ./dist/scripts/map_assets.js",
"build": "npm run backend && npm run js && npm run css && npm run map-assets",
"dirs": "mkdir -p ./public/{js,css,uploads,banners,captcha} ./public/uploads/thumb ./config/lists ./pages ./logs ./archive ./archive/files",
"configure": "node ./dist/scripts/configure.js",
"create-admin": "node ./dist/scripts/create_admin.js",
"get-service-lists": "node ./dist/scripts/get_service_lists.js",
"start": "node ./dist/src/main.js"
},
"repository": {
"type": "git",
"url": "https://git.czchan.org/czchan/czchan"
},
"author": "czchan.org <dev@czchan.org>",
"license": "AGPL-3.0-only",
"devDependencies": {
"@babel/cli": "^7.28.6",
"@babel/core": "^7.29.0",
"@babel/preset-env": "^7.29.2",
"@eslint/js": "^10.0.1",
"@trivago/prettier-plugin-sort-imports": "^6.0.2",
"@types/bcrypt": "^6.0.0",
"@types/cookie-parser": "^1.4.10",
"@types/encoding-japanese": "^2.2.1",
"@types/express": "^5.0.6",
"@types/formidable": "^3.5.0",
"@types/jquery": "^4.0.0",
"@types/jsonwebtoken": "^9.0.10",
"@types/node": "^25.5.0",
"@types/pg": "^8.20.0",
"@types/timestring": "^7.0.0",
"autoprefixer": "^10.4.27",
"esbuild": "^0.28.0",
"eslint": "^10.2.1",
"eslint-config-prettier": "^10.1.8",
"globals": "^17.5.0",
"postcss-cli": "^11.0.1",
"prettier": "^3.8.1",
"prettier-plugin-css-order": "^2.2.0",
"typescript-eslint": "^8.58.2"
},
"dependencies": {
"@kitajs/html": "^4.2.13",
"@kitajs/ts-html-plugin": "^4.1.4",
"@minify-html/node": "^0.18.1",
"apache-crypt": "^1.2.6",
"async-mutex": "^0.5.0",
"bcrypt": "^6.0.0",
"captcha-canvas": "^3.4.0",
"cookie-parser": "^1.4.7",
"encoding-japanese": "^2.2.0",
"execa": "^9.6.1",
"express": "^5.2.1",
"formidable": "^3.5.4",
"ioredis": "^5.10.1",
"ipaddr.js": "^2.3.0",
"jquery": "^4.0.0",
"jsonwebtoken": "^9.0.3",
"pg": "^8.20.0",
"postgres-migrations": "^5.3.0",
"prettier": "^3.8.1",
"read": "^5.0.1",
"read-last-lines": "^1.8.0",
"sass": "^1.98.0",
"sharp": "^0.34.5",
"superjson": "^2.2.6",
"timestring": "^7.0.0",
"typescript": "^5.9.3",
"unix-crypt-td-js": "^1.1.4",
"uuid": "^13.0.0",
"zod": "^4.3.6"
}
}