Install the dependencies: npm install
Build the project for production with npm run build:prod
The contents of the build
directory are served from an Amazon S3 bucket named ualibr-libcal-assets
.
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
.
You can build the project with Webpack by running
npm run build:prod
(builds for production) or npm run build:dev
(builds for development).
This project uses JavaScript Standard Style.
Test it by running npm test
.
In the LibCal dashboard, go to 'Admin' -> 'Look & Feel'.
Paste the following code into 'Code Customizations' field.
<script type="text/javascript" src="https://ualibr-libcal-assets.s3-us-west-2.amazonaws.com/bundle.js"></script>
Start a local static webserver by running npm run serve
. You will then be provided
with a script tag which you can paste into the LibCal's 'Code Customizations' field.
The bundle.js
file will be served from your local disk.