diff --git a/src/app/config/vendor-dependencies/vendor-dependencies.ts b/src/app/config/vendor-dependencies/vendor-dependencies.ts new file mode 100644 index 0000000000..5b8c7436b5 --- /dev/null +++ b/src/app/config/vendor-dependencies/vendor-dependencies.ts @@ -0,0 +1,31 @@ +// Use this module to define all third-party dependencies +// that are used in Doubtfire + +import * as angular from 'angular'; + +export const vendorDependencies = angular.module('doubtfire.config.vendor-dependencies', [ + // ng* + 'ngCsv', + 'ngSanitize', + + // templates + 'templates-app', + + // ui.* + 'ui.router', + 'ui.router.upgrade', + 'ui.bootstrap', + 'ui.codemirror', + + // other libraries + 'angular.filter', + 'localization', + 'markdown', + 'nvd3', + 'xeditable', + 'angular-md5', + + // analytics + 'angulartics', + 'angulartics.google.analytics', +]); diff --git a/src/app/doubtfire-angularjs.module.ts b/src/app/doubtfire-angularjs.module.ts index ca57426fd2..105281094b 100644 --- a/src/app/doubtfire-angularjs.module.ts +++ b/src/app/doubtfire-angularjs.module.ts @@ -55,7 +55,7 @@ import 'build/src/app/config/runtime/runtime.js'; import 'build/src/app/config/config.js'; import 'build/src/app/config/root-controller/root-controller.js'; import 'build/src/app/config/routing/routing.js'; -import 'build/src/app/config/vendor-dependencies/vendor-dependencies.js'; +import './config/vendor-dependencies/vendor-dependencies'; import 'build/src/app/config/analytics/analytics.js'; import 'build/src/app/config/debug/debug.js'; import 'build/src/app/projects/projects.js';