react-clock
Advanced tools
Comparing version 1.0.2 to 1.0.3
var gulp = require('gulp'); | ||
var rename = require('gulp-rename'); | ||
var browserify = require('browserify'); | ||
var babel = require('gulp-babel'); | ||
var source = require('vinyl-source-stream'); | ||
@@ -12,5 +14,24 @@ gulp.task('scripts', function () { | ||
gulp.task('example', function() { | ||
var entryFile = './jsx/clientApp.jsx'; | ||
var bundler = browserify({ | ||
extensions: ['.js', '.es6.js', '.jsx'], | ||
transform: ['babelify'] | ||
}); | ||
bundler.add(entryFile); | ||
var stream = bundler.bundle(); | ||
stream.on('error', function (err) { console.error(err.toString()) }); | ||
stream | ||
.pipe(source(entryFile)) | ||
.pipe(rename('app.js')) | ||
.pipe(gulp.dest('')); | ||
}); | ||
gulp.task('watch', function() { | ||
gulp.watch(['./jsx/**/*'], ['scripts']); | ||
gulp.watch(['./jsx/**/*'], ['scripts', 'example']); | ||
}); | ||
gulp.task('default', ['watch']); |
@@ -1,4 +0,4 @@ | ||
var React = require('react'); | ||
'use strict'; | ||
var React = require('react'); | ||
var output; | ||
@@ -5,0 +5,0 @@ var SetIntervalMixin = { |
{ | ||
"name": "react-clock", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "A React component to display the current time.", | ||
@@ -30,5 +30,8 @@ "main": "index.js", | ||
"devDependencies": { | ||
"babelify": "^6.3.0", | ||
"browserify": "^11.2.0", | ||
"gulp": "^3.8.11", | ||
"gulp-babel": "^5.2.1", | ||
"gulp-rename": "^1.2.2" | ||
"gulp-rename": "^1.2.2", | ||
"vinyl-source-stream": "^1.1.0" | ||
}, | ||
@@ -35,0 +38,0 @@ "dependencies": { |
# React Clock [![npm version](https://badge.fury.io/js/react-clock.svg)](http://badge.fury.io/js/react-clock) [![Dependency Status](https://david-dm.org/ryanburgess/react-clock.svg)](https://david-dm.org/ryanburgess/react-clock) | ||
A React clock component to display the current time. | ||
[DEMO](http://htmlpreview.github.io/?https://github.com/ryanburgess/react-clock/master/index.html) | ||
## Getting Started | ||
@@ -16,3 +18,3 @@ | ||
var Clock = require('react-clock'); | ||
<Clock></Clock> | ||
<Clock /> | ||
``` |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
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
624875
10
17683
20
6
2