UNPKG

codebase-asset-optimizer

Version:

Professional CLI development tool for optimizing and managing assets in codebases. Detects unused assets, optimizes images to WebP, optimizes videos, and automatically replaces asset references. GIFs are preserved unchanged to maintain animation functiona

90 lines (89 loc) 2.7 kB
{ "name": "codebase-asset-optimizer", "version": "1.1.3", "description": "Professional CLI development tool for optimizing and managing assets in codebases. Detects unused assets, optimizes images to WebP, optimizes videos, and automatically replaces asset references. GIFs are preserved unchanged to maintain animation functionality. Install as devDependency.", "main": "dist/index.js", "types": "dist/index.d.ts", "bin": { "codebase-asset-optimizer": "dist/cli.js", "asset-optimizer": "dist/cli.js", "optimize-assets": "dist/cli.js" }, "scripts": { "build": "tsc && tsc -p tsconfig.scripts.json", "build:src": "tsc", "build:scripts": "tsc -p tsconfig.scripts.json", "dev": "ts-node src/cli.ts", "watch": "tsc --watch", "start": "node dist/cli.js", "test": "node test.js", "test:setup": "echo 'Add your test assets to test-project/public/images and test-project/public/videos'", "test:ux": "node dist/scripts/test-ux.js", "benchmark": "node dist/scripts/benchmark.js", "lint": "eslint src/**/*.ts", "format": "prettier --write src/**/*.ts", "prepare": "npm run build", "postinstall": "node dist/scripts/postinstall-safe.cjs", "setup": "node dist/cli.js setup" }, "keywords": [ "asset-optimization", "image-optimization", "video-optimization", "webp", "unused-assets", "codebase-cleanup", "cli-tool", "performance", "optimization", "build-tools", "dev-dependency", "development-tool", "devtools" ], "author": "Vlad Grecu", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/vladgrecu/codebase-asset-optimizer.git" }, "bugs": { "url": "https://github.com/vladgrecu/codebase-asset-optimizer/issues" }, "homepage": "https://github.com/vladgrecu/codebase-asset-optimizer#readme", "engines": { "node": ">=18.17.0" }, "files": [ "dist/**/*", "README.md", "LICENSE" ], "type": "module", "devDependencies": { "@types/fs-extra": "^11.0.4", "@types/mime-types": "^3.0.1", "@types/node": "^24.0.13", "@typescript-eslint/eslint-plugin": "^8.36.0", "@typescript-eslint/parser": "^8.36.0", "eslint": "^9.31.0", "nodemon": "^3.1.10", "prettier": "^3.6.2", "ts-node": "^10.9.2", "typescript": "^5.8.3" }, "dependencies": { "@types/figlet": "^1.7.0", "@types/inquirer": "^9.0.8", "chalk": "^5.4.1", "commander": "^14.0.0", "fast-glob": "^3.3.3", "figlet": "^1.8.2", "fs-extra": "^11.3.0", "glob": "^11.0.3", "inquirer": "^12.7.0", "mime-types": "^3.0.1", "ora": "^8.2.0", "sharp": "^0.34.3" } }