mirror of
https://github.com/encounter/react-add-to-calendar.git
synced 2026-07-10 21:18:44 -07:00
removing gulpfile that got scooped into repo from automated commit and increasing base moment version
This commit is contained in:
@@ -17,7 +17,7 @@ The package can be installed via NPM:
|
||||
npm install react-add-to-calendar --save
|
||||
```
|
||||
|
||||
You’ll need to install React separately since it's not included in the package. Below is a simple example on how to use the Add to Calendar button in a React view.
|
||||
You’ll need to install React and Moment separately since they are not included in the package. Below is a simple example on how to use the Add to Calendar button in a React view.
|
||||
|
||||
```js
|
||||
var React = require('react');
|
||||
|
||||
@@ -20558,6 +20558,12 @@
|
||||
_react2.default.createElement('img', { src: 'https://travis-ci.org/jasonsalzman/react-add-to-calendar.svg?branch=master', className: 'badge' })
|
||||
),
|
||||
'\xA0\xA0',
|
||||
_react2.default.createElement(
|
||||
'a',
|
||||
{ href: 'https://david-dm.org/jasonsalzman/react-add-to-calendar' },
|
||||
_react2.default.createElement('img', { src: 'https://img.shields.io/david/strongloop/express.svg?maxAge=2592000', className: 'badge' })
|
||||
),
|
||||
'\xA0\xA0',
|
||||
_react2.default.createElement(
|
||||
'a',
|
||||
{ href: 'https://david-dm.org/jasonsalzman/react-add-to-calendar' },
|
||||
|
||||
-105
@@ -1,105 +0,0 @@
|
||||
var gulp = require('gulp');
|
||||
var rename = require('gulp-rename');
|
||||
var sass = require('gulp-sass');
|
||||
var scssLint = require('gulp-scss-lint');
|
||||
var babel = require('gulp-babel');
|
||||
var webpack = require('gulp-webpack');
|
||||
var karma = require('gulp-karma');
|
||||
var eslint = require('gulp-eslint');
|
||||
|
||||
|
||||
gulp.task('sass', function () {
|
||||
return gulp
|
||||
.src('src/styles/ReactAddToCalendar.scss')
|
||||
.pipe(gulp.dest('dist/react-add-to-calendar.css'))
|
||||
;
|
||||
});
|
||||
|
||||
gulp.task('sass', function () { // WARNING: potential duplicate task
|
||||
return gulp
|
||||
.src('src/styles/ReactAddToCalendar.scss')
|
||||
.pipe(gulp.dest('dist/react-add-to-calendar.min.css'))
|
||||
;
|
||||
});
|
||||
|
||||
gulp.task('watch', function () {
|
||||
gulp.watch('{src,test,docs-site/src}/**/*.{js,jsx}', [ /* dependencies */ ]);
|
||||
});
|
||||
|
||||
gulp.task('watch', function () {
|
||||
gulp.watch('*.js', [ /* dependencies */ ]);
|
||||
});
|
||||
|
||||
gulp.task('watch', function () {
|
||||
gulp.watch('**/*.scss', [ /* dependencies */ ]);
|
||||
});
|
||||
|
||||
gulp.task('watch', function () {
|
||||
gulp.watch('src/**/*.jsx', [ /* dependencies */ ]);
|
||||
});
|
||||
|
||||
gulp.task('watch', function () {
|
||||
gulp.watch('src/**/*.js', [ /* dependencies */ ]);
|
||||
});
|
||||
|
||||
gulp.task('watch', function () {
|
||||
gulp.watch('test/**/*.jsx', [ /* dependencies */ ]);
|
||||
});
|
||||
|
||||
gulp.task('watch', function () {
|
||||
gulp.watch('test/**/*.js', [ /* dependencies */ ]);
|
||||
});
|
||||
|
||||
gulp.task('watch', function () {
|
||||
gulp.watch('src/**/*.js', [ /* dependencies */ ]);
|
||||
});
|
||||
|
||||
gulp.task('watch', function () {
|
||||
gulp.watch('src/**/*.jsx', [ /* dependencies */ ]);
|
||||
});
|
||||
|
||||
gulp.task('scsslint', function () {
|
||||
return gulp
|
||||
.src('src/styles/*.scss,docs-site/src/*.scss')
|
||||
;
|
||||
});
|
||||
|
||||
gulp.task('test', function (done) {
|
||||
karma.start(
|
||||
|
||||
, done);
|
||||
});
|
||||
|
||||
gulp.task('eslint', function () {
|
||||
return gulp
|
||||
.src('{src,test,docs-site/src}/**/*.{js,jsx},*.js')
|
||||
;
|
||||
});
|
||||
|
||||
gulp.task('webpack', function () {
|
||||
return gulp
|
||||
.src('[object Object]')
|
||||
.pipe(gulp.dest('unmin'))
|
||||
;
|
||||
});
|
||||
|
||||
gulp.task('webpack', function () { // WARNING: potential duplicate task
|
||||
return gulp
|
||||
.src('[object Object]')
|
||||
.pipe(gulp.dest('min'))
|
||||
;
|
||||
});
|
||||
|
||||
gulp.task('webpack', function () { // WARNING: potential duplicate task
|
||||
return gulp
|
||||
.src('[object Object]')
|
||||
.pipe(gulp.dest('docs'))
|
||||
;
|
||||
});
|
||||
|
||||
gulp.task('default', ["watch","scsslint"]);
|
||||
|
||||
gulp.task('travis', ["eslint","karma","scsslint"]);
|
||||
|
||||
gulp.task('build', ["scsslint","babel","webpack","sass"]);
|
||||
|
||||
+2
-2
@@ -2,7 +2,7 @@
|
||||
"author": "Jason Salzman",
|
||||
"name": "react-add-to-calendar",
|
||||
"description": "A simple and reusable add to calendar button component for React",
|
||||
"version": "0.0.3",
|
||||
"version": "0.0.4",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/jasonsalzman/react-add-to-calendar",
|
||||
"repository": {
|
||||
@@ -89,7 +89,7 @@
|
||||
"react-dom": "^0.14.0 || ^15.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"moment": "^2.13.0"
|
||||
"moment": "^2.15.1"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "NODE_ENV=production grunt build",
|
||||
|
||||
Reference in New Issue
Block a user