Skip to content

Commit

Permalink
Sync versions (resolves #1)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClickerMonkey committed Aug 10, 2016
1 parent 776adbb commit 585431b
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 5 deletions.
7 changes: 7 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
src/
test/
images/
docs/
.jshintrc
.travis.yml
jsdoc.json
9 changes: 9 additions & 0 deletions Gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
'use strict';

var fs = require('fs');
var pkg = JSON.parse( fs.readFileSync('./package.json') );
var gulp = require('gulp');
var sourcemaps = require('gulp-sourcemaps');
var plugins = require('gulp-load-plugins')();
Expand All @@ -9,6 +11,7 @@ var shell = require('gulp-shell');
var size = require('gulp-check-filesize');
var jshint = require('gulp-jshint');
var rename = require('gulp-rename');
var insert = require('gulp-insert');

var build = {
filename: 'rekord-ajax.js',
Expand All @@ -23,6 +26,10 @@ var tests = [
'./test/index.html'
];

var comments = [
"/*", pkg.name, pkg.version, '-', pkg.description, 'by', pkg.author, "*/\n"
];

var executeMinifiedBuild = function(props)
{
return function() {
Expand All @@ -31,6 +38,7 @@ var executeMinifiedBuild = function(props)
.pipe( rename( props.minified ) )
.pipe( sourcemaps.init() )
.pipe( plugins.uglify().on('error', gutil.log) )
.pipe( insert.prepend( comments.join(' ') ) )
.pipe( sourcemaps.write('.') )
.pipe( size({enableGzip: true}) )
.pipe( gulp.dest( props.output ) )
Expand All @@ -44,6 +52,7 @@ var executeBuild = function(props)
return gulp
.src( props.include )
.pipe( plugins.concat( props.filename ) )
.pipe( insert.prepend( comments.join(' ') ) )
.pipe( size({enableGzip: true}) )
.pipe( gulp.dest( props.output ) )
.pipe( jshint() )
Expand Down
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rekord-ajax",
"version": "1.0.0",
"version": "1.4.0",
"homepage": "https://github.com/Rekord/rekord-ajax",
"authors": [
"Philip Diffenderfer <[email protected]>"
Expand All @@ -23,6 +23,6 @@
"tests"
],
"dependencies": {
"rekord": "^1.2.0"
"rekord": "~1.4.0"
}
}
1 change: 1 addition & 0 deletions build/rekord-ajax.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* rekord-ajax 1.4.0 - A dependency free AJAX implementation of Rekord.rest by Philip Diffenderfer */
(function (global, Rekord, undefined)
{
var copy = Rekord.copy;
Expand Down
1 change: 1 addition & 0 deletions build/rekord-ajax.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/rekord-ajax.min.js.map

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rekord-ajax",
"version": "1.0.0",
"version": "1.4.0",
"description": "A dependency free AJAX implementation of Rekord.rest",
"author": "Philip Diffenderfer",
"license": "MIT",
Expand All @@ -15,6 +15,7 @@
"gulp": "^3.8.10",
"gulp-check-filesize": "^2.0.1",
"gulp-concat": "^2.4.3",
"gulp-insert": "^0.5.0",
"gulp-jshint": "^2.0.1",
"gulp-load-plugins": "^1.2.4",
"gulp-qunit": "^1.4.0",
Expand All @@ -27,6 +28,6 @@
"jshint": "^2.9.2"
},
"dependencies": {
"rekord": "^1.2.0"
"rekord": "~1.4.0"
}
}

0 comments on commit 585431b

Please sign in to comment.