How to create a WordPress theme using TypeScript and best practices for selling it?
I am planning to create a WordPress theme sell in themeforest.net and I prefer using TypeScript over JavaScript because TypeScript makes the code look cleaner, easier to understand, and easier to debug. Most importantly, it will be easier to update and extend the theme in the future. I am wondering if I can sell a theme built with these technologies? If so, how should I organize the directory structure and which build tools should I use (e.g., Vite, Webpack, etc.)? When selling the theme, should I upload only the files that the end user will use, or do I need to include all the .ts, .scss files, node_modules, etc.?