76 lines
2.8 KiB
JSON
76 lines
2.8 KiB
JSON
{
|
|
"name": "@0kmpo/openapi-clean-arch-generator",
|
|
"version": "1.3.11",
|
|
"description": "Angular Clean Architecture generator from OpenAPI/Swagger",
|
|
"main": "dist/main.js",
|
|
"bin": {
|
|
"generate-clean-arch": "./dist/main.js"
|
|
},
|
|
"scripts": {
|
|
"build": "tsc && cp -r templates dist/",
|
|
"postbuild": "bun -e \"const fs=require('fs'); const f='dist/main.js'; const c=fs.readFileSync(f,'utf8'); if(!c.startsWith('#!/usr/bin/env node')) fs.writeFileSync(f,'#!/usr/bin/env node\\n'+c); fs.chmodSync(f, '755');\"",
|
|
"prepublishOnly": "bun run build",
|
|
"generate": "bun dist/main.js",
|
|
"generate:dev": "bun main.ts",
|
|
"binaries": "bun run binary:mac-arm64 && bun run binary:mac-x64 && bun run binary:linux-x64 && bun run binary:linux-arm64 && bun run binary:windows",
|
|
"binary:mac-arm64": "bun build --compile --target=bun-darwin-arm64 --outfile dist/bin/generate-clean-arch-macos-arm64 main.ts",
|
|
"binary:mac-x64": "bun build --compile --target=bun-darwin-x64 --outfile dist/bin/generate-clean-arch-macos-x64 main.ts",
|
|
"binary:linux-x64": "bun build --compile --target=bun-linux-x64 --outfile dist/bin/generate-clean-arch-linux-x64 main.ts",
|
|
"binary:linux-arm64": "bun build --compile --target=bun-linux-arm64 --outfile dist/bin/generate-clean-arch-linux-arm64 main.ts",
|
|
"binary:windows": "bun build --compile --target=bun-windows-x64 --outfile dist/bin/generate-clean-arch-windows-x64.exe main.ts",
|
|
"lint": "bunx --bun eslint 'main.ts' 'src/**/*.ts' -f unix",
|
|
"lint:fix": "bunx --bun eslint 'main.ts' 'src/**/*.ts' --fix -f unix",
|
|
"format": "prettier --write .",
|
|
"setup": "bun add -g @openapitools/openapi-generator-cli"
|
|
},
|
|
"keywords": [
|
|
"openapi",
|
|
"swagger",
|
|
"angular",
|
|
"clean-architecture",
|
|
"code-generator"
|
|
],
|
|
"author": "Blas Santomé Ocampo",
|
|
"contributors": [
|
|
{
|
|
"name": "Diego Davila Freitas",
|
|
"email": "diego.davilafreitas@gmail.com",
|
|
"url": "https://www.linkedin.com/in/diegodavilafreitas"
|
|
}
|
|
],
|
|
"license": "MIT",
|
|
"files": [
|
|
"dist/",
|
|
"README.md",
|
|
"LICENSE"
|
|
],
|
|
"dependencies": {
|
|
"chalk": "^4.1.2",
|
|
"commander": "^11.1.0",
|
|
"fs-extra": "^11.2.0",
|
|
"js-yaml": "^4.1.0",
|
|
"mustache": "^4.2.0",
|
|
"prompts": "^2.4.2"
|
|
},
|
|
"engines": {
|
|
"bun": ">=1.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^10.0.1",
|
|
"@types/fs-extra": "^11.0.4",
|
|
"@types/js-yaml": "^4.0.9",
|
|
"@types/mustache": "^4.2.6",
|
|
"@types/node": "^25.5.0",
|
|
"@types/prompts": "^2.4.9",
|
|
"@typescript-eslint/eslint-plugin": "^8.57.1",
|
|
"@typescript-eslint/parser": "^8.57.1",
|
|
"eslint": "^10.1.0",
|
|
"eslint-config-prettier": "^10.1.8",
|
|
"eslint-formatter-unix": "^9.0.1",
|
|
"eslint-plugin-prettier": "^5.5.5",
|
|
"prettier": "^3.8.1",
|
|
"typescript": "^5.9.3",
|
|
"typescript-eslint": "^8.57.1"
|
|
}
|
|
}
|