Skip to content

Latest commit

 

History

History
65 lines (43 loc) · 1.79 KB

README.md

File metadata and controls

65 lines (43 loc) · 1.79 KB

Build Status Code Climate Coverage Status

This is a CloudFlare app to automatically inject Piwik tracking JavaScript code into your CloudFlare powered website.

It (currently) does not support all the Piwik JavaScript tracking code features, so feel free to submit a PR if you can add any of the features. We'll be happy to merge it.

Browser Support

Browser support should be universal. Automated tests are run on all modern, evergreen browsers thanks to Sauce Labs.

Developing

We're using a GulpJS powered build system. JavaScript code is automatically built using Uglify . Just run the follow command to get started:

gulp

That will kick off both the Karma test runner and JSHint linting. Both will run constantly in the background, and run the tests in the following browsers:

  • Chrome
  • Chrome Canary
  • Firefox
  • Opera
  • PhantomJS

Testing

Any pull requests should be fully tested.

Unit testing is done with Karma.

Running tests once

To run the unit tests, simply run the following command:

gulp test

Building for production

Run the build command. It runs all the tests first, and then builds the files if everything passes.

gulp build

To Do

  • Complete the tracking code options to match the Piwik dashboard.