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');
.option('force-output', {default: false})
.option('silent-errors', {default: false})
.option('verbose', {default: false})
- .argv
+ .argv;
var srcDir = './src/';
var outDir = './dist/';
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.
.pipe(gulp.dest(outDir));
return merge(bundled, nonBundled);
-
}
function packageTask() {
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 .');
-}
{
"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",
"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",