Download Interactive Visualization and Minimization of

Transcript
Developer Manual
5.1
The Debugging Page
The pseuCo.com UI has a hidden debugging page that allows quick access to some internal settings,
located at base URL /#/debug.
5.2
Dependencies
PseuCo.com depends on several JavaScript libraries, both for the build system and for the actual application.
Libraries are managed by npm and Bower.
A full list of libraries can be found in the corresponding configuration files: Listing 5.1 shows all
dependencies that Bower installs, which are runtime dependencies. Similarly, Listing 5.2 shows the
dependencies installed by npm. All of them are build-time dependencies, except for PseuCoCo.
The Ace text editor is an additional dependency. Since it is not available as a Bower package, it is
downloaded and unzipped programatically by a build script.
5.3
The Build Process
PseuCo.com can be built from source using the included build mechanism – refer to section 3.2 for an
explanation. In this section, you can find additional information on its internal functionality.
Running npm install installs all dependencies listed in Listing 5.2, including grunt and corresponding
plug-ins. Afterwards, running grunt executes the default task defined in Listing B.1. This task performs
the following actions:
1. Test the code with jshint to find common programming errors.
2. Call Bower to install all dependencies from Listing 5.1.
Listing 5.1: Dependency section from bower.json
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
" dependencies " : {
" bootstrap " : " ~3.2.0 " ,
" angular " : " ~1.2.23 " ,
" angular - strap " : " ~2.0.5 " ,
" angular - animate " : " ~1.2.23 " ,
" angular - route " : " ~1.2.23 " ,
" angular - motion " : " ~0.3.3 " ,
" angular - sanitize " : " ~1.2.23 " ,
" a n g u l a r L o c a l S t o r a g e " : " ~0.1.7 " ,
" underscore " : " ~1.7.0 " ,
" momentjs " : " ~2.8.2 " ,
" hammerjs " : " ~2.0.2 " ,
" d3 " : " ~3.4.11 " ,
" bootstrap - additions " : " ~0.2.3 " ,
" jquery " : " ~2.1.1 " ,
" jquery . cookie " : " ~1.4.1 "
7