{"repo":"imjuni/ctix","free":true,"listed":false,"github":"https://github.com/imjuni/ctix","clone":"git clone https://github.com/imjuni/ctix.git","description":"CLI to generate barrel file for webpack, rollup entrypoint","language":"TypeScript","stars":99,"topics":["webpack","automation","cli","index","rollupjs","typescript","barrel","barrel-files","barrels"],"license":"MIT","category":"cli-tools","readme_excerpt":"ctix - Next generation Create TypeScript barrel entrypoint barrel file automatically generated cli tool Why ctix? Have you ever developed a library project in the TypeScript language? Unlike API servers or desktop applications, library projects do not have executable scripts or functions. Therefore, it is common to organize a number of functions and variables to be included in the library in an barrel file. However, it is inconvenient to rewrite the barrel file every time you add a function or variable, and it is easy to make a mistake and miss a function or variable you intended. ctix uses the TypeScript compiler API to automatically generate the barrel file by searching your TypeScript project for functions and variables with the export keyword added. To summarize, 1. automatically extracts statement with the export keyword applied 1. generate a single barrel file or directory-specific barrel files 1. automatically generate configuration files via interactive prompts 1. automatically add type keyword to interface, type aliases to indicate they are pure types - eg. export { type IAmSuperHero } from './marvel'; 1. can be set to exception files via comments in source code files (eslint style) 1. always generates a compilable barrel file because it uses the TypeScript compiler API In addition, ctix will auto-generate barrel files so that a single index.d.ts file can be generated correctly when using the rollup-plugin-dts plugin. Now you can develop your TypeScript library proje","default_branch":null,"files":null,"tree":[],"storefront":"/r/imjuni","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/imjuni/ctix/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}