A lot of developers prefer to use Javascript libraries/frameworks to speed up their development work and improve quality of their codes. To make it easier for developers to work on our platform, we add a new function recently to allow developers to choose or change libraries with few clicks.
When a developer chooses to create an app from scratch, one of the steps is to ask the developer to choose libraries. The developer can choose as many libraries as the app needs. One thing to note is that if a library is selected for an app, the javascript files of the library will not be included as the files of the app. Instead, those javascript files will be included automatically during the delivery/building process. However, some of the libraries require resource files (for example, jQuery Mobile requires css and images). To allow developers to customize their apps, those resource files will be added as a part of the app so that developers can edit or change them later (But not for git-based apps). The css files will be referenced in the app's index file if there are any.
Developers can also change the libraires for the apps afterwards. By selecting "Manage -> Libraries", developers will be presented with a view to update the libraries for the app. (For any apps that are created before this function was introduced, jQuery 1.3.2 will be selected as it is included by default previously). This will give developers the opportunity to update libraries of existing apps. However, there are two things need to notice here:
Currently, the libraries that are available includes iScroll (for scrolling div), jQuery (the most popular Javascript library), jQuery Mobile (a jQuery UI framework for mobiles), XUI (a light weight javascript library for smart phones). We will add more libraries for developers to choose in the future.