uqlibrary-training is a simple list view showing training links for the Library at the University of Queensland.
Full documentation and demo can be found at GitHub Pages.
Install Node.JS and run the following oneliner in the project directory:
npm install -g bower gulp-cli web-component-tester polymer-cli
npm install
bower install
Add dev-app.library.uq.edu.au
to your /etc/hosts
or equivalent file
gulp live
This comments out the calls to create the Mock cookies in index.html
. Note the browser often caches the html so check the source for the calls and do a hard refresh if they aren’t commented out.
If you still have the mock cookies in your browser, delete them via your browser.
Return to your demo page, refresh and you should be getting live data.
npm start
. Use the second URL from the command output.polymer1.0
branch by running bin/generate-gh-pages.sh
Tests are run using the Web Component Tester.
npm test
We have a testing branch on Drupal at https://library.stage.drupal.uq.edu.au/library-services/training
If you:
uqlibrary-training
uqlibrary-training
master
of repo uqlibrary-reusable-components
on codeship (usually re-run the last successful build on codeship)then you will be able to preview a change on this page of drupal.
(Remember to revert uqlibrary-api when you finish!!!)
Bear in mind master branches of all of uqlibrary-api and uqlibrary-training and uqlibrary-reusable-components must be considered ‘locked’ until these changes are approved or rolledback as any pushes from master to prod of reusable will take the changes you are testing live :( (If this becomes an ongoing problem we can define a different branch of reusable as staging and ask ITS to change the branch they use on Drupal)