Our great sponsors
-
dependency-cruiser
Validate and visualize dependencies. Your rules. JavaScript, TypeScript, CoffeeScript. ES6, CommonJS, AMD.
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
With dependency-cruiser, you can enforce which imports are allowed. This enables you to create an architecture fitness function that ensures your code continues to adhere to the initial design. You can also visualize your dependencies to gain a clearer understanding of your code's actual structure, allowing you to compare it with your mental model and make improvements where necessary.
Unfortunately, the production codebase where I applied dependency-cruiser is not public. However, I did conduct some experiments during a Xebia Innovation Day. That code can be found on GitHub.
Related posts
- [AskJS] What ESLint rules do you use to achieve better isolation of components?
- how to automatically run a script / yarn command before each dev hot-reload build
- Deprank: Use PageRank to find the most important files in your codebase
- Developing your own Chrome Extension - Fixing Errors with ts-morph and using Buns API (Part 4)
- TypeStat: Converts JavaScript to TypeScript and TypeScript to Better TypeScript