]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Remove gulp-connect and add jsdelivr/unpkg paths (#5875)
authorSimon Brunel <simonbrunel@users.noreply.github.com>
Sat, 1 Dec 2018 07:35:43 +0000 (08:35 +0100)
committerGitHub <noreply@github.com>
Sat, 1 Dec 2018 07:35:43 +0000 (08:35 +0100)
.travis.yml
gulpfile.js
package.json

index 9b38ab3c1464508f97983904f2966934c42384c4..574bfe9a27acd399034265bc258028ce89b2b7fa 100644 (file)
@@ -1,6 +1,6 @@
 language: node_js
 node_js:
-  - "6"
+  - lts/*
 
 before_install:
   - "export CHROME_BIN=/usr/bin/google-chrome"
index 06229d6f89c6ea0f35e0363f453a2fd5e51ba0c5..c0a18cda225ff0be61179530be42b391cc48edb5 100644 (file)
@@ -1,6 +1,5 @@
 var gulp = require('gulp');
 var concat = require('gulp-concat');
-var connect = require('gulp-connect');
 var eslint = require('gulp-eslint');
 var file = require('gulp-file');
 var insert = require('gulp-insert');
@@ -26,7 +25,7 @@ var argv = yargs
   .option('force-output', {default: false})
   .option('silent-errors', {default: false})
   .option('verbose', {default: false})
-  .argv
+  .argv;
 
 var srcDir = './src/';
 var outDir = './dist/';
@@ -53,15 +52,12 @@ gulp.task('lint-html', lintHtmlTask);
 gulp.task('lint-js', lintJsTask);
 gulp.task('lint', gulp.parallel('lint-html', 'lint-js'));
 gulp.task('docs', docsTask);
-gulp.task('server', serverTask);
 gulp.task('unittest', unittestTask);
 gulp.task('test', gulp.parallel('lint', 'unittest'));
 gulp.task('library-size', librarySizeTask);
 gulp.task('module-sizes', moduleSizesTask);
 gulp.task('size', gulp.parallel('library-size', 'module-sizes'));
-gulp.task('_open', _openTask);
 gulp.task('default', gulp.parallel('build', 'watch'));
-gulp.task('dev', gulp.parallel('server', 'default'));
 
 /**
  * Generates the bower.json manifest file which will be pushed along release tags.
@@ -136,7 +132,6 @@ function buildTask() {
     .pipe(gulp.dest(outDir));
 
   return merge(bundled, nonBundled);
-
 }
 
 function packageTask() {
@@ -235,16 +230,3 @@ function moduleSizesTask() {
 function watchTask() {
   return gulp.watch('./src/**', gulp.parallel('build'));
 }
-
-function serverTask() {
-  connect.server({
-    port: 8000
-  });
-}
-
-// Convenience task for opening the project straight from the command line
-
-function _openTask() {
-  exec('open http://localhost:8000');
-  exec('subl .');
-}
index b8c72f99afbae9621703844e63197b322ef7f2eb..23b75ffd67b4d7285f3ec555af0b016411f0305d 100644 (file)
@@ -1,14 +1,27 @@
 {
   "name": "chart.js",
-  "homepage": "http://www.chartjs.org",
+  "homepage": "https://www.chartjs.org",
   "description": "Simple HTML5 charts using the canvas element.",
   "version": "2.7.3",
   "license": "MIT",
+  "jsdelivr": "dist/Chart.min.js",
+  "unpkg": "dist/Chart.min.js",
   "main": "src/chart.js",
+  "keywords": [
+    "canvas",
+    "charts",
+    "data",
+    "graphs",
+    "html5",
+    "responsive"
+  ],
   "repository": {
     "type": "git",
     "url": "https://github.com/chartjs/Chart.js.git"
   },
+  "bugs": {
+    "url": "https://github.com/chartjs/Chart.js/issues"
+  },
   "devDependencies": {
     "browserify": "^16.2.3",
     "browserify-istanbul": "^3.0.1",
@@ -21,7 +34,6 @@
     "gitbook-cli": "^2.3.2",
     "gulp": "^4.0.0",
     "gulp-concat": "^2.6.0",
-    "gulp-connect": "^5.6.1",
     "gulp-eslint": "^5.0.0",
     "gulp-file": "^0.4.0",
     "gulp-htmllint": "^0.0.16",
     "karma-chrome-launcher": "^2.2.0",
     "karma-coverage": "^1.1.1",
     "karma-firefox-launcher": "^1.0.1",
-    "karma-jasmine": "^2.0.0",
+    "karma-jasmine": "^2.0.1",
     "karma-jasmine-html-reporter": "^1.4.0",
     "merge-stream": "^1.0.1",
     "pixelmatch": "^4.0.2",
     "vinyl-source-stream": "^2.0.0",
     "watchify": "^3.9.0",
-    "yargs": "^12.0.2"
-  },
-  "spm": {
-    "main": "Chart.js"
+    "yargs": "^12.0.5"
   },
   "dependencies": {
     "chartjs-color": "^2.1.0",