Skip to content

Commit

Permalink
0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
danielstjules committed Sep 17, 2014
1 parent d8a8b0c commit 23b0c0a
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cross-storage",
"version": "0.2.4",
"version": "0.3.0",
"description": "Cross domain local storage",
"license": "Apache-2.0",
"main": [
Expand Down
10 changes: 10 additions & 0 deletions dist/client.js → dist/client-0.3.0.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/**
* cross-storage - Cross domain local storage
*
* @version 0.3.0
* @link https://github.com/zendesk/cross-storage
* @author Daniel St. Jules <danielst.jules@gmail.com>
* @copyright Zendesk
* @license Apache-2.0
*/

/**
* Constructs a new cross storage client given the url to a hub. By default,
* an iframe is created within the document body that points to the url. It
Expand Down
10 changes: 10 additions & 0 deletions dist/client.min.js → dist/client-0.3.0.min.js

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

10 changes: 10 additions & 0 deletions dist/hub.js → dist/hub-0.3.0.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/**
* cross-storage - Cross domain local storage
*
* @version 0.3.0
* @link https://github.com/zendesk/cross-storage
* @author Daniel St. Jules <danielst.jules@gmail.com>
* @copyright Zendesk
* @license Apache-2.0
*/

var CrossStorageHub = {};

/**
Expand Down
10 changes: 10 additions & 0 deletions dist/hub.min.js → dist/hub-0.3.0.min.js

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

31 changes: 28 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,48 @@
var gulp = require('gulp');
var rimraf = require('gulp-rimraf');
var uglify = require('gulp-uglify');
var jshint = require('gulp-jshint');
var rename = require('gulp-rename');
var header = require('gulp-header');

var pkg = require('./package.json');
var banner = [
'/**',
' * <%= pkg.name %> - <%= pkg.description %>',
' *',
' * @version <%= pkg.version %>',
' * @link <%= pkg.homepage %>',
' * @author <%= pkg.author %>',
' * @copyright Zendesk',
' * @license <%= pkg.license %>',
' */\n\n'
].join('\n');

var paths = {
scripts: './lib/*.js',
dist: 'dist/'
dist: './dist/'
};

gulp.task('clean', function() {
gulp.src(paths.dist + '*', {read: false})
.pipe(rimraf());
});

gulp.task('copy', function() {
gulp.src(paths.scripts)
.pipe(header(banner, {pkg: pkg}))
.pipe(rename(function(path) {
path.basename += '-' + pkg.version;
}))
.pipe(gulp.dest(paths.dist));
});

gulp.task('minify', function() {
gulp.src(paths.scripts)
.pipe(uglify())
.pipe(header(banner, {pkg: pkg}))
.pipe(rename(function(path) {
path.basename += '.min';
path.basename += '-' + pkg.version + '.min';
}))
.pipe(gulp.dest(paths.dist));
});
Expand All @@ -28,4 +53,4 @@ gulp.task('jshint', function() {
.pipe(jshint.reporter());
});

gulp.task('dist', ['copy', 'minify']);
gulp.task('dist', ['clean', 'copy', 'minify']);
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cross-storage",
"version": "0.2.4",
"version": "0.3.0",
"description": "Cross domain local storage",
"keywords": [
"local",
Expand All @@ -9,9 +9,7 @@
"domain"
],
"author": "Daniel St. Jules <danielst.jules@gmail.com>",
"licenses": [
"Apache-2.0"
],
"license": "Apache-2.0",
"homepage": "https://github.com/zendesk/cross-storage",
"repository": {
"type": "git",
Expand All @@ -24,6 +22,8 @@
"gulp-jshint": "^1.8.4",
"gulp-rename": "^1.2.0",
"gulp-uglify": "^0.3.1",
"gulp-header": "^1.1.1",
"gulp-rimraf": "^0.1.0",
"serve-static": "^1.5.3",
"zuul": "^1.10.1"
},
Expand Down

0 comments on commit 23b0c0a

Please sign in to comment.