Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
designfrontier committed Jun 16, 2014
2 parents 36bcdc5 + a8f687e commit d962df8
Show file tree
Hide file tree
Showing 17 changed files with 4,037 additions and 53 deletions.
10 changes: 7 additions & 3 deletions Gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ var gulp = require('gulp')
, rename = require('gulp-rename')
, zip = require('gulp-zip')
, jshint = require('gulp-jshint')
, header = require('gulp-header')

, pkg = require('./package.json');

Expand All @@ -29,21 +30,24 @@ gulp.task('localBuild', function(){

gulp.task('generateForPublish', function(){
'use strict';
var headerText = '/****************************************\nAction! v' + pkg.version + ' ' + pkg.releaseName + ' \nhttps://github.com/designfrontier/Action \n****************************************/\n';

gulp.src('public/javascripts/action.js')
.pipe(header(headerText))
.pipe(gulp.dest('packages/latest/'))
.pipe(rename('action-v' + pkg.version + '.js'))
.pipe(gulp.dest('packages/' + pkg.version + '/'))
.pipe(uglify())
.pipe(header(headerText))
.pipe(rename('action.min.js'))
.pipe(gulp.dest('packages/latest/'))
.pipe(rename('action-v' + pkg.version + '.min.js'))
.pipe(gulp.dest('packages/' + pkg.version + '/'));
});

gulp.task('publish', ['generateForPublish'], function(){
'use strict';

// gulp.src(['packages/' + pkg.version + '/*.js'])
// .pipe(zip('action.zip'))
// .pipe(gulp.dest('packages/' + pkg.version + '/'));
});

// gulp.task('default', function () {
Expand Down
14 changes: 8 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "action",
"version": "0.4.0",
"version": "0.4.1",
"releaseName": "Akshay Kumar",
"private": true,
"scripts": {
"start": "node app.js"
Expand All @@ -10,13 +11,14 @@
"ejs": "*"
},
"devDependencies": {
"gulp-concat": "^2.2.0",
"gulp": "^3.6.0",
"gulp-uglify": "^0.2.1",
"gulp-concat": "^2.2.0",
"gulp-header": "^1.0.2",
"gulp-jshint": "^1.5.5",
"gulp-plumber": "^0.6.0",
"gulp-watch": "^0.5.4",
"gulp-rename": "^1.2.0",
"gulp-zip": "^0.3.4",
"gulp-jshint": "^1.5.5"
"gulp-uglify": "^0.2.1",
"gulp-watch": "^0.5.4",
"gulp-zip": "^0.3.4"
}
}
5 changes: 0 additions & 5 deletions packages/0.3.0/action-v0.3.0.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ var action = function(){
eventStack = action.eventStore[eventNameIn];
}

// if(typeof eventDataIn !== 'undefined'){
// //we have some event data
// eventData.payload = eventDataIn;
// }

//emit the event
if(typeof eventStack !== 'undefined'){
for(i = 0; i < eventStack.length; i ++){
Expand Down
Loading

0 comments on commit d962df8

Please sign in to comment.