From b8120d593c760972e37eb867546e7312e696e2a1 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 7 May 2014 10:25:49 -0400 Subject: [PATCH] build docs cont. Signed-off-by: Bill Erickson --- Open-ILS/web/js/ui/default/staff/README.install | 13 +++++++++---- .../staff/test/data/{translate_idl2js.pl => idl2js.pl} | 0 2 files changed, 9 insertions(+), 4 deletions(-) rename Open-ILS/web/js/ui/default/staff/test/data/{translate_idl2js.pl => idl2js.pl} (100%) diff --git a/Open-ILS/web/js/ui/default/staff/README.install b/Open-ILS/web/js/ui/default/staff/README.install index 064ffabbad..bc299d8224 100644 --- a/Open-ILS/web/js/ui/default/staff/README.install +++ b/Open-ILS/web/js/ui/default/staff/README.install @@ -7,6 +7,11 @@ === Install Node.js === +http://gruntjs.com/[Grunt] and http://jasmine.github.io/[Jasmine] (and +related bits) allow us to retrieve JS dependencies, run unit tests, and +concatenate + minify JS files on the server. They are both Node.js +plugins. + Node.js does not have have Debian Wheezy build target. For now, I've opted to install from source. For more, see also https://github.com/joyent/node/wiki/installation[Node.js Installation] @@ -37,7 +42,7 @@ The remaining steps all take place within the staff JS web root: [source,sh] ------------------------------------------------------------------------------ -% cd Open-ILS/web/js/ui/default/staff/ +% cd $EVERGREEN_ROOT/Open-ILS/web/js/ui/default/staff/ ------------------------------------------------------------------------------ === Install Project-local Dependencies === @@ -52,13 +57,13 @@ from the Node package network. === Generate test IDL2js Output === -Unit tests require mock data. The IDL is needed for practically all tests, -so there's a script to generate IDL2js output from the in-repo IDL. +Unit tests require mock data. Some data is provided as static content, +but the IDL JS is generated from the in-repo fm_IDL.xml file via a script: [source,sh] ------------------------------------------------------------------------------ % cd test/data -% ./translate_idl2js.pl +% ./idl2js.pl % cd ../../ ------------------------------------------------------------------------------ diff --git a/Open-ILS/web/js/ui/default/staff/test/data/translate_idl2js.pl b/Open-ILS/web/js/ui/default/staff/test/data/idl2js.pl similarity index 100% rename from Open-ILS/web/js/ui/default/staff/test/data/translate_idl2js.pl rename to Open-ILS/web/js/ui/default/staff/test/data/idl2js.pl -- 2.11.0