mirror of
https://github.com/infrost/RaptorQR.git
synced 2026-08-30 22:48:37 +08:00
468af211ad
- Rename CLI entry from qr-terminal.ts to qr-stream.ts - Rename package to qr-stream, version 0.6.0 - Add --serve / -s flag to start built-in static file server for web UI preview - Include dist/ and src/ in npm files so consumers get both bundled CLI and source code - Add static_server.ts helper using Node built-in http module - Update help text and tests for new name and --serve flag - Remove old qr-terminal.js from deployment
67 lines
1.5 KiB
JSON
67 lines
1.5 KiB
JSON
{
|
|
"name": "qr-stream",
|
|
"version": "0.6.0",
|
|
"description": "Transfer files and text via animated QR codes \u2014 CLI and web app",
|
|
"type": "module",
|
|
"main": "dist/qr-stream.js",
|
|
"bin": {
|
|
"qr-stream": "dist/qr-stream.js"
|
|
},
|
|
"files": [
|
|
"dist/",
|
|
"src/",
|
|
"README.md",
|
|
"LICENSE"
|
|
],
|
|
"engines": {
|
|
"node": ">=18"
|
|
},
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "vite build && npm run build:cli",
|
|
"preview": "vite preview",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"cli": "bun run src/cli/qr-stream.ts",
|
|
"cli:file": "bun run src/cli/qr-stream.ts",
|
|
"build:cli": "esbuild src/cli/qr-stream.ts --bundle --platform=node --target=node18 --outfile=dist/qr-stream.js --format=esm --external:node:*",
|
|
"prepublishOnly": "npm run build:cli"
|
|
},
|
|
"keywords": [
|
|
"qr",
|
|
"qr-code",
|
|
"terminal",
|
|
"cli",
|
|
"file-transfer",
|
|
"animated",
|
|
"gif",
|
|
"rlnc",
|
|
"fountain-code"
|
|
],
|
|
"author": "Alex",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/YOUR_USERNAME/qr-stream.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/YOUR_USERNAME/qr-stream/issues"
|
|
},
|
|
"homepage": "https://github.com/YOUR_USERNAME/qr-stream#readme",
|
|
"devDependencies": {
|
|
"@preact/preset-vite": "2",
|
|
"@types/bun": "latest",
|
|
"happy-dom": "17",
|
|
"typescript": "5.7.3",
|
|
"vite": "6",
|
|
"vitest": "3"
|
|
},
|
|
"dependencies": {
|
|
"fflate": "^0.8.2",
|
|
"gifenc": "^1.0.3",
|
|
"jsqr": "^1.4.0",
|
|
"preact": "10.26.5",
|
|
"qrcode-generator": "1"
|
|
}
|
|
}
|