requirejs - Hot Towel: Why is Durandal and Require in the App folder rather than the Script folder? -


To discourage developers from customizing them, the script is coming from the idea of ​​third party libraries. This will encourage them to write extensions to make it easier in a newer version of the library. You do a good thing about other developers who understand the Durandal Library for optimization files.

However, you do not have to keep the buzz somewhere. Folder structure Whatever your heart may desire because Durandal does not apply any folder structure. It is only a recommended default setup, there are advantages to follow its pattern.

By keeping the durandal as part of your application root folder. It keeps all your amd javascript files together in a root folder. In this way, when you run the drive, you can scan all subfolders to scan / minify / scan all your html / css / js in 1 file. This is a good advantage because it is the 1 click point of your entire app.

Besides, this is a good idea because it is a different idea to keep your separate party in non-AMD javascript libraries in a separate folder structure, by the way you have all your third The party uses libraries to collapse into a separate file, the browser can cache your application separately from third-party libraries. Because third-party libraries are not changed very often, while your application will often change frequently.

But Durandal's conventions are completely configurable and you can place durandal at any place.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -