{"id":25900816,"url":"https://github.com/cyanheads/scripts-ts","last_synced_at":"2026-06-12T14:31:24.102Z","repository":{"id":280252401,"uuid":"941431472","full_name":"cyanheads/scripts-ts","owner":"cyanheads","description":"A cross-platform collection of standalone TypeScript utility scripts that automate common development tasks like cleaning artifacts, generating project structures, setting executable permissions, and updating dependencies.","archived":false,"fork":false,"pushed_at":"2025-03-02T10:13:06.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-01T08:15:06.485Z","etag":null,"topics":["automation","build-scripts","cross-platform","dev-tools","ts","typescript","utilities"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cyanheads.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-02T09:23:09.000Z","updated_at":"2025-03-02T10:12:23.000Z","dependencies_parsed_at":"2025-03-02T09:48:34.894Z","dependency_job_id":"fd8ea87e-f629-4fa8-9321-365895f99e89","html_url":"https://github.com/cyanheads/scripts-ts","commit_stats":null,"previous_names":["cyanheads/scripts-ts"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/cyanheads/scripts-ts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyanheads%2Fscripts-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyanheads%2Fscripts-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyanheads%2Fscripts-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyanheads%2Fscripts-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cyanheads","download_url":"https://codeload.github.com/cyanheads/scripts-ts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyanheads%2Fscripts-ts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34249560,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","build-scripts","cross-platform","dev-tools","ts","typescript","utilities"],"created_at":"2025-03-03T02:19:10.691Z","updated_at":"2026-06-12T14:31:24.084Z","avatar_url":"https://github.com/cyanheads.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🛠️ TypeScript Project Scripts\n\n\u003cdiv align=\"center\"\u003e\n\n[![Node.js Version](https://img.shields.io/badge/node-%3E%3D%2016.0.0-brightgreen.svg)](https://nodejs.org/)\n[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE)\n[![TypeScript](https://img.shields.io/badge/TypeScript-Ready-blue.svg)](https://www.typescriptlang.org/)\n[![GitHub Repository](https://img.shields.io/badge/GitHub-Repository-24292e)](https://github.com/cyanheads/scripts-ts)\n\nA collection of standalone, platform-agnostic TypeScript utility scripts for managing common development tasks in any project.\n\n\u003c/div\u003e\n\n---\n\n## ✨ Features\n\n- **🧹 Clean Script** - Remove build artifacts and temp directories\n- **🌳 Generate Tree** - Create a markdown representation of your project structure\n- **🔑 Make Executable** - Set executable permissions for script files (chmod +x)\n- **📦 Update Dependencies** - Update package.json dependencies to latest versions\n\nAll scripts are:\n- 🔄 **Cross-platform** - Works on Windows, macOS, and Linux\n- 🧩 **Standalone** - Each script is self-contained\n- 🌐 **Project-agnostic** - Use in any TypeScript/JavaScript project\n- 🛡️ **Typed** - Full TypeScript definitions and type safety\n\n## 📥 Installation\n\n```bash\n# Install from npm\nnpm install scripts-ts --save-dev\n\n# Or yarn\nyarn add scripts-ts --dev\n\n# Or pnpm\npnpm add -D scripts-ts\n```\n\n### 🔨 Build from Source\n\n```bash\n# Clone the repository\ngit clone https://github.com/cyanheads/scripts-ts.git\n\n# Install dependencies\nnpm install\n\n# Build the project\nnpm run build\n```\n\n## 📚 Usage\n\n### Clean Script\n\n```bash\n# Default (cleans dist and logs directories)\nnpm run clean\n\n# Specify custom directories\nnpm run clean temp coverage node_modules/.cache\n\n# Direct usage\nnpx ts-clean temp cache\n```\n\n### Generate Tree Script\n\n```bash\n# Default (outputs to docs/tree.md)\nnpm run tree\n\n# Custom output path\nnpm run tree ./documentation/project-structure.md\n\n# Limit depth\nnpm run tree --depth=3\n\n# Help\nnpm run tree --help\n```\n\n### Make Executable Script\n\n```bash\n# Default (makes dist/index.js executable)\nnpm run make-executable\n\n# Specify files\nnpm run make-executable dist/cli.js bin/*.js\n\n# Direct usage\nnpx ts-make-executable dist/cli.js\n```\n\n### Update Dependencies Script\n\n```bash\n# Update all dependencies\nnpm run update-deps\n\n# Update specific packages\nnpm run update-deps react react-dom\n\n# Update to minor versions only\nnpm run update-deps --target=minor\n\n# Dry run\nnpm run update-deps --dry-run\n```\n\n## 🔧 Integration\n\nAdd to your project's package.json:\n\n```json\n\"scripts\": {\n  \"clean\": \"scripts-ts-clean\",\n  \"tree\": \"scripts-ts-tree\",\n  \"make-executable\": \"scripts-ts-make-executable\",\n  \"update-deps\": \"scripts-ts-update-deps\",\n  \"rebuild\": \"npm run clean \u0026\u0026 npm run build\",\n  \"postbuild\": \"npm run make-executable\"\n}\n```\n\n## 🛠️ Customization\n\nEach script is designed to be easily customizable:\n\n1. Copy individual script files into your project\n2. Modify default values to match your project needs\n3. Add additional functionality as required\n\n## 🤝 Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add some amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## 📄 License\n\nThis project is licensed under the [Apache License 2.0](LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyanheads%2Fscripts-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcyanheads%2Fscripts-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyanheads%2Fscripts-ts/lists"}