Skip to content

Commit d962df8

Browse files
Merge branch 'development'
2 parents 36bcdc5 + a8f687e commit d962df8

17 files changed

+4037
-53
lines changed

Gulpfile.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ var gulp = require('gulp')
66
, rename = require('gulp-rename')
77
, zip = require('gulp-zip')
88
, jshint = require('gulp-jshint')
9+
, header = require('gulp-header')
910

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

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

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

3335
gulp.src('public/javascripts/action.js')
36+
.pipe(header(headerText))
37+
.pipe(gulp.dest('packages/latest/'))
3438
.pipe(rename('action-v' + pkg.version + '.js'))
3539
.pipe(gulp.dest('packages/' + pkg.version + '/'))
3640
.pipe(uglify())
41+
.pipe(header(headerText))
42+
.pipe(rename('action.min.js'))
43+
.pipe(gulp.dest('packages/latest/'))
3744
.pipe(rename('action-v' + pkg.version + '.min.js'))
3845
.pipe(gulp.dest('packages/' + pkg.version + '/'));
3946
});
4047

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

44-
// gulp.src(['packages/' + pkg.version + '/*.js'])
45-
// .pipe(zip('action.zip'))
46-
// .pipe(gulp.dest('packages/' + pkg.version + '/'));
4751
});
4852

4953
// gulp.task('default', function () {

package.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "action",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
4+
"releaseName": "Akshay Kumar",
45
"private": true,
56
"scripts": {
67
"start": "node app.js"
@@ -10,13 +11,14 @@
1011
"ejs": "*"
1112
},
1213
"devDependencies": {
13-
"gulp-concat": "^2.2.0",
1414
"gulp": "^3.6.0",
15-
"gulp-uglify": "^0.2.1",
15+
"gulp-concat": "^2.2.0",
16+
"gulp-header": "^1.0.2",
17+
"gulp-jshint": "^1.5.5",
1618
"gulp-plumber": "^0.6.0",
17-
"gulp-watch": "^0.5.4",
1819
"gulp-rename": "^1.2.0",
19-
"gulp-zip": "^0.3.4",
20-
"gulp-jshint": "^1.5.5"
20+
"gulp-uglify": "^0.2.1",
21+
"gulp-watch": "^0.5.4",
22+
"gulp-zip": "^0.3.4"
2123
}
2224
}

packages/0.3.0/action-v0.3.0.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@ var action = function(){
2525
eventStack = action.eventStore[eventNameIn];
2626
}
2727

28-
// if(typeof eventDataIn !== 'undefined'){
29-
// //we have some event data
30-
// eventData.payload = eventDataIn;
31-
// }
32-
3328
//emit the event
3429
if(typeof eventStack !== 'undefined'){
3530
for(i = 0; i < eventStack.length; i ++){

0 commit comments

Comments
 (0)