react-paginate
Advanced tools
Comparing version 0.1.12 to 0.1.13
'use strict'; | ||
var gulp = require('gulp'); | ||
var gulp = require('gulp'); | ||
var browserify = require('browserify'); | ||
var source = require('vinyl-source-stream'); | ||
var reactify = require('reactify'); | ||
var watchify = require('watchify'); | ||
var reactify = require('reactify'); | ||
var source = require('vinyl-source-stream'); | ||
var buffer = require('vinyl-buffer'); | ||
var uglify = require('gulp-uglify'); | ||
var dest = "./build"; | ||
var src = './react_components'; | ||
var config = { | ||
pagination: { | ||
src: src + "/index.js", | ||
dest: dest | ||
}, | ||
sample: { | ||
src: "./sample/sample.jsx", | ||
dest: "./sample" | ||
} | ||
}; | ||
gulp.task('default', ['pagination', 'sample', 'watch']); | ||
gulp.task('watch', function(){ | ||
bundler.on('update', function(){ | ||
gulp.start('pagination'); | ||
}); | ||
sampleBundler.on('update', function(){ | ||
gulp.start('sample'); | ||
}); | ||
gulp.task('watch', function() { | ||
gulp.watch('./react_components/*.js', ['app', 'sample']); | ||
gulp.watch('./sample/sample.jsx', ['sample']); | ||
}); | ||
var bundler = watchify(browserify(config.pagination.src, { | ||
cache: {}, | ||
packageCache: {}, | ||
fullPaths: true, | ||
standalone: 'react-paginate', | ||
debug: true | ||
})); | ||
gulp.task('pagination', function() { | ||
var browserifyStream = bundler.bundle() | ||
.pipe(source('react-paginate.js')) | ||
.pipe(gulp.dest(config.pagination.dest)); | ||
return browserifyStream; | ||
gulp.task('app', function() { | ||
return browserify('./react_components/index.js') | ||
.transform(reactify) | ||
.bundle() | ||
.pipe(source('react-paginate.js')) | ||
.pipe(buffer()) | ||
.pipe(uglify()) | ||
.pipe(gulp.dest('./build')); | ||
}); | ||
var sampleBundler = watchify(browserify(config.sample.src, { | ||
cache: {}, | ||
packageCache: {}, | ||
fullPaths: true, | ||
standalone: 'sample', | ||
debug: true | ||
})); | ||
sampleBundler.transform(reactify); | ||
gulp.task('sample', function(){ | ||
var browserifyStream = sampleBundler.bundle() | ||
gulp.task('sample', function() { | ||
return browserify('./sample/sample.jsx') | ||
.transform(reactify) | ||
.bundle() | ||
.pipe(source('sample.js')) | ||
.pipe(gulp.dest(config.sample.dest)); | ||
.pipe(buffer()) | ||
.pipe(uglify()) | ||
.pipe(gulp.dest('./sample')); | ||
}); | ||
return browserifyStream; | ||
}); | ||
gulp.task('default', ['app', 'sample']); |
{ | ||
"name": "react-paginate", | ||
"version": "0.1.12", | ||
"description": "A ReactJS component that create a pagination.", | ||
"version": "0.1.13", | ||
"description": "A ReactJS component that creates a pagination.", | ||
"main": "./react_components/index.js", | ||
@@ -29,12 +29,12 @@ "repository": { | ||
"gulp": "~3.8.8", | ||
"gulp-uglify": "^1.1.0", | ||
"jest-cli": "^0.2.2", | ||
"react": "~0.12.2", | ||
"react-tools": "~0.12.2", | ||
"reactify": "1.0.0", | ||
"vinyl-buffer": "^1.0.0", | ||
"vinyl-source-stream": "~1.0.0", | ||
"watchify": "~2.1", | ||
"react": "~0.12.2" | ||
"watchify": "~2.1" | ||
}, | ||
"peerDependencies": { | ||
}, | ||
"peerDependencies": {}, | ||
"browserify": { | ||
@@ -41,0 +41,0 @@ "transform": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
410928
10
1483
4
4
3