Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-paginate

Package Overview
Dependencies
Maintainers
1
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-paginate - npm Package Compare versions

Comparing version 0.1.12 to 0.1.13

86

gulpfile.js
'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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc