Install the dependencies: npm install
Build the project with npm run build
The contents of the css
directory are served from an Amazon S3 bucket named ualibr-libchat
.
You can deploy the project by running npm run deploy
. You might need to specify an AWS profile
like this: npm run deploy -- --profile=profilename
.
Login to LibChat settings at https://arizona.libapps.com/libapps/.
Paste the following into the 'Custom CSS' field on the 'LibChat Widget Creator' page:
@import url("https://ualibr-libchat.s3.amazonaws.com/ual-libchat.css");
Running npm run watch
will:
- Start a local static webserver. You will the be provided with a css import at-rule to paste into LibChat widget creator.
- Watch CSS files and process them when they change
Travis checks to see if the URL of the LibChat stylesheet has changed. It
does that by comparing LibChat stylesheet URL to one which is saved in
test/config.js
. If the URL are same, the test passes.
If the test doesn't pass, follow these steps.
- Go to http://new.library.arizona.edu/chat to see if our custom styles are loading. If everything looks OK,
- Update
theirCSSURL
intest/config.js
to match the new LibChat CSS URL.
If the test is failing and our custom styles are not loading, we have a problem on our hands.