Commit Graph

77 Commits

Author SHA1 Message Date
Evert Timberg
3e94b9431a Update the docs structure/content to use GitBook (#3751)
Update the docs structure/content to use GitBook
2017-03-20 20:36:54 -04:00
Simon Brunel
1ca0ffb5d5 Introduce unit test based on image comparison (#3988)
Attempt to make easier the creation of unit tests that check the drawing output. Until now, this was done by checking calls on a 'fake' context, which is hard to maintain (need to update pixel values by hands) and also not reliable when optimizing code (i.e. different calls sequence but same result).

As of now, it's possible to define 'auto' tests based on JSON/PNG fixtures: chart is generated from the JSON file and compared to the associated PNG image. The image diff is done using `pixelmatch`. As an example (and in preparation of the `filler` plugin), add auto tests for the line element `fill` options.
2017-03-05 09:49:12 -07:00
Simon Brunel
c216c0af76 Cleanup and upgrade unit tests environment
`karma.conf.ci.js` has been merged into `karma.conf.js` for local testing consistency: `gulp unittestWatch` has been replaced by `gulp unittest --watch` and thus use exactly the same config file. Upgrade to latest jasmine and karma packages and remove deprecated `gulp-karma` dependency (directly use `karma.Server` in gulp).

Split `test/mockContext.js` into smaller `test/jasmine.*` modules to make easier unit tests maintenance and finally, move all `*.test.js` files under the `test/specs` folder.
2017-03-04 11:39:48 -05:00
Simon Brunel
d25e7b1e1a Handle incoming model values on element transition
If a value is set on the model after `pivot()` has been called, the view wasn't initialized and the animation started from 0. Now, `_start` and incomplete `_view` are initialized to the model value during the transition (no initial implicit transition).

Also remove exception handling when animating a string (color), which is faster when string are not valid colors (e.g. tooltip position). It requires to update `chartjs-color` to version 2.1.0.
2017-03-03 06:49:32 -05:00
Evert Timberg
e519ea399d Fix color dependency for builds 2017-02-21 20:45:56 -05:00
etimberg
9a3af51618 bump version number 2017-01-28 11:33:14 -05:00
Jeff Carey
fe68b77606 Upgraded dependency gulp-uglify to 2.0.0 (#3635) 2016-11-22 23:51:22 +01:00
Simon Brunel
040b0e160d Bump version to 2.4.0 2016-11-06 18:31:30 +01:00
Simon Brunel
e90edd8c9a Bump ESLint to v3.x (gulp and Code Climate) (#3526) 2016-10-29 18:40:27 +02:00
Aidan Fewster
99b8d6740a Added the watchify NPM dependency to satisfy karma-browserify's peerDependency 2016-10-04 09:27:43 -04:00
Simon Brunel
8ec7ce2f93 Gulp command switch to run specific test files
Add the --inputs command switch to the unittest and unittestWatch tasks, to be able to run unit tests from the specified files only (e.g. gulp unittest --inputs=test/core.element.tests.js;test/core.helpers.tests.js).
2016-09-23 17:47:33 +02:00
Simon Brunel
eea51e8678 Bump version to 2.3.0 2016-09-22 20:53:26 +02:00
Simon Brunel
4da47a8430 Bump version to 2.3.0-rc.1 2016-09-17 11:42:28 +02:00
Simon Brunel
69ab0d3e23 Use gulp-eslint instead of gulp-jshint
Change the linter in gulp tasks to be consistent with Code Climate results which are based on ESLint using .eslintrc options. However, defaults Code Climate rules are too strict, so turn as warnings the 'complexity' and 'max-statements' rules (other errors has been fixed). Note that the Gulp task name has been changed for `gulp lint`.
2016-09-03 18:42:22 +02:00
Simon Brunel
1f67e54d79 Remove unused npm packages 2016-09-03 18:09:57 +02:00
Simon Brunel
594605c5c4 Remove deprecated gulp tasks and dependencies 2016-08-30 00:04:40 +02:00
Simon Brunel
cd50edbc84 #3182 Gulp task to generate bower.json file 2016-08-28 18:21:10 +02:00
etimberg
0ebe388611 Update version for v2.2.2 release 2016-08-27 08:29:09 -04:00
Evert Timberg
ab66146013 Prep for a v2.2.1 release 2016-07-30 13:01:31 -04:00
Evert Timberg
b92387c845 Version bump for v2.2.0 2016-07-28 18:23:32 -04:00
Evert Timberg
4334ab8611 Bump version to v2.2.0-rc.2 2016-07-19 18:47:08 -04:00
Evert Timberg
5804f1e3c9 Package.json for v.2.2.0-rc.1 and fixed travis deploy 2016-07-13 20:00:12 -04:00
Simon Brunel
53a0c5442e New Chart.js.zip package
Samples need to be packaged with built libraries (which one have been removed from the repository), so create a new `gulp package` task to generate a ZIP archive with dist files, samples and the license file. This archive is generated in the ./dist/ folder and will be deployed by Travis along the GH release. Note that the ./dist/ folder is not preserved but merged in the archive root. Also change samples requiring moment.js to load this lib from the CDN instead of the ./node_module folder.
2016-06-18 12:14:31 +02:00
Evert Timberg
07662b158d V2.1.6 with tooltip array fix 2016-06-14 19:32:24 -04:00
Evert Timberg
3d03e36408 Bump version to 2.1.5 and build 2016-06-12 13:14:56 -04:00
Simon Brunel
5c56f5cd9d Use bundle-collapser to reduce build size
This browserify plugin converts required string paths to int (see https://github.com/substack/bundle-collapser), lowering our *.min.js by ~1.8KB.
2016-06-05 09:56:41 +02:00
Evert Timberg
40d76b6a7b 2.1.4 release 2016-05-26 18:43:39 -04:00
Simon Brunel
b64e03dbd0 Bump chartjs-color to version 2.0.0 (#2549)
Fix color animation because the color lib changed the `mix` implementation to match SASS behavior, so the weight specifies the amount of the first color that should be included in the returned color.
2016-05-14 13:35:35 -04:00
Evert Timberg
eb05588c95 2.1.3 release 2016-05-12 18:41:22 -04:00
Evert Timberg
8ffbe23493 2.1.2 release 2016-05-08 11:26:48 -04:00
Evert Timberg
8fb2073260 2.1.1 release build 2016-05-07 08:07:09 -04:00
Tanner Linsley
2ee37e12e3 2.1.0 build 2016-05-03 16:53:09 -05:00
Zach Panzarino
7cbc08aed7 Add license field to package files 2016-04-29 03:23:13 +00:00
Zach Panzarino
8d6ea1fde9 Update package.json 2016-04-25 11:13:50 -04:00
Zach Panzarino
900d249646 Fix build to include comment at top of file 2016-04-22 15:03:52 +00:00
Tanner Linsley
67625063a3 2.0.2 2016-04-16 17:39:51 -05:00
etimberg
5e8bfea53e Bump and build for 2.0.1 2016-04-16 14:22:45 -04:00
etimberg
ebb8ca233d Bump version to v2.0.0 2016-04-09 08:01:01 -04:00
Evert Timberg
b15b316e85 use watchify for incremental test rebuilds 2016-04-02 09:02:38 -04:00
Evert Timberg
38b2925e6c Use coveralls to report lines of coverage and add a badge to the readme 2016-02-14 09:38:26 -05:00
etimberg
96551c20db begin fixing coverage tests 2016-02-13 21:50:12 -05:00
etimberg
f6951816a0 Improve joshing reporting. Added a JSHint config file.
Fixed JSHint warnings.
2016-02-13 20:12:26 -05:00
Tanner Linsley
813d18bd78 Passing All Tests, Updated Dependencies 2016-02-11 23:16:43 -07:00
Tanner Linsley
007d029837 Bundled builds
Possible usages are:

src/Chart.js (umd)
dist/Chart.js (ChartJS)
dist/Chart.min.js (ChartJS minified)
dist/Chart.bundle.js (ChartJS with Moment.js)
dist/Chart.bundle.min.js (ChartJS with Moment.js minified)
2016-02-11 21:29:26 -07:00
Tanner Linsley
f2780bb825 Browserify for easier UMD consumptions and vanilla builds 2016-02-11 20:30:53 -07:00
Robert Becker
e9c18f603d Merged remote-tracking branch 'upstream/v2.0-dev' into v2.0-dev to fix conflicts.
Refactored linear scale fixed step size implementation.
Added nbproject to .gitignore
2016-02-09 12:56:16 +01:00
Robert Becker
92bc1a04cf Chart.js was missing? 2016-02-05 10:11:58 +01:00
etimberg
421e610150 Update build & bump version 2015-12-27 10:46:08 -05:00
etimberg
b388a1e873 Pipe the build through UMD to get proper UMD headers 2015-12-02 21:08:52 -05:00
Tanner Linsley
e8165348db Updated Readme, and versions for beta release 2015-10-24 17:17:13 -06:00