Commit Graph

5534 Commits

Author SHA1 Message Date
Victor Woeltjen
b383be0711 [Example] Add example bundle for built-ins
Add bundle which will serve as an example of how to
declare the presence of Angular built-ins as extensions
which will be recognized by the framework layer.

Also useful for generally verifying that functionality
provided by framework layer provides sufficient support
for other bundles to expose application features.
WTD-518.
2014-11-04 14:40:06 -08:00
Victor Woeltjen
86df248096 [Framework] Add angular-route
Add angular route library and utilize when instantiating
framework-driven module. This allows invocation of ng-view
by way of defined routes. WTD-518.
2014-11-04 14:38:49 -08:00
Victor Woeltjen
f16fa32b68 [Framework] Fix error in custom registrars
Fix error in CustomRegistrars; return a function when
creating general-purpose registration code for
Angular built-ins which follow the normal pattern
(directives, controllers, services...)

WTD-518.
2014-11-04 14:35:22 -08:00
Victor Woeltjen
126b515782 [Framework] Fix code style for ExtensionRegistrar
Satisfy code style standards in ExtensionRegistrar.
WTD-518.
2014-11-04 13:54:14 -08:00
Victor Woeltjen
78effaa09f [Framework] Fix code style in BundleLoader
Fix code style and remove unuseful code from BundleLoader,
WTD-518.
2014-11-04 13:51:53 -08:00
Victor Woeltjen
19bfeb4d03 [Framework] Wire up framework layer
Wire up and invoke framework layer components for
application start up, from main point-of-entry.
WTD-518.
2014-11-04 13:46:17 -08:00
Victor Woeltjen
8e31b2b6e0 [Framework] Add bootstrapper
Add an application bootstrapper, responsible for
handling the Angular bootstrapping phase of
framework layer initialization. WTD-518.
2014-11-04 13:00:12 -08:00
Victor Woeltjen
24591c67dd [Framework] Add custom registration types
Add custom registration for Angular's directives and
controllers. WTD-518.
2014-11-04 12:48:16 -08:00
Victor Woeltjen
9541d6716a [Framework] Custom route registration
Add custom extension registration code for routes,
using these to configure Angular's routeProvider.
WTD-518.
2014-11-04 09:55:03 -08:00
Victor Woeltjen
306d8ae9db [Framework] Add bundle resolver; normalize initialization
Simplify the extension initializer by putting each
phase's responsibilities into a specific class.
WTD-518.
2014-11-04 08:35:06 -08:00
Victor Woeltjen
d8eb72621b [Framework] Simplify custom registration
Handle the iteration over extensions which have a
custom registration mechanism (directives, services)
at the same level that general registration is handled.
WTD-518.
2014-11-04 08:06:44 -08:00
Victor Woeltjen
00de789f5e [Framework] Intermediary commit; registration phase
Continue implementation of registration phase of framework layer.
Begin adding some custom registration behavior for specific
Angular concepts, such as services and directives. WTD-518.
2014-11-03 13:55:02 -08:00
Victor Woeltjen
650969d9c5 [Framework] Begin adding registration phase
Begin implementation registration phase of framework
layer initialization process. This phase is responsible
for registering resolved extensions with Angular, in a
manner than individual extensions can later request
dependencies from. WTD-518.
2014-11-03 13:29:59 -08:00
Victor Woeltjen
eba3e47182 [Framework] Implement ExtensionResolver
Initial implementation of class responsible for
resolving extensions (that is, loading modules
associated with defined extensions.)

Also, add methods to Bundle and Extension classes
to support logging performed during the extension
resolution phase. WTD-518.
2014-11-03 10:14:13 -08:00
Victor Woeltjen
a940d1a460 [Framework] Begin work on extension resolution
Begin work on extension resolution phase of
the framework layer. WTD-518.

Introduce an implementation loader which wraps
RequireJS, and a skeleton class for extension
resolution.
2014-11-03 09:44:16 -08:00
Victor Woeltjen
0e82250c84 [Framework] Continue implementing fundamentals
Continue implementing classes which represent fundamental
concepts within the framework layer. WTD-518.

In particular, add methods which will be useful during the
extension resolution phase of framework start up.
2014-11-03 08:45:14 -08:00
Victor Woeltjen
12f43d1c8d [Framework] First-pass implementation of bundle loader
Begin implementing the bundle loader component of the
framework layer, responsible for taking a list of
included bundles and exposing their contents in a
useful manner. WTD-518.
2014-10-31 16:45:08 -07:00
Victor Woeltjen
2719dea775 [Framework] Add constants
Add AMD module to store Constants used in framework.
WTD-518.
2014-10-31 16:43:52 -07:00
Victor Woeltjen
de409fd8e7 [Framework] Begin work on main point-of-entry
Add main point-of-entry script for framework layer; performs
only minimal tasks of loading framework dependencies
and demonstrating that bundle list can be loaded
using these. WTD-518.
2014-10-31 16:43:18 -07:00
Victor Woeltjen
b55c6b8bce [Framework] Initial skeletons for framework
Initial skeletons for framework classes, WTD-518.
2014-10-31 13:58:56 -07:00
Victor Woeltjen
83d06b6f8f [Framework] Add Promise polyfill
Add Promise polyfill to version control. Promise objects
are included in ECMAScript 6 and browser support is
present, but non-universal. Using the polyfill approach
permits the use of Promise directly throughout the
application without relying on bleeding-edge browser
support.

Promises are useful at the framework level particularly
because of the number of asynchronous calls made when
assembling bundles. Framework layer is WTD-518.
2014-10-31 13:14:34 -07:00
Victor Woeltjen
becf05d4a6 [Structure] Add top-level README
Add top level README file describing, in broad
terms, the structure of the project. In particular,
this documents the naming conventions which support
build and test, and provides a short summary of how
these both run. WTD-519.
2014-10-31 11:14:33 -07:00
Victor Woeltjen
ecd8e6da2f [Build] Add libraries to build
Include libraries in the WAR file built by the
command line build, except for those libraries
which are present only to support test execution.
Part of initial branches-and-build set up for
WTD-519.
2014-10-31 11:12:50 -07:00
Victor Woeltjen
dc141c55f6 [Build] Change indentation
Use four-space indentation in build script, for
consistency with HTML and JavaScript sources.
WTD-519.
2014-10-31 10:04:32 -07:00
Victor Woeltjen
54fae0d436 [Build] Correct project name in build
Correct project name in build; change to Open MCT Web.
Part of ongoing repository and build setup, WTD-519.
2014-10-31 10:02:43 -07:00
Victor Woeltjen
680e8c8cff [Tests] Change desired XHR response type
Don't request json as an XHR response type, as this
is not supported by Phantom for command line test
execution. Part of ongoing intitial repository and
build setup for WTD-519.
2014-10-31 09:56:17 -07:00
Victor Woeltjen
047d56d662 [Structure] Add comments to temporary files
Add clarifying comments to temporary files, to
ensure they are distinguishable as placeholders.
Part of developing project folder structure and
build for WTD-519.
2014-10-31 09:49:09 -07:00
Victor Woeltjen
4f08d43037 [Structure] Add index.html
Add index.html, which will serve as the main
point-of-entry for the full application.
WTD-519.
2014-10-31 09:48:37 -07:00
Victor Woeltjen
0bf0912bf8 [Tests] Initial spec runner
Initial spec runner; looks in bundles, assumes conventions.
Supports initial repository set up and build scripts, for
WTD-519.
2014-10-30 17:24:30 -07:00
Victor Woeltjen
a753818b24 [Build] Initial test dependencies
Initial commit of test dependencies, as brought over
from prototype, to continue establishing build. WTD-519.
2014-10-30 16:04:38 -07:00
Victor Woeltjen
e5be7dbe81 [Build] Initial build script
Pull in initial Maven build script from
prototype. Part of setting up initial branches
and builds for WTD-519.
2014-10-30 16:03:09 -07:00
Victor Woeltjen
bd9f90428c [Framework] Add Angular, Require libraries
Add libraries for Angular and Require. This expands
folder structure to support initial build (WTD-519)
and also directly supports implementation of a
framework layer (WTD-518).
2014-10-28 08:28:18 -07:00
Victor Woeltjen
42bc4599b8 [Structure] Add platform structure
Add general structure for Open MCT Web, including
top-level and second-level directory structure.
README files are included to explain the role of
each directory; markdown is used to allow for
richer display when viewer support is present.

WTD-519.
2014-10-27 18:18:50 -07:00
Victor Woeltjen
89283fc4b1 [Structure] Initialize repository
Initialize repository with gitignore file. This
will serve as the basis for the open source
master branch (and thus all other branches)
during the Angular transition. WTD-519.
2014-10-27 17:45:54 -07:00