一個我目前有一些解決方案的工作系統,每個都有一個MVC UI項目(請參閱下面的示例佈局)。大部分UI項目都分享相當數量的JavaScript和CSS。目前,我們正在複製和合並對每個UI項目中的公共JS進行的任何更改(不同的解決方案),這是不理想的。跨多個解決方案常見的JavaScript文件
下面是一些解決方案的簡化圖:
Solution1
-- Solution1-UI
-- Scripts directory (includes both shared JS and JS specific to this UI project)
Solution2 solution
-- Solution2-UI
-- Scripts directory (includes both shared JS and JS specific to this UI project)
Solution3 solution
-- Solution3-UI
-- Scripts directory (includes both shared JS and JS specific to this UI project)
... other solutiuons with the same issue
我會非常喜歡做的就是創建一個通用的解決方案或包(或東西),它可以包含常見的JS和可參考所有受影響的解決方案(解決方案1,解決方案2等)。
快速搜索顯示,如果項目採用相同的解決方案(即How do you share scripts among multiple projects in one solution?),則可以完成此操作,但我們的用例有所不同。
有哪些的實現這一目標的認可的方式?
這確實是一個奇妙的想法。我會把它交給團隊。 –