Small calculator built with webpack.
Customizable formula and form fields. Supports different ids for multiple instances on one page.
Depends on jQuery 3.x
After installation, add this to your page template:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src=".resources/mgnl-calculator/webresources/bundle.js"></script>
Fixture was exported from Magnolia using the "Export"-functionality of the UI
Unit tests are using Jest as test runner, as it supplies a DOM environment
Tests are super simple and based cheerio
. Mocha is used as test runner
Main test step in Travis executes npm test
Setting up the Magnolia server is done with the before_script
hook.
This directory is a Magnolia 'light module'. https://docs.magnolia-cms.com
MIT