react-apexcharts
Advanced tools
Comparing version 1.3.4 to 1.3.5
@@ -8,3 +8,3 @@ /// <reference types="react"/> | ||
interface Props { | ||
type?: "line" | "area" | "bar" | "histogram" | "pie" | "donut" | | ||
type?: "line" | "area" | "bar" | "histogram" | "pie" | "donut" | "rangeBar" | | ||
"radialBar" | "scatter" | "bubble" | "heatmap" | "candlestick" | "radar", | ||
@@ -18,2 +18,2 @@ series?: Array<any>, | ||
export default class ReactApexChart extends React.Component<Props> {} | ||
} | ||
} |
@@ -1,36 +0,42 @@ | ||
var gulp = require('gulp'); | ||
var react = require('gulp-react'); | ||
var concat = require('gulp-concat'); | ||
var uglify = require('gulp-uglify'); | ||
var babel = require('gulp-babel'); | ||
const { src, dest, series, parallel } = require('gulp'); | ||
const react = require('gulp-react'); | ||
const concat = require('gulp-concat'); | ||
const uglify = require('gulp-uglify'); | ||
const babel = require('gulp-babel'); | ||
gulp.task('dev', function () { | ||
return gulp.src(['./src/react-apexcharts.jsx']) | ||
.pipe(react({ | ||
es6module: true | ||
})) | ||
.pipe(concat('react-apexcharts.js')) | ||
.pipe(gulp.dest('./dist/')); | ||
}); | ||
function dev() { | ||
return ( | ||
src(['./src/react-apexcharts.jsx']) | ||
.pipe(react({ | ||
es6module: true | ||
})) | ||
.pipe(concat('react-apexcharts.js')) | ||
.pipe(dest('./dist/')) | ||
); | ||
} | ||
gulp.task('prod', function () { | ||
return gulp.src(['./src/react-apexcharts.jsx']) | ||
.pipe(react({ | ||
es6module: true | ||
})) | ||
.pipe(babel({ | ||
presets: ['es2015', 'react'], | ||
plugins: ['transform-object-rest-spread'] | ||
})) | ||
.pipe(concat('react-apexcharts.min.js')) | ||
.pipe(uglify()) | ||
.pipe(gulp.dest('./dist/')); | ||
}); | ||
function prod() { | ||
return ( | ||
src(['./src/react-apexcharts.jsx']) | ||
.pipe(react({ | ||
es6module: true | ||
})) | ||
.pipe(babel({ | ||
presets: ['es2015', 'react'], | ||
plugins: ['transform-object-rest-spread'] | ||
})) | ||
.pipe(concat('react-apexcharts.min.js')) | ||
.pipe(uglify()) | ||
.pipe(dest('./dist/')) | ||
); | ||
} | ||
gulp.task('types', function () { | ||
return gulp.src(['./types/react-apexcharts.d.ts']) | ||
.pipe(gulp.dest('./dist/')) | ||
}) | ||
function types() { | ||
return ( | ||
src(['./types/react-apexcharts.d.ts']) | ||
.pipe(dest('./dist/')) | ||
); | ||
} | ||
gulp.task('build', ['dev', 'prod', 'types']); | ||
gulp.task('default', ['dev', 'prod', 'types']); | ||
exports.build = parallel(dev, prod, types); | ||
exports.default = series(dev, prod, types); |
{ | ||
"name": "react-apexcharts", | ||
"version": "1.3.4", | ||
"version": "1.3.5", | ||
"description": "React.js wrapper for ApexCharts", | ||
@@ -45,3 +45,3 @@ "main": "dist/react-apexcharts.min.js", | ||
"eslint-plugin-react": "^7.12.4", | ||
"gulp": "^3.9.1", | ||
"gulp": "^4.0.2", | ||
"gulp-babel": "^6.1.2", | ||
@@ -48,0 +48,0 @@ "gulp-concat": "^2.6.1", |
@@ -79,5 +79,4 @@ <p align="center"><img src="https://apexcharts.com/media/react-apexcharts.png"></p> | ||
xaxis: { | ||
...this.state.options.xaxis, { | ||
categories: ['X1', 'X2', 'X3'] | ||
} | ||
...this.state.options.xaxis, | ||
categories: ['X1', 'X2', 'X3'] | ||
} | ||
@@ -133,3 +132,3 @@ } | ||
│ ├── package.json | ||
│ └── REAMDE.md | ||
│ └── README.md | ||
└── src/ | ||
@@ -136,0 +135,0 @@ └── react-apexcharts.jsx |
@@ -8,3 +8,3 @@ /// <reference types="react"/> | ||
interface Props { | ||
type?: "line" | "area" | "bar" | "histogram" | "pie" | "donut" | | ||
type?: "line" | "area" | "bar" | "histogram" | "pie" | "donut" | "rangeBar" | | ||
"radialBar" | "scatter" | "bubble" | "heatmap" | "candlestick" | "radar", | ||
@@ -18,2 +18,2 @@ series?: Array<any>, | ||
export default class ReactApexChart extends React.Component<Props> {} | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25935
405
164