Skip to content

Commit

Permalink
Merge pull request #38 from mcepl/make_package
Browse files Browse the repository at this point in the history
Add task for creating FxOS packaged app
  • Loading branch information
gbraad committed May 6, 2014
2 parents 9f7a5c9 + 23ed22b commit f8d2364
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
9 changes: 9 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ var log = gutil.log;

var jshint = require('gulp-jshint');

var zip = require('gulp-zip');

var codeFiles = ['js/**/*.js', '!node_modules/**'];

gulp.task('lint', function(){
Expand Down Expand Up @@ -51,4 +53,11 @@ gulp.task('server', function () {
gulp.watch(['*.html', 'js/**/*.js'], notifyLivereload);
});

gulp.task('makepkg', function () {
return gulp.src(['**', '!node_modules/**', '!gauth.zip',
'!gulpfile.js', '!package.json', '!README.md']).
pipe(zip('gauth.zip')).
pipe(gulp.dest('.'));
});

gulp.task('default', ['lint']);
7 changes: 4 additions & 3 deletions manifest.webapp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
"type": "privileged",
"icons": {
"32": "img/icon_x32.png",
"48": "img/icon-48.png",
"128": "img/icon_128.png"
"48": "img/icon_x48.png",
"60": "img/icon_x60.png",
"128": "img/icon_x128.png"
},
"installs_allowed_from": [
"*"
Expand All @@ -17,4 +18,4 @@
"name": "Gerard Braad",
"url": "http://gbraad.nl"
}
}
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"gulp-util": "~2.2.0",
"jshint": "~2.4.1",
"gulp-jshint": "~1.4.0",
"gulp-livereload": "~1.1.1"
"gulp-livereload": "~1.1.1",
"gulp-zip": "~0.3.4"
},
"scripts": {
"test": "gulp"
Expand Down

0 comments on commit f8d2364

Please sign in to comment.