Grunt-based dependencies, minification, and unit testing
authorBill Erickson <berick@esilibrary.com>
Tue, 6 May 2014 16:24:01 +0000 (12:24 -0400)
committerBill Erickson <berick@esilibrary.com>
Tue, 6 May 2014 16:31:47 +0000 (12:31 -0400)
commit4ffeaa6d535584290d528d02ebd60ed98c30ab46
tree0a47eb380446731aca23318d069ae9964801e97e
parentaa9758ddf9c4d305654575786064af018d10a52d
Grunt-based dependencies, minification, and unit testing

Files to support Grunt-based browser staff building.

* Fetching dependencies (angularjs, etc.)
* Runs unit tests with grunt-karma
* Concatenates and minifies files with grunt-uglify

* Moved unit tests into web directory
* Taught t_base_js.tt2 how to load the minified version of the file

TODO:

* minifiying non-core files and (possibly) copying them into the build
  directory.
* Support for using non-minified files via browser option?
* Makefile options for building, testing, and copying the correct files
  into the actual web directory (instead of cp -r web/*)
* Build docs

Signed-off-by: Bill Erickson <berick@esilibrary.com>
18 files changed:
Open-ILS/src/templates/staff/t_base_js.tt2
Open-ILS/tests/staffweb/LICENSE.angular-seed [deleted file]
Open-ILS/tests/staffweb/app/js [deleted symlink]
Open-ILS/tests/staffweb/config/karma.conf.js [deleted file]
Open-ILS/tests/staffweb/scripts/e2e-test.bat [deleted file]
Open-ILS/tests/staffweb/scripts/e2e-test.sh [deleted file]
Open-ILS/tests/staffweb/scripts/test.bat [deleted file]
Open-ILS/tests/staffweb/scripts/test.sh [deleted file]
Open-ILS/tests/staffweb/scripts/watchr.rb [deleted file]
Open-ILS/tests/staffweb/scripts/web-server.js [deleted file]
Open-ILS/tests/staffweb/test/unit/egHomeApp.js [deleted file]
Open-ILS/tests/staffweb/test/unit/egPatronApp.js [deleted file]
Open-ILS/tests/staffweb/update-angular.sh [deleted file]
Open-ILS/web/js/ui/default/staff/Gruntfile.js [new file with mode: 0644]
Open-ILS/web/js/ui/default/staff/package.json [new file with mode: 0644]
Open-ILS/web/js/ui/default/staff/test/karma.conf.js [new file with mode: 0644]
Open-ILS/web/js/ui/default/staff/test/unit/egHomeApp.js [new file with mode: 0644]
Open-ILS/web/js/ui/default/staff/test/unit/egPatronApp.js [new file with mode: 0644]