Skip to content

Commit a4eb3c1

Browse files
authored
Remove gulp-connect and add jsdelivr/unpkg paths (chartjs#5875)
1 parent 455a7b7 commit a4eb3c1

File tree

3 files changed

+18
-27
lines changed

3 files changed

+18
-27
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
language: node_js
22
node_js:
3-
- "6"
3+
- lts/*
44

55
before_install:
66
- "export CHROME_BIN=/usr/bin/google-chrome"

gulpfile.js

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
var gulp = require('gulp');
22
var concat = require('gulp-concat');
3-
var connect = require('gulp-connect');
43
var eslint = require('gulp-eslint');
54
var file = require('gulp-file');
65
var insert = require('gulp-insert');
@@ -26,7 +25,7 @@ var argv = yargs
2625
.option('force-output', {default: false})
2726
.option('silent-errors', {default: false})
2827
.option('verbose', {default: false})
29-
.argv
28+
.argv;
3029

3130
var srcDir = './src/';
3231
var outDir = './dist/';
@@ -53,15 +52,12 @@ gulp.task('lint-html', lintHtmlTask);
5352
gulp.task('lint-js', lintJsTask);
5453
gulp.task('lint', gulp.parallel('lint-html', 'lint-js'));
5554
gulp.task('docs', docsTask);
56-
gulp.task('server', serverTask);
5755
gulp.task('unittest', unittestTask);
5856
gulp.task('test', gulp.parallel('lint', 'unittest'));
5957
gulp.task('library-size', librarySizeTask);
6058
gulp.task('module-sizes', moduleSizesTask);
6159
gulp.task('size', gulp.parallel('library-size', 'module-sizes'));
62-
gulp.task('_open', _openTask);
6360
gulp.task('default', gulp.parallel('build', 'watch'));
64-
gulp.task('dev', gulp.parallel('server', 'default'));
6561

6662
/**
6763
* Generates the bower.json manifest file which will be pushed along release tags.
@@ -136,7 +132,6 @@ function buildTask() {
136132
.pipe(gulp.dest(outDir));
137133

138134
return merge(bundled, nonBundled);
139-
140135
}
141136

142137
function packageTask() {
@@ -235,16 +230,3 @@ function moduleSizesTask() {
235230
function watchTask() {
236231
return gulp.watch('./src/**', gulp.parallel('build'));
237232
}
238-
239-
function serverTask() {
240-
connect.server({
241-
port: 8000
242-
});
243-
}
244-
245-
// Convenience task for opening the project straight from the command line
246-
247-
function _openTask() {
248-
exec('open http://localhost:8000');
249-
exec('subl .');
250-
}

package.json

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,27 @@
11
{
22
"name": "chart.js",
3-
"homepage": "http://www.chartjs.org",
3+
"homepage": "https://www.chartjs.org",
44
"description": "Simple HTML5 charts using the canvas element.",
55
"version": "2.7.3",
66
"license": "MIT",
7+
"jsdelivr": "dist/Chart.min.js",
8+
"unpkg": "dist/Chart.min.js",
79
"main": "src/chart.js",
10+
"keywords": [
11+
"canvas",
12+
"charts",
13+
"data",
14+
"graphs",
15+
"html5",
16+
"responsive"
17+
],
818
"repository": {
919
"type": "git",
1020
"url": "https://github.com/chartjs/Chart.js.git"
1121
},
22+
"bugs": {
23+
"url": "https://github.com/chartjs/Chart.js/issues"
24+
},
1225
"devDependencies": {
1326
"browserify": "^16.2.3",
1427
"browserify-istanbul": "^3.0.1",
@@ -21,7 +34,6 @@
2134
"gitbook-cli": "^2.3.2",
2235
"gulp": "^4.0.0",
2336
"gulp-concat": "^2.6.0",
24-
"gulp-connect": "^5.6.1",
2537
"gulp-eslint": "^5.0.0",
2638
"gulp-file": "^0.4.0",
2739
"gulp-htmllint": "^0.0.16",
@@ -39,16 +51,13 @@
3951
"karma-chrome-launcher": "^2.2.0",
4052
"karma-coverage": "^1.1.1",
4153
"karma-firefox-launcher": "^1.0.1",
42-
"karma-jasmine": "^2.0.0",
54+
"karma-jasmine": "^2.0.1",
4355
"karma-jasmine-html-reporter": "^1.4.0",
4456
"merge-stream": "^1.0.1",
4557
"pixelmatch": "^4.0.2",
4658
"vinyl-source-stream": "^2.0.0",
4759
"watchify": "^3.9.0",
48-
"yargs": "^12.0.2"
49-
},
50-
"spm": {
51-
"main": "Chart.js"
60+
"yargs": "^12.0.5"
5261
},
5362
"dependencies": {
5463
"chartjs-color": "^2.1.0",

0 commit comments

Comments
 (0)