Initial commit
This commit is contained in:
commit
df74a5bd41
326 changed files with 75899 additions and 0 deletions
12
bower_components/what-input/gulpfile.js/tasks/clean.js
vendored
Normal file
12
bower_components/what-input/gulpfile.js/tasks/clean.js
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
var gulp = require('gulp');
|
||||
var del = require('del');
|
||||
|
||||
gulp.task('clean', function () {
|
||||
return del([
|
||||
'./.DS_Store',
|
||||
'./src/.DS_Store',
|
||||
'./src/**/.DS_Store',
|
||||
'./gulpfile.js/.DS_Store',
|
||||
'./gulpfile.js/**/.DS_Store'
|
||||
]);
|
||||
});
|
12
bower_components/what-input/gulpfile.js/tasks/default.js
vendored
Normal file
12
bower_components/what-input/gulpfile.js/tasks/default.js
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
var gulp = require('gulp');
|
||||
var browserSync = require('browser-sync').create();
|
||||
|
||||
gulp.task('default', ['clean', 'scripts'], function() {
|
||||
browserSync.init({
|
||||
server: {
|
||||
baseDir: './'
|
||||
}
|
||||
});
|
||||
|
||||
gulp.watch(['./what-input.js', './polyfills/*.js'], ['scripts']).on('change', browserSync.reload);
|
||||
});
|
36
bower_components/what-input/gulpfile.js/tasks/scripts.js
vendored
Normal file
36
bower_components/what-input/gulpfile.js/tasks/scripts.js
vendored
Normal file
|
@ -0,0 +1,36 @@
|
|||
var gulp = require('gulp');
|
||||
var plumber = require('gulp-plumber');
|
||||
var notify = require('gulp-notify');
|
||||
var uglify = require('gulp-uglify');
|
||||
var rename = require('gulp-rename');
|
||||
var concat = require('gulp-concat');
|
||||
var header = require('gulp-header');
|
||||
var pkg = require('../../package.json');
|
||||
var banner = ['/**',
|
||||
' * <%= pkg.name %> - <%= pkg.description %>',
|
||||
' * @version v<%= pkg.version %>',
|
||||
' * @link <%= pkg.homepage %>',
|
||||
' * @license <%= pkg.license %>',
|
||||
' */',
|
||||
''].join('\n');
|
||||
|
||||
gulp.task('scripts-uglify', function() {
|
||||
return gulp.src(['./what-input.js'])
|
||||
.pipe(plumber({errorHandler: notify.onError("Error: <%= error.message %>")}))
|
||||
.pipe(uglify())
|
||||
.pipe(rename('what-input.min.js'))
|
||||
.pipe(header(banner, { pkg : pkg } ))
|
||||
.pipe(gulp.dest('./'))
|
||||
.pipe(notify('Scripts uglify task complete'));
|
||||
});
|
||||
|
||||
gulp.task('scripts-ie8', function() {
|
||||
return gulp.src(['./polyfills/ie8/*.js'])
|
||||
.pipe(plumber({errorHandler: notify.onError("Error: <%= error.message %>")}))
|
||||
.pipe(concat('lte-IE8.js'))
|
||||
.pipe(uglify())
|
||||
.pipe(gulp.dest('./'))
|
||||
.pipe(notify('IE8 scripts task complete'));
|
||||
});
|
||||
|
||||
gulp.task('scripts', ['scripts-uglify', 'scripts-ie8']);
|
Loading…
Add table
Add a link
Reference in a new issue