react-checkbox-tree
Advanced tools
Comparing version 0.0.1 to 0.0.2
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
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
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
723782
20
17911
13
1