Skip to content

Commit

Permalink
added a publish to the gulp file, revved the package.json, and built …
Browse files Browse the repository at this point in the history
…out version 0.2.0
  • Loading branch information
designfrontier committed Apr 29, 2014
1 parent 347489f commit edcf5b6
Show file tree
Hide file tree
Showing 4 changed files with 534 additions and 4 deletions.
16 changes: 15 additions & 1 deletion Gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
var gulp = require('gulp')
, watch = require('gulp-watch')
, plumber = require('gulp-plumber')
, concat = require('gulp-concat');
, concat = require('gulp-concat')
, uglify = require('gulp-uglify')
, rename = require('gulp-rename')

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

gulp.task('default', ['localBuild'], function(){
'use strict';
Expand All @@ -19,6 +23,16 @@ gulp.task('localBuild', function(){
.pipe(gulp.dest('public/javascripts/built/'));
});

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

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

// gulp.task('default', function () {
// watch({ glob: ['public/javascripts/app.js', 'public/javascripts/components/**/*.js'], emitOnGlob: false })
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "application-name",
"version": "0.0.1",
"name": "action",
"version": "0.2.0",
"private": true,
"scripts": {
"start": "node app.js"
Expand All @@ -14,6 +14,7 @@
"gulp": "^3.6.0",
"gulp-uglify": "^0.2.1",
"gulp-plumber": "^0.6.0",
"gulp-watch": "^0.5.4"
"gulp-watch": "^0.5.4",
"gulp-rename": "^1.2.0"
}
}
Loading

0 comments on commit edcf5b6

Please sign in to comment.