Content-Length: 683119 | pFad | https://github.com/chartjs/chartjs-plugin-deferred/commit/d3757dbaf2bbc7a5021dc256a7e13978532c144f

89 Rename the plugin to chartjs-plugin-deferred · chartjs/chartjs-plugin-deferred@d3757db · GitHub
Skip to content

Commit d3757db

Browse files
committed
Rename the plugin to chartjs-plugin-deferred
Adopt the new plugin naming strategy (chartjs-plugin-{name}) based on the following Slack discussion: https://chartjs.slack.com/archives/dev/p1477174066000282
1 parent 24b4db9 commit d3757db

File tree

8 files changed

+31
-31
lines changed

8 files changed

+31
-31
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ deploy:
2222
- provider: releases
2323
api_key: $GITHUB_AUTH_TOKEN
2424
file:
25-
- "./dist/Chart.Deferred.js"
26-
- "./dist/Chart.Deferred.min.js"
27-
- "./dist/Chart.Deferred.js.zip"
25+
- "./dist/chartjs-plugin-deferred.js"
26+
- "./dist/chartjs-plugin-deferred.min.js"
27+
- "./dist/chartjs-plugin-deferred.zip"
2828
skip_cleanup: true
2929
on:
3030
tags: true

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# Chart.Deferred.js
1+
# Defer initial chart updates
22

3-
[![Build Status](https://travis-ci.org/chartjs/Chart.Deferred.js.svg?branch=master)](https://travis-ci.org/chartjs/Chart.Deferred.js) [![Code Climate](https://codeclimate.com/github/chartjs/Chart.Deferred.js/badges/gpa.svg)](https://codeclimate.com/github/chartjs/Chart.Deferred.js)
3+
[![Build Status](https://travis-ci.org/chartjs/chartjs-plugin-deferred.svg?branch=master)](https://travis-ci.org/chartjs/chartjs-plugin-deferred) [![Code Climate](https://codeclimate.com/github/chartjs/chartjs-plugin-deferred/badges/gpa.svg)](https://codeclimate.com/github/chartjs/chartjs-plugin-deferred)
44

5-
A [Chart.js](http://www.chartjs.org/) plugin to defer the initial chart update until the user scrolls and the canvas appears inside the viewport. The main intent of Chart.Deferred.js is to trigger the initial chart animations when the user is likely to see them.
5+
[Chart.js](http://www.chartjs.org/) plugin to defer initial chart updates until the user scrolls and the canvas appears inside the viewport, and thus trigger the initial chart animations when the user is likely to see them.
66

7-
Requires Chart.js **2.1.5** or later.
7+
Requires [Chart.js](/chartjs/Chart.js/releases) **2.1.5** or later.
88

99
## Usage
1010

11-
You can download the latest version of [Chart.Deferred.js on GitHub](https://github.com/chartjs/Chart.Deferred.js/releases/latest)
11+
You can download the latest version of [chartjs-plugin-deferred on GitHub](https://github.com/chartjs/chartjs-plugin-deferred/releases/latest)
1212

1313
## Configuration
1414

@@ -55,4 +55,4 @@ The following commands will then be available from the repository root:
5555

5656
## License
5757

58-
Chart.Deferred.js is available under the [MIT license](LICENSE.md).
58+
chartjs-plugin-deferred is available under the [MIT license](LICENSE.md).

gulpfile.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ var outDir = './dist/';
1818
var samplesDir = './samples/';
1919

2020
var header = "/*!\n\
21-
* Chart.Deferred.js\n\
21+
* chartjs-plugin-deferred\n\
2222
* http://chartjs.org/\n\
2323
* Version: {{ version }}\n\
2424
*\n\
2525
* Copyright 2016 Simon Brunel\n\
2626
* Released under the MIT license\n\
27-
* https://github.com/chartjs/Chart.Deferred.js/blob/master/LICENSE.md\n\
27+
* https://github.com/chartjs/chartjs-plugin-deferred/blob/master/LICENSE.md\n\
2828
*/\n";
2929

3030
gulp.task('build', buildTask);
@@ -45,12 +45,12 @@ function watch(glob, task) {
4545

4646
function buildTask() {
4747
var task = function() {
48-
return gulp.src(srcDir + 'chart.deferred.js')
49-
.pipe(rename('Chart.Deferred.js'))
48+
return gulp.src(srcDir + 'plugin.js')
49+
.pipe(rename(package.name + '.js'))
5050
.pipe(insert.prepend(header))
5151
.pipe(streamify(replace('{{ version }}', package.version)))
5252
.pipe(gulp.dest(outDir))
53-
.pipe(rename('Chart.Deferred.min.js'))
53+
.pipe(rename(package.name + '.min.js'))
5454
.pipe(streamify(uglify({ preserveComments: 'license' })))
5555
.pipe(gulp.dest(outDir));
5656
};
@@ -85,7 +85,7 @@ function packageTask() {
8585
.pipe(streamify(replace('src="../dist/', 'src="../')))
8686
)
8787
// finally, create the zip archive
88-
.pipe(zip('Chart.Deferred.js.zip'))
88+
.pipe(zip(package.name + '.zip'))
8989
.pipe(gulp.dest(outDir));
9090
}
9191

@@ -96,7 +96,7 @@ function bowerTask() {
9696
homepage: package.homepage,
9797
license: package.license,
9898
version: package.version,
99-
main: outDir + "Chart.Deferred.js"
99+
main: outDir + package.name + '.js'
100100
}, null, 2);
101101

102102
return file('bower.json', json, { src: true })

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"name": "chart.deferred.js",
2+
"name": "chartjs-plugin-deferred",
33
"homepage": "http://www.chartjs.org",
4-
"description": "Chart.js plugin to defer initial animation.",
4+
"description": "Chart.js plugin to defer initial chart updates",
55
"version": "0.1.0",
66
"license": "MIT",
77
"main": "src/plugin.js",
88
"repository": {
99
"type": "git",
10-
"url": "https://github.com/chartjs/Chart.Deferred.js.git"
10+
"url": "https://github.com/chartjs/chartjs-plugin-deferred.git"
1111
},
1212
"devDependencies": {
1313
"gulp": "^3.9.1",

samples/deferred-horizontal.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<!doctype html>
22
<html>
33
<head>
4-
<title>Horizontal Scrolling Example | Chart.Deferred.js</title>
4+
<title>Horizontal Scrolling Example | chartjs-plugin-deferred</title>
55
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.1.5/Chart.bundle.min.js"></script>
6-
<script src="../dist/Chart.Deferred.min.js"></script>
6+
<script src="../dist/chartjs-plugin-deferred.min.js"></script>
77
<script src="utils.js"></script>
88
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css">
99
<link rel="stylesheet" type="text/css" href="style.css">
@@ -36,10 +36,10 @@
3636
<body>
3737
<div id="start"></div>
3838
<div id="header">
39-
<h1>Chart.Deferred.js</h1>
39+
<h1>chartjs-plugin-deferred</h1>
4040
<h2><b>Horizontal</b> Scrolling Example</h2>
4141
<a class="btn" href="index.html"><i class="fa fa-chevron-left"></i></a>
42-
<a class="btn btn-style_1" href="https://github.com/chartjs/Chart.Deferred.js#configuration"><i class="fa fa-book"></i> Documentation</a>
42+
<a class="btn btn-style_1" href="https://github.com/chartjs/chartjs-plugin-deferred#configuration"><i class="fa fa-book"></i> Documentation</a>
4343
</div>
4444
<div id="wrapper">
4545
<div class="head">Scroll right <i class="fa fa-chevron-circle-right"></i></div>

samples/deferred-vertical.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<!doctype html>
22
<html>
33
<head>
4-
<title>Vertical Scrolling Example | Chart.Deferred.js</title>
4+
<title>Vertical Scrolling Example | chartjs-plugin-deferred</title>
55
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.1.5/Chart.bundle.min.js"></script>
6-
<script src="../dist/Chart.Deferred.min.js"></script>
6+
<script src="../dist/chartjs-plugin-deferred.min.js"></script>
77
<script src="utils.js"></script>
88
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css">
99
<link rel="stylesheet" type="text/css" href="style.css">
@@ -32,10 +32,10 @@
3232
<body>
3333
<div id="start"></div>
3434
<div id="header">
35-
<h1>Chart.Deferred.js</h1>
35+
<h1>chartjs-plugin-deferred</h1>
3636
<h2><b>Vertical</b> Scrolling Example</h2>
3737
<a class="btn" href="index.html"><i class="fa fa-chevron-left"></i></a>
38-
<a class="btn btn-style_1" href="https://github.com/chartjs/Chart.Deferred.js#configuration"><i class="fa fa-book"></i> Documentation</a>
38+
<a class="btn btn-style_1" href="https://github.com/chartjs/chartjs-plugin-deferred#configuration"><i class="fa fa-book"></i> Documentation</a>
3939
</div>
4040
<div id="wrapper">
4141
<div class="head">Scroll down <i class="fa fa-chevron-circle-down"></i></div>

samples/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!doctype html>
22
<html>
33
<head>
4-
<title>Examples | Chart.Deferred.js</title>
4+
<title>Examples | chartjs-plugin-deferred</title>
55
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css">
66
<link rel="stylesheet" type="text/css" href="style.css">
77
<style>
@@ -13,11 +13,11 @@
1313
<body>
1414
<div id="start"></div>
1515
<div id="header">
16-
<h1>Chart.Deferred.js | Examples</h1>
16+
<h1>chartjs-plugin-deferred | Examples</h1>
1717
<h2>A Chart.js plugin to defer initial chart update.</h2>
18-
<a class="btn btn-style_1" href="https://github.com/chartjs/Chart.Deferred.js#configuration"><i class="fa fa-book"></i> Documentation</a>
18+
<a class="btn btn-style_1" href="https://github.com/chartjs/chartjs-plugin-deferred#configuration"><i class="fa fa-book"></i> Documentation</a>
1919
<a class="btn btn-style_2" href="http://www.chartjs.org"><i class="fa fa-globe"></i> Website</a>
20-
<a class="btn btn-style_3" href="https://github.com/chartjs/Chart.Deferred.js"><i class="fa fa-github"></i> GitHub</a>
20+
<a class="btn btn-style_3" href="https://github.com/chartjs/chartjs-plugin-deferred"><i class="fa fa-github"></i> GitHub</a>
2121
</div>
2222
<div id="wrapper">
2323
<a class="sample" href="deferred-vertical.html">
File renamed without changes.

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/chartjs/chartjs-plugin-deferred/commit/d3757dbaf2bbc7a5021dc256a7e13978532c144f

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy