1.0.0 • Published 7 years ago

mgnl-custom v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

Build Status

mgnl-custom

Small demo module built with webpack.

Setup

After installation, add this to your page template:

[#-- mount compiled JS bundle --]
${resfn.js(["/mgnl-custom/webresources/js/bundle.js"])!}

<script>
  var c = new Calendar('.furbie')
  c.render()
</script>

Tests

Fixture Setup

Fixture was exported from Magnolia using the "Export"-functionality of the UI

JS Unit Tests

Unit tests are using Jest as test runner, as it supplies a DOM environment

Template / Integration tests

Tests are super simple and based cheerio. Mocha is used as test runner

Travis

Main test step in Travis executes npm test

Setting up the Magnolia server is done with the before_script hook.