Socket
Socket
Sign inDemoInstall

react-checkbox-tree

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-checkbox-tree - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

lib/index.js

33

gulpfile.js
var gulp = require('gulp');
var eslint = require('gulp-eslint');
var mocha = require('gulp-mocha-phantomjs');
var rename = require('gulp-rename');
var uglify = require('gulp-uglify');
var header = require('gulp-header');

@@ -14,3 +12,3 @@ var webpack = require('webpack-stream');

gulp.task('test-format', function () {
gulp.task('script-test-format', function () {
return gulp.src(['./src/js/**/*.js'])

@@ -22,3 +20,3 @@ .pipe(eslint())

gulp.task('compile-test', function () {
gulp.task('script-compile-test', function () {
return gulp.src(['./test/index.js'])

@@ -29,26 +27,17 @@ .pipe(webpack(require('./webpack.config.js')))

gulp.task('test-mocha', ['compile-test'], function () {
// Disabled for now
gulp.task('script-test-mocha', ['script-compile-test'], function () {
return gulp.src(['test/test.html'])
.pipe(mocha({reporter: 'spec'}));
.pipe(mocha({ reporter: 'spec' }));
});
gulp.task('test', ['test-format', 'compile-test']);
gulp.task('script-test', ['script-test-format', 'script-compile-test']);
gulp.task('compile-build', function () {
gulp.task('script-build', ['script-test'], function () {
return gulp.src(['./src/index.js'])
.pipe(webpack(require('./webpack.config.js')))
.pipe(gulp.dest('./compiled/'));
});
gulp.task('build', ['test', 'compile-build'], function () {
return gulp.src(['./compiled/d3-funnel.js'])
.pipe(gulp.dest('./dist/'))
.pipe(rename({
extname: '.min.js',
}))
.pipe(uglify())
.pipe(header(banner, {
pkg: pkg,
}))
.pipe(gulp.dest('./dist/'));
.pipe(gulp.dest('./lib/'));
});

@@ -63,10 +52,10 @@

}).on('error', sass.logError))
.pipe(gulp.dest('./compiled'));
.pipe(gulp.dest('./lib'));
});
gulp.task('watch', function () {
gulp.watch(['./src/js/**/*.js'], ['build']);
gulp.watch(['./src/js/**/*.js'], ['script-build']);
gulp.watch(['./src/sass/**/*.scss'], ['style-build']);
});
gulp.task('default', ['build', 'style-build']);
gulp.task('default', ['script-build', 'style-build']);
{
"name": "react-checkbox-tree",
"version": "0.0.1",
"version": "0.0.2",
"description": "React component for checkbox trees.",

@@ -12,3 +12,3 @@ "author": "Jake Zatecky",

"bugs": "https://github.com/jakezatecky/react-checkbox-tree/issues",
"main": "src/index.js",
"main": "lib/index.js",
"devDependencies": {

@@ -29,6 +29,4 @@ "babel-core": "^6.4.5",

"gulp-mocha-phantomjs": "^0.11.0",
"gulp-rename": "^1.2.2",
"gulp-sass": "^2.1.1",
"gulp-scss-lint": "^0.3.9",
"gulp-uglify": "^1.5.1",
"mocha": "^2.4.5",

@@ -35,0 +33,0 @@ "react-dom": "^0.14.7",

@@ -1,3 +0,6 @@

import Tree from './js/Tree';
// Use CommonJS export to trick Webpack into working around the issues that
// window.[module].default is set rather than window.[module]
//
// See: https://github.com/webpack/webpack/issues/706
export default Tree;
module.exports = require('./js/Tree.js').default;

@@ -7,6 +7,9 @@ /* eslint-disable */

output: {
filename: 'react-checkbox-tree.js',
filename: 'index.js',
libraryTarget: 'umd',
library: 'ReactCheckboxTree',
},
externals: {
react: 'React',
},
module: {

@@ -13,0 +16,0 @@ loaders: [

Sorry, the diff of this file is not supported yet

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