From 060af9b3739033bc276b692b45c118b6eb4ba83b Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 5 Sep 2018 15:57:51 -0400 Subject: [PATCH] LP#1775466 Add Angular building to install docs Signed-off-by: Bill Erickson Signed-off-by: Galen Charlton --- docs/installation/server_installation.adoc | 45 ++++++++++++++++++++++++++++-- 1 file changed, 43 insertions(+), 2 deletions(-) diff --git a/docs/installation/server_installation.adoc b/docs/installation/server_installation.adoc index df3b055f5d..c057e594fa 100644 --- a/docs/installation/server_installation.adoc +++ b/docs/installation/server_installation.adoc @@ -142,8 +142,8 @@ Extra steps for web staff client Skip this entire section if you are using an official release tarball downloaded from http://evergreen-ils.org/downloads -Install dependencies for web staff client -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Install dependencies for AngularJS web staff client +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [NOTE] You may skip this section if you have installed the @@ -183,6 +183,47 @@ npm run build-prod npm run test ------------------------------------------------------------------------------ +Install dependencies for Angular web staff client +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +[NOTE] +You may skip this section if you have installed the +<>. You will still need to do the following +steps in <>. + +1. Install the long-term stability (LTS) release of +https://nodejs.org[Node.js]. Add the Node.js `/bin` directory to your +environment variable `PATH`. + +[[install_files_for_angular_web_staff_client]] +Install files for web staff client +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +1. Building, Testing, Minification: The remaining steps all take place within + the Angalar staff root: ++ +[source,sh] +------------------------------------------------------------------------------ +cd $EVERGREEN_ROOT/Open-ILS/src/eg2/ +------------------------------------------------------------------------------ ++ +2. Install Project-local Dependencies. npm inspects the 'package.json' file + for dependencies and fetches them from the Node package network. ++ +[source,sh] +------------------------------------------------------------------------------ +npm install # fetch JS dependencies +------------------------------------------------------------------------------ ++ +3. Run the build script. ++ +[source,sh] +------------------------------------------------------------------------------ +# build and run tests +ng build --prod +npm run test +------------------------------------------------------------------------------ + Configuration and compilation instructions ------------------------------------------ -- 2.11.0