This project focused on generating an angular module which is easier to update.
Every angular native module is in ResourceManifest.cs
file. In order to a specific version all you have to do
is download the version with folder sturcture intact. Add it to Scripts
directory. then use addVersion(version, manifest)
to add it or just change the version number and it'll add your version.
If you want to add something, please add the script to ResourceManifest.cs
then create a pull request.
manifest.DefineScript("AngularJs")
.SetUrl(baseDir + "angular.min.js", baseDir + "angular.js")
.SetVersion(version)
.SetCdn(string.Format("//ajax.googleapis.com/ajax/libs/angularjs/{0}/angular.min.js", version),
string.Format("//ajax.googleapis.com/ajax/libs/angularjs/{0}/angular.js", version),
true);
manifest.DefineStyle("Angular.Csp")
.SetUrl(baseDir + "angular.csp.css")
.SetVersion(version);
manifest.DefineScript("AngularJs.Aria")
.SetUrl(baseDir + "angular-aria.min.js", baseDir + "angular-aria.js")
.SetDependencies("AngularJs")
.SetVersion(version);
manifest.DefineScript("AngularJs.Animate")
.SetUrl(baseDir + "angular-animate.min.js", baseDir + "angular-animate.js")
.SetDependencies("AngularJs")
.SetVersion(version);
manifest.DefineScript("AngularJs.Cookies")
.SetUrl(baseDir + "angular-cookies.min.js", baseDir + "angular-cookies.js")
.SetDependencies("AngularJs")
.SetVersion(version);
manifest.DefineScript("AngularJs.Loader")
.SetUrl(baseDir + "angular-loader.min.js", baseDir + "angular-loader.js")
.SetDependencies("AngularJs")
.SetVersion(version);
manifest.DefineScript("AngularJs.Message.Format")
.SetUrl(baseDir + "angular-message-format.min.js", baseDir + "angular-message-format.js")
.SetDependencies("AngularJs")
.SetVersion(version);
manifest.DefineScript("AngularJs.Messages")
.SetUrl(baseDir + "angular-messages.min.js", baseDir + "angular-messages.js")
.SetDependencies("AngularJs")
.SetVersion(version);
manifest.DefineScript("AngularJs.Mocks")
.SetUrl(baseDir + "angular-mocks.min.js", baseDir + "angular-mocks.js")
.SetDependencies("AngularJs")
.SetVersion(version);
manifest.DefineScript("AngularJs.Resource")
.SetUrl(baseDir + "angular-resource.min.js", baseDir + "angular-resource.js")
.SetDependencies("AngularJs")
.SetVersion(version);
manifest.DefineScript("AngularJs.Route")
.SetUrl(baseDir + "angular-route.min.js", baseDir + "angular-route.js")
.SetDependencies("AngularJs")
.SetVersion(version);
manifest.DefineScript("AngularJs.Sanitize")
.SetUrl(baseDir + "angular-sanitize.min.js", baseDir + "angular-sanitize.js")
.SetDependencies("AngularJs")
.SetVersion(version);
manifest.DefineScript("AngularJs.Scenario")
.SetUrl(baseDir + "angular-scenario.min.js", baseDir + "angular-scenario.js")
.SetDependencies("AngularJs")
.SetVersion(version);
manifest.DefineScript("AngularJs.Touch")
.SetUrl(baseDir + "angular-touch.min.js", baseDir + "angular-touch.js")
.SetDependencies("AngularJs")
.SetVersion(version);