An example calculator project that bundles es6-modules with Rollup. Tests use Jasmine and are run in the browser with Karma.
-
This example requires node/npm to run, set these up first if not already done.
-
Clone the repository
$ git clone git@github.com:CrowdHailer/rollup-karma-jasmine-example.git $ cd rollup-karma-jasmine-example
-
Fetch all the node dependencies
$ npm install
-
Tests can be run using the npm test script
$ npm -s test
-
The calculator can be bundled using the npm build script.
$ npm run build