From: Jukka Kurkela Date: Mon, 25 May 2020 20:54:22 +0000 (+0300) Subject: Rename dist/Chart* to dist/chart* (#7416) X-Git-Tag: v3.0.0-beta.2~130 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=986f72f933c4f66481e8718a1b83960f9ea69c77;p=thirdparty%2FChart.js.git Rename dist/Chart* to dist/chart* (#7416) * Rename dist/Chart* to dist/chart* * Add a note to migration docs * Review update --- diff --git a/docs/docs/getting-started/integration.md b/docs/docs/getting-started/integration.md index e23e2be63..687b00474 100644 --- a/docs/docs/getting-started/integration.md +++ b/docs/docs/getting-started/integration.md @@ -7,7 +7,7 @@ Chart.js can be integrated with plain JavaScript or with different module loader ## Script Tag ```html - + @@ -29,10 +29,10 @@ var myChart = new Chart(ctx, {...}); ## Require JS -**Important:** RequireJS [can **not** load CommonJS module as is](https://requirejs.org/docs/commonjs.html#intro), so be sure to require one of the UMD builds instead (i.e. `dist/Chart.js`, `dist/Chart.min.js`, etc.). +**Important:** RequireJS [can **not** load CommonJS module as is](https://requirejs.org/docs/commonjs.html#intro), so be sure to require one of the UMD builds instead (i.e. `dist/chart.js`, `dist/chart.min.js`, etc.). ```javascript -require(['path/to/chartjs/dist/Chart.min.js'], function(Chart){ +require(['path/to/chartjs/dist/chart.min.js'], function(Chart){ var myChart = new Chart(ctx, {...}); }); ``` diff --git a/docs/docs/getting-started/v3-migration.md b/docs/docs/getting-started/v3-migration.md index a1de622e1..81b9ae1f1 100644 --- a/docs/docs/getting-started/v3-migration.md +++ b/docs/docs/getting-started/v3-migration.md @@ -17,6 +17,7 @@ Chart.js 3.0 introduces a number of breaking changes. Chart.js 2.0 was released ### Setup and installation +* Distributed files are now in lower case. For example: `dist/chart.js`. * Chart.js is no longer providing the `Chart.bundle.js` and `Chart.bundle.min.js`. Please see the [installation](installation.md) and [integration](integration.md) docs for details on the recommended way to setup Chart.js if you were using these builds. * `moment` is no longer specified as an npm dependency. If you are using the time scale, you must include one of [the available adapters](https://github.com/chartjs/awesome#adapters) and corresponding date library. You no longer need to exclude moment from your build. diff --git a/gulpfile.js b/gulpfile.js index 5c4270a0a..e1a673c8b 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -133,7 +133,7 @@ function unittestTask(done) { } function librarySizeTask() { - return gulp.src('dist/Chart.bundle.min.js') + return gulp.src('dist/chart.min.js') .pipe(size({ gzip: true })); diff --git a/package.json b/package.json index 5cbfb51a3..7ee84f647 100644 --- a/package.json +++ b/package.json @@ -4,10 +4,10 @@ "description": "Simple HTML5 charts using the canvas element.", "version": "3.0.0-alpha", "license": "MIT", - "jsdelivr": "dist/Chart.min.js", - "unpkg": "dist/Chart.min.js", - "main": "dist/Chart.js", - "module": "dist/Chart.esm.js", + "jsdelivr": "dist/chart.min.js", + "unpkg": "dist/chart.min.js", + "main": "dist/chart.js", + "module": "dist/chart.esm.js", "keywords": [ "canvas", "charts", diff --git a/rollup.config.js b/rollup.config.js index 6033bbc51..beba09218 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -20,8 +20,8 @@ const banner = `/*! module.exports = [ // UMD builds - // dist/Chart.min.js - // dist/Chart.js + // dist/chart.min.js + // dist/chart.js { input, plugins: [ @@ -37,7 +37,7 @@ module.exports = [ ], output: { name: 'Chart', - file: 'dist/Chart.js', + file: 'dist/chart.js', banner, format: 'umd', indent: false, @@ -60,15 +60,15 @@ module.exports = [ ], output: { name: 'Chart', - file: 'dist/Chart.min.js', + file: 'dist/chart.min.js', format: 'umd', indent: false, }, }, // ES6 builds - // dist/Chart.esm.min.js - // dist/Chart.esm.js + // dist/chart.esm.min.js + // dist/chart.esm.js { input, plugins: [ @@ -81,7 +81,7 @@ module.exports = [ ], output: { name: 'Chart', - file: 'dist/Chart.esm.js', + file: 'dist/chart.esm.js', banner, format: 'esm', indent: false, @@ -101,7 +101,7 @@ module.exports = [ ], output: { name: 'Chart', - file: 'dist/Chart.esm.min.js', + file: 'dist/chart.esm.min.js', format: 'esm', indent: false, }, diff --git a/samples/advanced/line-gradient.html b/samples/advanced/line-gradient.html index bbbd08259..462c35475 100644 --- a/samples/advanced/line-gradient.html +++ b/samples/advanced/line-gradient.html @@ -2,7 +2,7 @@ Linear Gradient - +