1.0.2 • Published 8 years ago
solution-center-tracking v1.0.2
solution-center-tracking
Reusable service for tracking Brand Solutions business events
Usage
Install
npm install solution-center-tracking
Add the module depencency:
angular.module('myModule', ['solutioncenter.tracking'])
Inject the service and call
track
with an Event:function myFunc(ScTrackingService) { let event = new Event(); ScTrackingService.track(event); }
Develop
Clone the repository, then run:
npm install
Availble commands
npm start
: Run the webpack build and tests in watch modenpm run test
: Run the unit tests and generate a coverage reportopen coverage/index.html
: after running unit tests, open the coverage report.
npm run test:watch
: Run the unit tests in watch modenpm run build
: Run the webpack build and minify. Generates output indist/
.npm run build: watch
: Run the build in watch mode
Contributing
Before opening a pull request, please ensure that you have included unit tests for your changes and that all tests are passing.