dropkickjs
Advanced tools
Comparing version 2.1.6 to 2.1.7
@@ -7,3 +7,4 @@ { | ||
], | ||
"description": "A JavaScript plugin for creating beautiful, graceful, and painless custom dropdowns." | ||
"description": "A JavaScript plugin for creating beautiful, graceful, and painless custom dropdowns.", | ||
"version": "2.1.7" | ||
} |
/* global require */ | ||
var gulp = require('gulp-npm-run')(require('gulp'), { | ||
exclude: ['test'], | ||
require: ['doc'] | ||
}), | ||
exclude: ['test'], | ||
require: ['doc'] | ||
}), | ||
del = require('del'), | ||
@@ -26,4 +26,4 @@ bump = require('gulp-bump'), | ||
gulp.task('default', ['sass', 'test', 'docs']); | ||
gulp.task('docs', ['doc', 'docs-rename']); | ||
gulp.task('build', ['sass', 'build-rename', 'build-polyfill', 'build-versionless-file']); | ||
gulp.task('docs', ['doc', 'docs-move-api']); | ||
gulp.task('build', ['sass', 'build-polyfill', 'build-versionless-file']); | ||
@@ -46,14 +46,7 @@ // Lint Task | ||
gulp.src('./*.json') | ||
.pipe(bump()) | ||
.pipe(gulp.dest('./')); | ||
.pipe(bump({version: options.ver})) | ||
.pipe(gulp.dest('./')); | ||
}); | ||
// USEAGE: gulp build-rename --ver 2.x.x | ||
gulp.task('build-rename', function() { | ||
return gulp.src('./lib/dropkick.js') | ||
.pipe(rename('dropkick.' + options.ver + '.min.js')) | ||
.pipe(uglify()) | ||
.pipe(gulp.dest('build/js/')); | ||
}); | ||
gulp.task('build-polyfill', function() { | ||
@@ -85,11 +78,12 @@ return gulp.src(['./lib/polyfills/*.js', './lib/dropkick.js']) | ||
gulp.task('docs-rename', function() { | ||
gulp.task('docs-move-api', function() { | ||
setTimeout(function() { //ugh | ||
return del(['./docs/index.html'], function () { | ||
gulp.src('./examples/**/*').pipe(gulp.dest('./docs/')); | ||
return gulp.src('./docs/classes/Dropkick.html') | ||
.pipe(rename('index.html')) | ||
.pipe(replace('../', '')) | ||
.pipe(gulp.dest('./docs/')); | ||
.pipe(rename('api.html')) | ||
.pipe(replace('../', '')) | ||
.pipe(gulp.dest('./docs/')); | ||
}); | ||
}, 4000); | ||
}, 2000); | ||
}); | ||
@@ -96,0 +90,0 @@ |
{ | ||
"name": "dropkickjs", | ||
"version": "2.1.6", | ||
"version": "2.1.7", | ||
"author": { | ||
@@ -8,5 +8,7 @@ "name": "Robert DeLuca", | ||
}, | ||
"contributors": [{ | ||
"name": "Wil Wilsman" | ||
}], | ||
"contributors": [ | ||
{ | ||
"name": "Wil Wilsman" | ||
} | ||
], | ||
"repository": "robdel12/DropKick", | ||
@@ -13,0 +15,0 @@ "bugs": { |
{ | ||
"name": "DropKick API Documentation", | ||
"description": "DropKicks API Documentation", | ||
"version": "2.1.6", | ||
"version": "2.1.7", | ||
"url": "http://dropkickjs.com/", | ||
@@ -6,0 +6,0 @@ "options": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2514
238203