UNPKG

quick-erd

Version:

quick and easy text-based ERD + code generator for migration, query, typescript types and orm entity

125 lines (124 loc) 4.09 kB
{ "name": "quick-erd", "version": "4.27.0", "type": "commonjs", "sideEffects": false, "description": "quick and easy text-based ERD + code generator for migration, query, typescript types and orm entity", "keywords": [ "erd", "diagram", "offline", "local-first" ], "author": "Beeno Tung <aabbcc1241@yahoo.com.hk> (https://beeno-tung.surge.sh)", "license": "BSD-2-Clause", "repository": { "type": "git", "url": "git+https://github.com/beenotung/quick-erd.git" }, "homepage": "https://github.com/beenotung/quick-erd#readme", "bugs": { "url": "https://github.com/beenotung/quick-erd/issues" }, "main": "dist/index.js", "types": "dist/index.d.ts", "bin": { "auto-migrate": "dist/cli/auto-migrate.js", "pg-to-erd": "dist/cli/pg-to-erd.js", "mysql-to-erd": "dist/cli/mysql-to-erd.js", "mssql-to-erd": "dist/cli/mssql-to-erd.js", "sqlite-to-erd": "dist/cli/sqlite-to-erd.js", "format-erd": "dist/cli/format-erd.js", "erd-ui": "dist/cli/erd-ui.js", "erd-to-sqlite": "dist/cli/erd-to-sqlite.js", "erd-to-types": "dist/cli/erd-to-types.js", "erd-to-proxy": "dist/cli/erd-to-proxy.js", "erd-to-knex": "dist/cli/erd-to-knex.js", "erd-to-spring": "dist/cli/erd-to-spring.js" }, "files": [ "build", "dist" ], "scripts": { "start": "npm run build:client && serve-lite build", "dev": "cd examples/java-project && ts-node ../../src/cli/erd-to-spring h2 < erd.txt", "upload": "run-s clean build:client surge:all", "type:module": "node set-type.js module", "type:commonjs": "node set-type.js commonjs", "build:client": "mkdir -p build/icons && run-p build:client:*", "build:client:js": "esbuild --target=es2022 --bundle src/client/main.ts --outfile=build/main.js", "build:client:css": "sass src/client/style.scss:build/style.css", "build:client:html": "cp src/client/index.html build/index.html", "build:client:icon": "cp lib/ionicons/*.svg build/icons/", "surge:all": "run-s surge:erd surge:quick", "surge:erd": "surge build https://erd.surge.sh", "surge:quick": "surge build https://quick-erd.surge.sh", "clean": "rimraf dist build", "format": "run-s format:*", "format:prettier": "prettier --write .", "format:json": "format-json-cli", "build": "run-s type:commonjs clean tsc build:client", "tsc": "tsc -p tsconfig.cjs.json", "test": "run-s format tsc mocha", "mocha": "ts-mocha \"{src,test}/**/*.spec.ts\"", "coverage": "nyc npm run mocha -- --reporter=progress", "report:update": "nyc --reporter=lcov npm run mocha -- --reporter=progress", "report:open": "open-cli coverage/lcov-report/index.html", "report": "run-s report:update report:open", "preversion": "npm test", "prepublishOnly": "npm run build" }, "dependencies": { "fastest-levenshtein": "^1.0.16" }, "optionalDependencies": { "@types/better-sqlite3": "^7.6.12", "better-sqlite3": "^11.8.1", "dotenv": "^16.4.7", "express": "^4.21.2", "knex": "^3.1.0", "listening-on": "^2.0.9", "mysql": "^2.18.1", "pg": "^8.13.3", "tedious": "^18.6.1" }, "peerDependencies": { "dotenv": "^16.3.1", "express": "^4.19.2", "knex": "^2 || ^3", "listening-on": "^2.0.9" }, "devDependencies": { "@types/better-sqlite3": "^7.6.9", "@types/chai": "^4.3.20", "@types/express": "^4.17.21", "@types/mocha": "^10.0.10", "@types/node": "^22.13.4", "better-sqlite3": "^10.0.0", "chai": "^4.5.0", "esbuild": "^0.25.0", "format-json-cli": "^1.0.2", "knex": "^2 || ^3", "mocha": "^10.8.2", "npm-run-all": "^4.1.5", "nyc": "^17.1.0", "oklab.ts": "^2.2.7", "open-cli": "^8.0.0", "prettier": "^3.5.1", "rimraf": "^6.0.1", "sass": "^1.85.0", "serve-lite": "^1.2.3", "surge": "^0.24.6", "ts-mocha": "^10.0.0", "ts-node": "^10.9.2", "ts-node-dev": "^2.0.0", "typescript": "^5.7.3" }, "pnpm": { "onlyBuiltDependencies": [ "better-sqlite3", "esbuild" ] } }