mpx200 / ng-dygraphs

Angular 2+ library for support of dygraphs(http://dygraphs.com) charts
MIT License
3 stars 9 forks source link

Add support for dygraphs options. #4

Closed JimiC closed 7 years ago

JimiC commented 7 years ago

This PR does the following:

  1. Adds support to pass dygraphs options as an object. This way the module can support every dygraphs v2.x option, assuming the user is familiar with them. (My main reason for doing this was that I wanted support for plotters).

  2. Updates package.json to the latest tslint and codelyzer version. a. @angular/compiler has been added also as it's a dependency now. b. Missing lint script has been added.

  3. Updates .npmignore to exclude unnecessary files and folders from distribution.

  4. Updates tsconfig.json to the latest supported options.

  5. Updates tslint.json to the latest supported rules.

  6. Removes typing.json as it's redundant.

  7. Adds dygraphOptions interface simply as a helper reference (when dygraphs v2.x gets it's own typings this can be replaced).

  8. Fixes gulpfile to get in line with linter rules.

  9. Updates README to reflect changes.

This PR introduces breaking changes, so a minor version increment is justified.

JimiC commented 7 years ago

@mpx200 I believe version 0.3.0 would be more appropriate to reflect the breaking changes if you want to follow semver.